Bug 1646964
| Summary: | composer-cli image builds fail with min install RHEL 7.6 GA | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Phil Griffiths <phil> |
| Component: | lorax-composer | Assignee: | Brian Lane <bcl> |
| Status: | CLOSED NOTABUG | QA Contact: | Robert M Williams <rwilliam> |
| Severity: | unspecified | Docs Contact: | Vladimír Slávik <vslavik> |
| Priority: | unspecified | ||
| Version: | 7.6 | CC: | atodorov, dshea, lueberni, phil, sbueno, vslavik, wwoods |
| Target Milestone: | rc | Keywords: | Extras |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-24 22:32:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
> Installed min RHEL 7.6 GA
@Phil,
which package set exactly? Is this the "Minimal" package set from anaconda UI, e.g. @core (and/or @base) from kickstart ?
Minimal Install through the GUI #cat /root/anacond-ks.cfg: #version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 repo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailability repo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage # Use CDROM installation media cdrom # Use graphical install graphical # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=sda # Keyboard layouts keyboard --vckeymap=gb --xlayouts='gb' # System language lang en_GB.UTF-8 # Network information network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate network --bootproto=dhcp --device=enp0s8 --onboot=off --ipv6=auto --activate network --hostname=rhel76ga # Root password rootpw --iscrypted $6$iIiismC07Un1CjF7$vFFdeCW2TMX6rhB7NVWJUPW1PmDdqq0bJ8fUkGuGkulFpwN5ctOfD1g1MtmJfMC6iT4dxRaLRoJ4g6heLg23M. # System services services --enabled="chronyd" # System timezone timezone Europe/London --isUtc user --groups=wheel --name=phil --password=$6$rsnyJFUS8mxJxagK$gcyJ9u.Dx6W.Envd4DRMi38IGdv3IfscncCzv8.YdtpUMRewbUMjhUoTscojyjVWCMOkiifJPlwKX3Do5R3gl/ --iscrypted --gecos="phil" # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda autopart --type=lvm # Partition clearing information clearpart --none --initlabel %packages @^minimal @core chrony kexec-tools %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end A little more progress
I did:
#yum -y install gtk3
now # composer-cli compose log 9dd963c7-9eaf-4717-88ae-0c182853b6be shows:
15:00:33,483 ERR anaconda: CmdlineError: The following mandatory spokes are not completed:
Installation source
Software selection
15:00:33,483 DEBUG anaconda: running handleException
15:00:33,486 CRIT anaconda: Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 352, in _mainloop
prompt = last_screen.prompt(self._screens[-1][1])
File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 107, in prompt
raise CmdlineError(errtxt)
CmdlineError: The following mandatory spokes are not completed:
Installation source
Software selection
15:00:33,586 DEBUG anaconda: Gtk cannot be initialized
15:00:33,586 DEBUG anaconda: In the main thread, running exception handler
gtk is a red-herring here, it's Anaconda's way of saying 'I don't know how to report this crash to bugzilla' and you need to look deeper for the actual problem. If you take a look at the anaconda logs from 'composer-cli compose logs UUID' it shoud tell you more. BUT if you have not setup your host with a mirror of the RHEL7.6 content, including the main packages and Optional, it will not work. From the steps you've listed above it looks like it is trying to use CDN content, which doesn't work because there's no way to tell Anaconda how to use the CDN for the actual installation. Take a look at Stef's post here - https://weldr.io/Running-Composer-on-RHEL/ Don't you still need gtk3 though for it to work? Isn't 'Namespace Gtk not available' indicating this? I got a different error as above after installing it that's for sure. Didn't know I needed offline content for RHEL, so thanks for the blog post. That would explain it. (In reply to Phil Griffiths from comment #6) > Don't you still need gtk3 though for it to work? > Isn't 'Namespace Gtk not available' indicating this? > I got a different error as above after installing it that's for sure. > > Didn't know I needed offline content for RHEL, so thanks for the blog post. > That would explain it. No, we only use anaconda-tui so there doesn't need to be any gtk3 installed. The actual error is buried in other logs (in this case it's probably in packaging.log where it fails to find the packages it needs or connect to the repos). # tail /root/logs/anaconda/packaging.log ... 15:42:47,434 ERR packaging: No base repo configured 15:42:47,436 WARN packaging: Skipping checkSoftwareSelect, no base repo setup. 15:42:48,343 WARN packaging: Skipping checkSoftwareSelect, no base repo setup. Yep, you're right. No local repo content so bails. *** Bug 1664388 has been marked as a duplicate of this bug. *** If it's been documented then it can be closed. |
Description of problem: composer-cli image builds fail due to missing GTK namespace with min RHEL 7.6 install Version-Release number of selected component (if applicable): # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 (Maipo) # rpm -q lorax-composer cockpit-composer composer-cli lorax-composer-19.7.24-1.el7.x86_64 cockpit-composer-0.1.4-1.el7.noarch composer-cli-19.7.24-1.el7.x86_64 How reproducible: yes - happened on both beta and GA releases Steps to Reproduce: Installed min RHEL 7.6 GA release VM using Virtualbox 5.2.20 r125813 (Qt5.6.3) - 2048 MB RAM, 16 MB video RAM, 1 CPU # subscription-manager repos --enable="rhel-7-server-extras-rpms" # yum -y update Installed composer as per release notes instructions # yum install lorax-composer cockpit-composer composer-cli # systemctl start lorax-composer # systemctl start cockpit # systemctl enable lorax-composer.socket # systemctl enable cockpit.socket # composer-cli compose start example-http-server qcow2 # composer-cli compose log c0d8117e-0d91-4798-8973-f20546c36e01 Actual results: 09:58:14,129 DEBUG anaconda: running handleException 09:58:14,129 CRIT anaconda: Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 409, in process_events handler(event, data) File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/__init__.py", line 54, in exception_msg_handler sys.excepthook(*msg_data[0]) File "/usr/lib/python2.7/site-packages/meh/handler.py", line 158, in <lambda> self.handleException(DumpInfo(ExceptionInfo(ty, value, tb), obj)) File "/usr/lib64/python2.7/site-packages/pyanaconda/exception.py", line 112, in handleException gi.require_version("Gtk", "3.0") File "/usr/lib64/python2.7/site-packages/gi/__init__.py", line 99, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace Gtk not available Expected results: successful image build rather than failure Additional info: