Bug 1130268
| Summary: | [RFE] preserve rhsm.log from anaconda install after install (ala anaconda logs) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Adrian Likins <alikins> | ||||
| Component: | anaconda | Assignee: | Brian Lane <bcl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.1 | CC: | bkearney, hartsjc, mbanas, salmy | ||||
| Target Milestone: | rc | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | anaconda-21.48.22.57-1 | Doc Type: | Enhancement | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-11-03 23:06:11 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: | |||||||
| Attachments: |
|
||||||
|
Description
Adrian Likins
2014-08-14 17:42:40 UTC
This feature request was not implemented and delivered to QE by the rhel-7.1.0 Dev Freeze date of 10/27/2014. Deferring for consideration in next release. Someone asked me where this occurs during anaconda, so thought would doc it in here in case others interested in what I found.
# grep 'anaconda version' /tmp/anaconda.log
18:53:22,570 INFO : anaconda version 13.21.229 on x86_64 starting
# grep -lR productid /mnt/runtime/usr/
/mnt/runtime/usr/lib/yum-plugins/product-id.py
/mnt/runtime/usr/share/cracklib/pw_dict.pwd
/mnt/runtime/usr/share/rhsm/subscription_manager/certdirectory.py
/mnt/runtime/usr/share/rhsm/subscription_manager/managerlib.py
/mnt/runtime/usr/share/rhsm/subscription_manager/productid.py <--------
# cut -d, -f2- /var/log/rhsm/rhsm.log
696 [ERROR] anaconda @plugins.py:896 - Could not find /usr/share/rhsm-plugins for plugin import
696 [DEBUG] anaconda @plugins.py:569 - loaded plugin modules: []
696 [DEBUG] anaconda @plugins.py:570 - loaded plugins: {}
730 [WARNING] anaconda @productid.py:736 - Error loading productid metadata for RHEL - Optional.
731 [WARNING] anaconda @productid.py:736 - Error loading productid metadata for RHEL - RH Common.
882 [DEBUG] anaconda @productid.py:408 - Checking for product id certs to install or update.
883 [DEBUG] anaconda @productid.py:428 - product cert: 69 repo: RHEL
883 [DEBUG] anaconda @productid.py:428 - product cert: 69 repo: anaconda-RedHatEnterpriseLinux-201409260744.x86_64
883 [DEBUG] anaconda @productid.py:428 - product cert: 69 repo: RHEL - RHEV Agents
883 [DEBUG] anaconda @productid.py:428 - product cert: 69 repo: RHEL - Supplementary
883 [INFO] anaconda @productid.py:518 - Updating product db with 69 -> RHEL
883 [INFO] anaconda @productid.py:518 - Updating product db with 69 -> anaconda-RedHatEnterpriseLinux-201409260744.x86_64
883 [INFO] anaconda @productid.py:518 - Updating product db with 69 -> RHEL - RHEV Agents
884 [INFO] anaconda @productid.py:569 - Installed product cert 69: Red Hat Enterprise Linux Server /mnt/sysimage/etc/pki/product/69.pem
884 [INFO] anaconda @productid.py:569 - Installed product cert 69: Red Hat Enterprise Linux Server /mnt/sysimage/etc/pki/product/69.pem
885 [INFO] anaconda @productid.py:569 - Installed product cert 69: Red Hat Enterprise Linux Server /mnt/sysimage/etc/pki/product/69.pem
885 [DEBUG] anaconda @productid.py:546 - about to run post_product_id_install
885 [DEBUG] anaconda @productid.py:557 - about to run post_product_id_update
# ls -la /mnt/sysimage/var/log/rhsm/rhsm.log
ls: cannot access /mnt/sysimage/var/log/rhsm/rhsm.log: No such file or directory
Base on timestamps, looks to happen after the dracut build at the end of anaconda, but before the kickstart %post script.
# tail -n 2 /mnt/sysimage/var/log/dracut.log
Mon Feb 23 12:59:21 CST 2015 Info: Wrote /boot/initramfs-2.6.32-504.el6.x86_64.img
Mon Feb 23 12:59:21 CST 2015 Info: -rw-------. 1 root root 19126246 Feb 23 12:59 /boot/initramfs-2.6.32-504.el6.x86_64.img
# head -n 1 /var/log/rhsm/rhsm.log
2015-02-23 12:59:22,696 [ERROR] anaconda @plugins.py:896 - Could not find /usr/share/rhsm-plugins for plugin import
# grep -B1 post-start /tmp/program.log
13:00:24,596 INFO : Running... ['/bin/bash', '/tmp/ks-script-l48fxF']
13:00:24,609 INFO : post-start at Mon Feb 23 13:00:24 CST 2015
Created attachment 1050368 [details]
copy rhsm logs at the end of the installation
Proposed patch - https://github.com/rhinstaller/anaconda/pull/420 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2158.html |