From c114449bdb6fc8c4ede2b7845aa2ba049bdc332f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 11 Apr 2018 21:33:50 +0200 Subject: [PATCH] Switch to mkisofs for openSUSE distributions In Tumbleweed genisoimage was dropped in favor of cdrtools, so installing that no longer works. We can however install mkisofs directly and switch to that as that is also available in Leap 42.3 and Leap 15.0+ family distros. Also drop dependency on libmysqlclient-devel which appears unnecessary (and is no longer available with mariadb 10.2+) Change-Id: Ie8402204b6cdf94c21865caba116d3fd1298c5ad --- files/rpms-suse/general | 1 - files/rpms-suse/n-cpu | 2 +- files/rpms-suse/nova | 2 +- lib/nova | 6 ++++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/files/rpms-suse/general b/files/rpms-suse/general index 0b69cb1c01..b870d72149 100644 --- a/files/rpms-suse/general +++ b/files/rpms-suse/general @@ -11,7 +11,6 @@ graphviz # docs iputils libffi-devel # pyOpenSSL libjpeg8-devel # Pillow 3.0.0 -libmysqlclient-devel # MySQL-python libopenssl-devel # to rebuild pyOpenSSL if needed libxslt-devel # lxml lsof # useful when debugging diff --git a/files/rpms-suse/n-cpu b/files/rpms-suse/n-cpu index 9ece11534d..d0c572e97d 100644 --- a/files/rpms-suse/n-cpu +++ b/files/rpms-suse/n-cpu @@ -1,7 +1,7 @@ cryptsetup -genisoimage libosinfo lvm2 +mkisofs open-iscsi sg3_utils # Stuff for diablo volumes diff --git a/files/rpms-suse/nova b/files/rpms-suse/nova index ae115d2138..4103a407d2 100644 --- a/files/rpms-suse/nova +++ b/files/rpms-suse/nova @@ -4,7 +4,6 @@ dnsmasq dnsmasq-utils # dist:opensuse-12.3,opensuse-13.1 ebtables gawk -genisoimage # required for config_drive iptables iputils kpartx @@ -12,6 +11,7 @@ kvm # NOPRIME libvirt # NOPRIME libvirt-python # NOPRIME mariadb # NOPRIME +mkisofs # required for config_drive parted polkit # qemu as fallback if kvm cannot be used diff --git a/lib/nova b/lib/nova index 2eef8c411f..939806ff95 100644 --- a/lib/nova +++ b/lib/nova @@ -506,6 +506,12 @@ function create_nova_conf { if [ "$FORCE_CONFIG_DRIVE" != "False" ]; then iniset $NOVA_CONF DEFAULT force_config_drive "$FORCE_CONFIG_DRIVE" fi + + # nova defaults to genisoimage but only mkisofs is available for 15.0+ + if is_suse; then + iniset $NOVA_CONF DEFAULT mkisofs_cmd /usr/bin/mkisofs + fi + # Format logging setup_logging $NOVA_CONF