Bug 825215
| Summary: | Subscription-manager unregister error : SubscriptionManagerError: No such file or directory(on rhevh) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | yqiao <yqiao> |
| Component: | virt-who | Assignee: | Radek Novacek <rnovacek> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3 | CC: | bkearney, dyasny, huiwang, lzhuang, ovasik |
| Target Milestone: | rc | Flags: | lzhuang:
needinfo+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-who-0.8-1.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 09:50:41 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: | 771481 | ||
|
Description
yqiao
2012-05-25 11:26:04 UTC
Yqiao, can you post here content of the file /etc/sysconfig/virt-who ? (In reply to comment #3) > Yqiao, can you post here content of the file /etc/sysconfig/virt-who ? yeah, i config the virt-who as follow: VIRTWHO_BACKGROUND=1 VIRTWHO_DEBUG=1 VIRTWHO_VDSM=1 VIRTWHO_INTERVAL=2 Thank you. Can you try to reproduce this bug with VIRTWHO_DEBUG=0 If the error output won't appear, I would say that it isn't a bug. Having the backtrace in debug mode is extremely helpful for finding what is the problem. Of course, this error should be hidden in non-debug mode. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. ping, can you reproduce this bug with VIRTWHO_DEBUG=0? 1. # cat /etc/sysconfig/virt-who
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=0
^^^
VIRTWHO_INTERVAL=2
2. It still prints error log after rhevh is unregistered:
2012-09-17 08:02:10,541 [ERROR] @virt-who.py:165 - No such file or directory
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 147, in _send
File "/usr/share/virt-who/subscriptionmanager.py", line 81, in sendVirtGuests
SubscriptionManagerError: No such file or directory
2012-09-17 08:02:10,541 [ERROR] @virt-who.py:169 - Error in communication with candlepin, trying to recover
2012-09-17 08:02:10,542 [ERROR] @subscriptionmanager.py:52 - Unable to read certificate, system is not registered or you are not root
3. version info:
virt-who-0.6-6.el6.noarch
(In reply to comment #9)
> ping, can you reproduce this bug with VIRTWHO_DEBUG=0?
This bug will be fixed in next release of virt-who. Tracebacks will be only saved to the log file and not printed on the terminal. This bug has been fixed in virt-who-0.8-1.el6. Verified the issue, the result is PASS.
Version:
virt-who-0.8-5.el6.noarch
subscription-manager-1.1.21-1.el6.x86_64
1. # cat /etc/sysconfig/virt-who
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=0
^^^
VIRTWHO_VDSM=1
2. Start virt-who service
3. RHEVH registered to SAM
4. RHEVH Unregistered from SAM
5. Check the log: There are no the error:"SubscriptionManagerError: No such file or directory "
tail -f /var/log/rhsm/rhsm.log
2013-01-17 02:19:51,190 [ERROR] @virt-who.py:186 - Error in communication with virt backend, trying to recover:
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 178, in _send
File "/usr/share/virt-who/vdsm.py", line 99, in listDomains
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
File "/usr/lib64/python2.6/site-packages/M2Crypto/m2xmlrpclib.py", line 49, in request
File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
File "/usr/lib64/python2.6/httplib.py", line 739, in send
File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 73, in connect
error: [Errno 111] Connection refused
2013-01-17 02:19:51,202 [ERROR] @virt-who.py:189 - Unable to recover, retry in 60 seconds.
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-0374.html |