Bug 921249
Summary: | subscription manager facts do not update after registering | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | J.C. Molet <jmolet> | ||||
Component: | subscription-manager | Assignee: | Devan Goodwin <dgoodwin> | ||||
Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 5.10 | CC: | alikins, bkearney, dgoodwin, fsharath, jgalipea, redakkan, spandey | ||||
Target Milestone: | beta | ||||||
Target Release: | 5.10 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
No description necessary
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-09-30 22:59:52 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 840995, 920191 | ||||||
Attachments: |
|
Description
J.C. Molet
2013-03-13 18:57:10 UTC
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. anything in /var/log/rhsm.log? curious if virt-what (or our parsing of it's output) is failing in this case Problem masked by: 2013-05-07 15:16:32,225 [INFO] @repolib.py:158 - repos updated: 0 2013-05-07 15:16:32,255 [ERROR] @hwprobe.py:423 - signal only works in main thread Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/hwprobe.py", line 410, in getVirtInfo host_type = self._get_output('virt-what') File "/usr/share/rhsm/subscription_manager/hwprobe.py", line 439, in _get_output signal.signal(signal.SIGPIPE, signal.SIG_DFL) ValueError: signal only works in main thread 2013-05-07 15:16:32,317 [WARNING] @hwprobe.py:482 - Error finding UUID: 'virt.host_type' Suspect this is happening in registration and auto-attach dialog, which are both asynchronous which could cause the signal / thread error above. I am getting same kind of issue , virtual guest is consuming more than 1 instance based subscription with gui auto-attach with register . i can see virtual machine info in system facts , still getting this issue i got above traceback in rhsm.log file . using following rpm subscription-manager-gui-1.8.7-1.git.33.1b83804.el5 subscription-manager-migration-1.8.7-1.git.33.1b83804.el5 subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5 subscription-manager-1.8.7-1.git.33.1b83804.el5 subscription-manager-firstboot-1.8.7-1.git.33.1b83804.el5 This bug was happening in the registergui code where we lookup suitable service levels, so it would surface if you registered via the GUI wizard, or if you used auto-attach after registration. If you did this, and you looked on the server you would see unknown virt status: (dgoodwin@lenovo ~) $ curl -k -u admin:admin "https://localhost:8443/candlepin/consumers/b41364aa-fbef-4cb5-aa61-c4ea36ec1ae7" | grep guest 0 "virt.is_guest" : "Unknown", And something like this in the logs: 2013-05-14 15:32:44,530 [ERROR] @hwprobe.py:423 - signal only works in main thread Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/hwprobe.py", line 410, in getVirtInfo host_type = self._get_output('virt-what') File "/usr/share/rhsm/subscription_manager/hwprobe.py", line 439, in _get_output signal.signal(signal.SIGPIPE, signal.SIG_DFL) ValueError: signal only works in main thread The problem was indeed caused by an unnecessary reload of facts in the asynchronous autobind code. To fix I am having the relevant code re-use the facts we already looked up in the main thread before we went into the async code. Fixed in subscription-manager.git master: 12b4ff606e1aeff6c5c82d0ed1d4792b4749eab5 Will appear in: subscription-manager-1.8.8-1 Created attachment 757341 [details]
System Facts displayed appropriately
Version:
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-migration-data-1.11.3.1-1.git.1.78afd75.el5
subscription-manager-migration-1.8.10-1.git.1.b44c4b1.el5
python-rhsm-1.8.12-1.git.0.d747a65.el5
subscription-manager-firstboot-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-1.8.10-1.git.1.b44c4b1.el5
subscription-manager-gui-1.8.10-1.git.1.b44c4b1.el5
CLI output:
# subscription-manager facts --list | grep virt
virt.host_type: kvm
virt.is_guest: True
virt.uuid: 3edf259b-25f7-1f57-9eb6-60d515bcfcd7
GUI Output:
Please see attachment
The system facts re updated appropriately.
VERIFIED
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-1332.html |