sahara-image-pack: RHEL-based images can not be generated with various plugins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
New
|
Undecided
|
Unassigned |
Bug Description
The various plugins for Plugin-Declared Image Generation have some trouble with RHEL-based images. Few issues identified so far:
* 'rhel': 'redhat' should be added to _DISTRO_FAMILES in sahara/
* few conditionals in the declarative definition of image check/build contains:
- os_case:
- centos:
but that should really be 'redhat:' instead, which encompasses both centos and RHEL.
Even when enabling those, there are probably other issues; for example, when generating a MapR image on RHEL, even with the fixes above applied, the process ends with:
[...]
2018-03-06 19:51:34.088 13863 INFO sahara.
foomatic-db-ppds gdbm-devel gettext ghostscript ghostscript-fonts glibc glibc-common glibc-devel glibc-headers gstreamer gstreamer-
Xv libXxf86vm libgomp libgudev1 libicu libmng liboil libtheora libtirpc libvisual libxslt mesa-dri-drivers mesa-libGL mesa-libGLU mesa-private-llvm nmap-ncat numactl openjpeg-libs patch pax perl-CGI perl-ExtUtils-
MakeMaker perl-ExtUtils-
w-fonts yum-utils xml-common
2018-03-06 19:51:44.297 13863 CRITICAL sahara [-] Unhandled error: RuntimeError: sh:
2018-03-06 19:51:44.297 13863 ERROR sahara Traceback (most recent call last):
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/bin/
2018-03-06 19:51:44.297 13863 ERROR sahara sys.exit(main())
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara CONF.root_fs, CONF.test_only)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara remote, test_only=
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara func(*args, **kwargs)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara image_arguments
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara func(*args, **kwargs)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara check(self, remote)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara return _sudo(remote, check_cmd)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara return remote.
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib/
2018-03-06 19:51:44.297 13863 ERROR sahara stdout = self.guest.sh(cmd)
2018-03-06 19:51:44.297 13863 ERROR sahara File "/usr/lib64/
2018-03-06 19:51:44.297 13863 ERROR sahara r = libguestfsmod.
2018-03-06 19:51:44.297 13863 ERROR sahara RuntimeError: sh:
2018-03-06 19:51:44.297 13863 ERROR sahara
Tested with the last version of sahara-image-pack from the Queens branch, using:
sahara-image-pack --image sahara-
sahara-
(originally reported as https:/