| Summary: | Virt-who can't send the HOST/GUEST info to SAM after host re-registering to SAM. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Hui Wang <huiwang> | ||||||||||
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> | ||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> | ||||||||||
| Severity: | urgent | Docs Contact: | |||||||||||
| Priority: | urgent | ||||||||||||
| Version: | 5.9 | CC: | bkearney, cduryee, jsefler, khong, ndai, ndong, ovasik, rnovacek, wpoteat | ||||||||||
| Target Milestone: | beta | ||||||||||||
| Target Release: | 5.9 | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: |
No documentation needed.
|
Story Points: | --- | ||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2013-01-08 03:48:01 UTC | Type: | --- | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Bug Depends On: | |||||||||||||
| Bug Blocks: | 771748 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Hui Wang
2012-01-06 08:48:28 UTC
Created attachment 551107 [details]
host info
Created attachment 551108 [details]
guest info
I can confirm this issue. Virt-who loads connection information (SAM server, certificates, host system UUID) when starting. If this information changes during the time when virt-who is running, it won't reload its configuration. Same thing happens when virt-who is started before registering the system. There are more possible solutions for this issue: 1) Change virt-who behaviour to try to reload configuration every time when connection fails. But this is not usual behaviour of system daemons. Usually, daemon needs to be restarted manually after changing the configuration. 2) Alter subscription-manager to restart virt-who after successful registration. I think ideal solution would be not to start virt-who daemon by default, but enable (and start) it after successful registration. And disable (and stop) virt-who after unregistration. 3) Document that virt-who needs to be restarted after registration of the system. CCing some people for advice. Chris, virt-who doesn't currently run DBus server, but I don't think it is necessary to add it for this simple case. We can use unix signals to notify virt-who to reload its configuration (e.g. Apache restarts itself when receives SIGHUP signal). I agree that we should do #3 for 5.8 and fix this issue properly later. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Chris, how we're going to implement this? Do you agree with suggested solution that after change of configuration subscription-manager will send SIGHUP (or maybe other signal?) to virt-who which restarts itself? This can be easily done with something similar to: kill -SIGHUP `cat /var/run/virt-who.pid` Radek, That solution sounds fine to me. I'll move the BZ over to our component so it shows up on the tracker. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. FYI: virt-who supports reloading configuration upon receiving SIGHUP signal since version 0.7-1. fixed in master at in version 5cb55c8a74d38d1cd1945354ea07699fa7eadc85. Since the HOST/GUEST info to SAM has been sent with virt-who-0.7-6.el5, changed status from ON_QA to VERIFIED. Version-Release number of selected component (if applicable): subscription-manager-1.0.14-1.el5 subscription-manager-gui-1.0.14-1.el5 subscription-manager-firstboot-1.0.14-1.el5 python-rhsm-1.0.5-1.el5 virt-who-0.7-6.el5 libvirt-0.8.2-29.el5 libvirt-0.8.2-29.el5 libvirt-python-0.8.2-29.el5 katello-candlepin-cert-key-pair-1.0-1.noarch candlepin-0.6.5-1.el6_2.noarch Steps to Reproduce: 1.Install Red Hat Enterprise Linux Server release 5.9 Beta (Tikanga) (kvm) and register to SAM. #subscription-manager register --org=$orgname --name=$hostname --username=$username --password=$password 2.Install some guests on the host,and keep the guests are running 3.Keep virt-who is running. 4.Unregister the host from SAM. #subscription-manager unregister 5.Then after re-registering the host to SAM,and register the guests which on the host to SAM using the sam org and username and password. #subscription-manager register --org=$orgname --name=$hostname --username=$username --password=$password 6.Reload the headpin web padge ,check the HOST/GUEST relation on SAM. the results as attachments Created attachment 616383 [details]
system info of the host in SAM webUI
Created attachment 616385 [details]
system info of the guest in SAM webUI
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. http://rhn.redhat.com/errata/RHBA-2013-0033.html |