Bug 1105053
| Summary: | Sometimes virt-who failed to communication with subscription manager | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Liushihui <shihliu> | ||||||||
| Component: | python-rhsm | Assignee: | candlepin-bugs | ||||||||
| Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 7.0 | CC: | bkearney, chrobert, csnyder, liliu, sgao, shihliu, wpoteat | ||||||||
| Target Milestone: | rc | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2015-09-02 20:49:57 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: | 1121117, 1133060 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Liushihui
2014-06-05 09:50:32 UTC
Created attachment 902472 [details]
rhsm.log
SSL timeout error doesn't come from virt-who, it's either python-rhsm or SAM. The second one is more probable (because of the exception org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched). Will reassign it to python-rhsm for now, it might need some check for this error. In the stage candlepin, virt-who will occur similar error messages when it run at the vdsm mode and rhevm mode.
1. If virt-who run at the vdsm mode, virt-who sometimes will pop up the following error messages :
1288 2014-07-14 23:49:54,741 [DEBUG] @subscriptionmanager.py:81 - Sending list of uuids: []
1289 2014-07-14 23:49:57,342 [ERROR] @virt-who.py:223 - Error in communication with subscription manager, trying to recover:
1290 Traceback (most recent call last):
1291 File "/usr/share/virt-who/virt-who.py", line 205, in _send
1292 File "/usr/share/virt-who/subscriptionmanager.py", line 84, in sendVirtGuests
1293 File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 777, in updateConsumer
1294 File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 550, in request_put
1295 File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 469, in _request
1296 File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 517, in validateResponse
1297 RemoteServerException: Server error attempting a PUT to /subscription/consumers/e9e259d1-78cd-4d0f-9fd2-1eccb7dc855f returned status 502
1298 2014-07-14 23:50:04,969 [DEBUG] @subscriptionmanager.py:81 - Sending list of uuids: []
1299 2014-07-14 23:50:08,717 [DEBUG] @subscriptionmanager.py:81 - Sending list of uuids: []
2. If virt-who run at the rhevm mode, virt-who sometimes will pop up the following error messages :
2014-07-15 03:52:43,144 [DEBUG] @subscriptionmanager.py:109 - Sending update in hosts-to-guests mapping: {'b533383a-97b6-49ad-a898-8a584193b6fc': [], 'd7bb0bf9-17ae-4f1e-9ed8-8463acf7fbec': []}
2014-07-15 03:52:45,972 [ERROR] @virt-who.py:236 - Error in communication with subscription manager, trying to recover:
Traceback (most recent call last):
File "/usr/share/virt-who/virt-who.py", line 217, in _send
result = self.subscriptionManager.hypervisorCheckIn(self.options.owner, self.options.env, virtualGuests, type=self.options.virtType)
File "/usr/share/virt-who/subscriptionmanager.py", line 112, in hypervisorCheckIn
return self.connection.hypervisorCheckIn(owner, env, mapping)
File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 754, in hypervisorCheckIn
return self.conn.request_post(url, host_guest_mapping)
File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 553, in request_post
return self._request("POST", method, params)
File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 478, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 526, in validateResponse
handler=handler)
RemoteServerException: Server error attempting a POST to /subscription/hypervisors?owner=7298678&env=7298678 returned status 502
2014-07-15 03:52:47,697 [DEBUG] @subscriptionmanager.py:109 - Sending update in hosts-to-guests mapping: {'b533383a-97b6-49ad-a898-8a584193b6fc': [], 'd7bb0bf9-17ae-4f1e-9ed8-8463acf7fbec': []}
Created attachment 918080 [details]
virt-who run at vdsm mode
Created attachment 918082 [details]
virt-who log when it run at rhevm mode
It isn't exist on RHEL6.6 Acking 7.1 Acking 7.1 Please open a bug with virt-who component to limit the interval at no less than 1 minute. A virt interval of 5 seconds is not realistic. I have opened a bug 1220977 to track this problem. The problems here will be addressed in the virt-who component under bug 1220977 |