Bug 1415079
Summary: | Start virt-who will show "ValueError: invalid literal for int() with base 10" when rhsm_port is null | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Liushihui <shihliu> |
Component: | virt-who | Assignee: | Jiri Hnidek <jhnidek> |
Status: | CLOSED ERRATA | QA Contact: | Eko <hsun> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | bbuckingham, bcourt, bkearney, csnyder, hsun, jhnidek, ktordeur, sgao, tomckay, yuefliu |
Target Milestone: | pre-dev-freeze | Keywords: | EasyFix, Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | virt-who-0.19-3 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 16:19:53 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: |
Description
Liushihui
2017-01-20 07:55:56 UTC
It is probably already fixed by PR: https://github.com/virt-who/virt-who/pull/59 and this commit: https://github.com/virt-who/virt-who/commit/e640a5e66cc21c30d5c0aa93b233625cdf7aa2aa It prints now following error to log: 2017-06-09 09:08:08,463 [virtwho.destination_-6801565354001199939 DEBUG] MainProcess(8551):Thread-3 @subscriptionmanager.py:sendVirtGuests:162 - Using hypervisor_id: fb9d1281-53cc-11cb-9a33-8043c5f45d9d 2017-06-09 09:08:08,466 [rhsm.connection DEBUG] MainProcess(8551):Thread-3 @connection.py:_request:516 - Making request: GET /subscription/ 2017-06-09 09:08:12,333 [rhsm.connection INFO] MainProcess(8551):Thread-3 @connection.py:_request:557 - Response: status=200, request="GET /subscription/" 2017-06-09 09:08:12,334 [rhsm.connection DEBUG] MainProcess(8551):Thread-3 @connection.py:_load_supported_resources:844 - Server supports the following resources: {u'': u'/', u'guestids': u'/consumers/{consumer_uuid}/guestids', u'cdn': u'/cdn', u'content_overrides': u'/consumers/{consumer_uuid}/content_overrides', u'hypervisors': u'/hypervisors', u'serials': u'/serials', u'deleted_consumers': u'/deleted_consumers', u'consumers': u'/consumers', u'migrations': u'/migrations', u'content': u'/content', u'entitlements': u'/entitlements', u'events': u'/events', u'status': u'/status', u'jobs': u'/jobs', u'users': u'/users', u'subscriptions': u'/subscriptions', u'rules': u'/rules', u'distributor_versions': u'/distributor_versions', u'consumertypes': u'/consumertypes', u'statistics/generate': u'/statistics/generate', u'pools': u'/pools', u'atom': u'/atom', u'packages': u'/consumers/{consumer_uuid}/packages', u'owners': u'/owners', u'roles': u'/roles', u'admin': u'/admin', u'products': u'/products', u'activation_keys': u'/activation_keys', u'crl': u'/crl'} 2017-06-09 09:08:12,334 [rhsm.connection DEBUG] MainProcess(8551):Thread-3 @connection.py:_request:516 - Making request: PUT /subscription/consumers/37e48228-5398-45bd-90a6-6eb1dcd98a94 2017-06-09 09:08:16,837 [rhsm.connection INFO] MainProcess(8551):Thread-3 @connection.py:_request:557 - Response: status=401, request="PUT /subscription/consumers/37e48228-5398-45bd-90a6-6eb1dcd98a94" 2017-06-09 09:08:16,838 [virtwho.destination_-6801565354001199939 ERROR] MainProcess(8551):Thread-3 @virt.py:run:389 - Thread 'destination_-6801565354001199939' fails with exception: Traceback (most recent call last): File "virtwho/virt/virt.py", line 380, in run self._run() File "virtwho/virt/virt.py", line 336, in _run self._send_data(data_to_send) File "virtwho/virt/virt.py", line 684, in _send_data self.dest.sendVirtGuests(report, options=self.options) File "virtwho/manager/subscriptionmanager/subscriptionmanager.py", line 166, in sendVirtGuests self.connection.updateConsumer(self.uuid(), guest_uuids=serialized_guests, hypervisor_id=report.hypervisor_id) File "/home/jiri/github/candlepin/subscription_manager/python-rhsm/src/rhsm/connection.py", line 1007, in updateConsumer ret = self.conn.request_put(method, params) File "/home/jiri/github/candlepin/subscription_manager/python-rhsm/src/rhsm/connection.py", line 660, in request_put return self._request("PUT", method, params, headers=headers) File "/home/jiri/github/candlepin/subscription_manager/python-rhsm/src/rhsm/connection.py", line 677, in _request info=info, headers=headers) File "/home/jiri/github/candlepin/subscription_manager/python-rhsm/src/rhsm/connection.py", line 566, in _request self.validateResponse(result, request_type, handler) File "/home/jiri/github/candlepin/subscription_manager/python-rhsm/src/rhsm/connection.py", line 615, in validateResponse raise RestlibException(response['status'], error_msg, response.get('headers')) RestlibException: Invalid credentials. 2017-06-09 09:08:16,840 [virtwho.destination_-6801565354001199939 INFO] MainProcess(8551):Thread-3 @virt.py:_send_data:563 - Error report received 2017-06-09 09:08:16,840 [virtwho.destination_-6801565354001199939 DEBUG] MainProcess(8551):Thread-3 @virt.py:run:403 - Thread 'destination_-6801565354001199939' stopped after running once 2017-06-09 09:08:17,759 [virtwho.main DEBUG] MainProcess(8551):MainThread @__main__.py:main:23 - virt-who terminated 2017-06-09 09:08:17,759 [virtwho.main DEBUG] MainProcess(8551):MainThread @executor.py:terminate:226 - virt-who is shutting down May be, rhsm could raise better exception, when connection to candlepin server wasn't possible Adding dev_ack+ as the attached PR is merged to master. This fix should be included in the first build for RHEL 7.5. 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://access.redhat.com/errata/RHEA-2018:0895 |