File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -911,8 +911,23 @@ function install_nova {
911911 # a websockets/html5 or flash powered VNC console for vm instances
912912 NOVNC_FROM_PACKAGE=$( trueorfalse False NOVNC_FROM_PACKAGE)
913913 if [ " $NOVNC_FROM_PACKAGE " = " True" ]; then
914+ # Installing novnc on Debian bullseye breaks the global pip
915+ # install. This happens because novnc pulls in distro cryptography
916+ # which will be prefered by distro pip, but if anything has
917+ # installed pyOpenSSL from pypi (keystone) that is not compatible
918+ # with distro cryptography. Fix this by installing
919+ # python3-openssl (pyOpenSSL) from the distro which pip will prefer
920+ # on Debian. Ubuntu has inverse problems so we only do this for
921+ # Debian.
922+ local novnc_packages
923+ novnc_packages=" novnc"
924+ GetOSVersion
925+ if [[ " $os_VENDOR " = " Debian" ]] ; then
926+ novnc_packages=" $novnc_packages python3-openssl"
927+ fi
928+
914929 NOVNC_WEB_DIR=/usr/share/novnc
915- install_package novnc
930+ install_package $novnc_packages
916931 else
917932 NOVNC_WEB_DIR=$DEST /novnc
918933 git_clone $NOVNC_REPO $NOVNC_WEB_DIR $NOVNC_BRANCH
You can’t perform that action at this time.
0 commit comments