Browse code

Prepare guestfs-support for openSUSE

With libguestfs usage for file injection now being enabled by
default as part of I568c56dbcb62ec541661364c142eff2397e3eed7
the opensuse job started to fail due to lack of guestfs images
being available.

The error in question was
NovaException: libguestfs installed but not usable (cannot
find any suitable libguestfs supermin, fixed or old-style
appliance on LIBGUESTFS_PATH (search path: /usr/lib64/guestfs)

This part is being fixed by explicitly adding the missing package
dependencies to the compute node rpm package list while the maintenance
update for Leap 42.2 is in preparation.

Change-Id: Ie76ac0a51c1ee2ad6559917825dee1c7a91a3a76

Dirk Mueller authored on 2017/06/27 15:31:26
Showing 1 changed files
... ...
@@ -115,7 +115,10 @@ function install_nova_hypervisor {
115 115
                     sudo dpkg-statoverride --add --update $STAT_OVERRIDE
116 116
                 fi
117 117
             done
118
-        elif is_fedora || is_suse; then
118
+        elif is_suse; then
119
+            # Workaround for missing dependencies in python-libguestfs
120
+            install_package python-libguestfs guestfs-data augeas augeas-lenses
121
+        elif is_fedora; then
119 122
             install_package python-libguestfs
120 123
         fi
121 124
     fi