Skip to content

Commit 757a2a9

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix dbcounter install on Debian Bullseye"
2 parents ab16202 + 97b2a51 commit 757a2a9

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

lib/nova

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)