Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
If python-requests is not >= 2.20 [and yours does not appear to be that] then you will get a message that says it cannot use it. That is a correct behavoir.
There is no way for virt-who to get around that package version constraint. Please confirm that it does accept the unicode with the updated package.
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/RHBA-2020:0990
Running with current RHEL 7.8 code, I am not seeing the issue you describe. There is a specific handling for this issue already in the code: virt-who/virtwho/virt/rhevm/rhvem.py line 112: self.auth = HTTPBasicAuth(self.username.encode('utf-8'), self.password.encode('utf-8')) [root@wpoteat-desktop virt-who.d]# virt-who -do 2019-09-19 09:55:45,225 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:all_drop_dir_config_sections:1324 - There are files in '/etc/virt-who.d/' not ending in '*.conf' is this intentional? 2019-09-19 09:55:45,227 [virtwho.rhsm_log WARNING] MainProcess(3857897):MainThread @config.py:init_config:1528 - [sat-rhevm]: Value: 红帽€467aa of option 'username': is not in latin1 encoding 2019-09-19 09:55:45,227 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "log_per_config" not set, using default: False 2019-09-19 09:55:45,228 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "print_" not set, using default: False 2019-09-19 09:55:45,228 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "reporter_id" not set, using default: wpoteat-desktop.usersys.redhat.com-be24733af6f012e09b7788be0000000d 2019-09-19 09:55:45,228 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "log_dir" not set, using default: /var/log/rhsm 2019-09-19 09:55:45,228 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "configs" not set, using default: [] 2019-09-19 09:55:45,228 [virtwho.rhsm_log DEBUG] MainProcess(3857897):MainThread @config.py:init_config:1528 - [global]: Value for "log_file" not set, using default: rhsm.log 2019-09-19 09:55:45,229 [virtwho.rhsm_log INFO] MainProcess(3857897):MainThread @executor.py:__init__:54 - Using config named 'sat-rhevm' 2019-09-19 09:55:45,229 [virtwho.rhsm_log INFO] MainProcess(3857897):MainThread @main.py:main:162 - Using configuration "sat-rhevm" ("rhevm" mode) 2019-09-19 09:55:45,229 [virtwho.rhsm_log INFO] MainProcess(3857897):MainThread @main.py:main:164 - Using reporter_id='wpoteat-desktop.usersys.redhat.com-be24733af6f012e09b7788be0000000d' 2019-09-19 09:55:45,245 [rhsm.https DEBUG] MainProcess(3857897):MainThread @https.py:<module>:56 - Using standard libs to provide httplib and ssl 2019-09-19 09:55:45,258 [virtwho.main DEBUG] MainProcess(3857897):Thread-2 @virt.py:run:407 - Thread 'sat-rhevm' started 2019-09-19 09:55:46,761 [virtwho.main ERROR] MainProcess(3857897):Thread-2 @virt.py:run:416 - Thread 'sat-rhevm' fails with error: Unable to connect to RHEV-M server: 401 Client Error: Unauthorized for url: https://bootp-73-3-147.eng.pek2.redhat.com:443/ovirt-engine/api 2019-09-19 09:55:46,761 [virtwho.main INFO] MainProcess(3857897):Thread-2 @virt.py:_send_data:981 - Report for config "sat-rhevm" gathered, placing in datastore 2019-09-19 09:55:46,764 [virtwho.main DEBUG] MainProcess(3857897):Thread-2 @virt.py:run:435 - Thread 'sat-rhevm' stopped after running once 2019-09-19 09:55:47,264 [virtwho.destination_-1726186744903663445 DEBUG] MainProcess(3857897):Thread-3 @virt.py:run:407 - Thread 'destination_-1726186744903663445' started 2019-09-19 09:55:47,266 [virtwho.destination_-1726186744903663445 DEBUG] MainProcess(3857897):Thread-3 @subscriptionmanager.py:_connect:148 - Authenticating with certificate: /etc/pki/consumer/cert.pem 2019-09-19 09:55:47,266 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:__init__:808 - Environment variable NO_PROXY= will be used 2019-09-19 09:55:47,266 [virtwho.destination_-1726186744903663445 INFO] MainProcess(3857897):Thread-3 @subscriptionmanager.py:_connect:155 - X-Correlation-ID: c765deef2a3a4a599fe71a3dfae6858a 2019-09-19 09:55:47,269 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:__init__:905 - Connection built: host=localhost port=8443 handler=/candlepin auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=1 2019-09-19 09:55:47,270 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:571 - Making request: GET /candlepin/status/ 2019-09-19 09:55:47,324 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:618 - Response: status=200, requestUuid=212f73de-ee90-4406-a62e-808c38880cd8, request="GET /candlepin/status/" 2019-09-19 09:55:47,326 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:571 - Making request: GET /candlepin/status 2019-09-19 09:55:47,373 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:618 - Response: status=200, requestUuid=fca137f6-701d-485a-a889-85a140b87cf6, request="GET /candlepin/status" 2019-09-19 09:55:47,374 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_load_manager_capabilities:950 - Server has the following capabilities: [u'instance_multiplier', u'derived_product', u'vcpu', u'cert_v3', u'hypervisors_heartbeat', u'remove_by_pool_id', u'syspurpose', u'storage_band', u'cores', u'hypervisors_async', u'org_level_content_access', u'guest_limit', u'ram', u'batch_bind'] 2019-09-19 09:55:47,376 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:571 - Making request: PUT /candlepin/hypervisors/admin/heartbeat?reporter_id=wpoteat-desktop.usersys.redhat.com-be24733af6f012e09b7788be0000000d 2019-09-19 09:55:47,481 [rhsm.connection DEBUG] MainProcess(3857897):Thread-3 @connection.py:_request:618 - Response: status=202, requestUuid=2cac7a5a-feb0-49ff-8827-cbc5d5d8a935, request="PUT /candlepin/hypervisors/admin/heartbeat?reporter_id=wpoteat-desktop.usersys.redhat.com-be24733af6f012e09b7788be0000000d" 2019-09-19 09:55:47,483 [virtwho.destination_-1726186744903663445 DEBUG] MainProcess(3857897):Thread-3 @virt.py:_send_data:661 - ErrorReport received for source: sat-rhevm 2019-09-19 09:55:47,483 [virtwho.destination_-1726186744903663445 DEBUG] MainProcess(3857897):Thread-3 @virt.py:_send_data:756 - At least one report for each connected source has been sent. Terminating. 2019-09-19 09:55:47,483 [virtwho.destination_-1726186744903663445 DEBUG] MainProcess(3857897):Thread-3 @virt.py:run:426 - Thread 'destination_-1726186744903663445' terminated 2019-09-19 09:55:48,266 [virtwho.main DEBUG] MainProcess(3857897):MainThread @__main__.py:main:25 - virt-who terminated 2019-09-19 09:55:48,266 [virtwho.main DEBUG] MainProcess(3857897):MainThread @executor.py:terminate:225 - virt-who is shutting down