Bug 1690049
| Summary: | rhsm service unable to detect the change in server value in the rhsm.conf | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Rehana <redakkan> | ||||||
| Component: | subscription-manager | Assignee: | candlepin-bugs | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 8.0 | CC: | csnyder, jsefler | ||||||
| Target Milestone: | rc | Keywords: | Triaged | ||||||
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2021-02-01 07:39:36 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: | |||||||||
| Attachments: |
|
||||||||
The system does have inotify installed on it
[root@ibm-x3650m4-01-vm-15 ~]# subscription-manager register --username=stage_test_rhe**** --password=*** --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
The system has been registered with ID: 0109b77b-edd1-4179-97ec-1eaca5663e3a
The registered system name is: ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status: Subscribed
[root@ibm-x3650m4-01-vm-15 ~]# rpm -qa python3-inotify
python3-inotify-0.9.6-13.el8.noarch
[root@ibm-x3650m4-01-vm-15 ~]# service rhsm status
Redirecting to /bin/systemctl status rhsm.service
● rhsm.service - RHSM dbus service
Loaded: loaded (/usr/lib/systemd/system/rhsm.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2019-03-22 11:35:27 EDT; 2min 56s ago
Main PID: 17403 (rhsm-service)
Tasks: 2 (limit: 24007)
Memory: 30.2M
CGroup: /system.slice/rhsm.service
└─17403 /usr/libexec/platform-python /usr/libexec/rhsm-service
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for dom>
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [rhsm.connection:924] Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert>
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [rhsm.connection:638] Response: status=401, requestUuid=92b048d9-2979-453d-ba9a-63a8907a7be8, request="GET /subscription/co>
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials.
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: WARNING [subscription_manager.cache:242] Unable to reach server, using cached status.
Mar 22 11:37:29 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [subscription_manager.cert_sorter:205] Product status: valid_products=479 partial_products= expired_products= unentitled_pr>
Mar 22 11:37:30 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: INFO [rhsm.connection:638] Response: status=401, requestUuid=417db291-8a31-4aa5-87db-737c45f1347d, request="GET /subscription/co>
Mar 22 11:37:30 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials.
Mar 22 11:37:30 ibm-x3650m4-01-vm-15.lab.eng.bos.redhat.com rhsm-service[17403]: WARNING [subscription_manager.cache:242] Unable to reach server, using cached status.
I think this may have been fixed by the fix for bug 1698443 (which went in to the 8.1 builds as we have been rebasing from master). Please test this again. That bug was fixed as recently as May. If this turns out to be fixed, please move the bug to MODIFIED and add qa_ack. I can still reproduce this bug on 8.1 builds Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: qa Password: The system has been registered with ID: 9549a996-ccc7-4451-8c52-e2d18618c965 The registered system name is: kvm-04-guest21.lab.eng.rdu2.redhat.com [root@kvm-04-guest21 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed [root@kvm-04-guest21 ~]# hostname kvm-04-guest21.lab.eng.rdu2.redhat.com [root@kvm-04-guest21 ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current System Purpose Status: Not Specified [root@kvm-04-guest21 ~]# rpm -qa python3-inotify python3-inotify-0.9.6-13.el8.noarch [root@kvm-04-guest21 ~]# rpm -qa subscription-manager --changelog | grep 1698443 - 1698443: Proper callbacks in cert sorter (wpoteat) [root@kvm-04-guest21 ~]# cockpit screen shot (PFA) Created attachment 1636095 [details]
cockpit
During the verification process of this bug 1804114, observed the same behaviour in a slightly different test steps : Listing those below. 1. Install cockpit on RHEL8.2 system 2. Start the cockpit service (at this point the hostname should be pointing to production server by default ) 3. Load the cockpit page n the navigate to "Subscriptions" page 4. Now from cli , register to stage server using --serverurl option 5. Notice that the status changes are not reflected on cockpit UI (PFA: Not status change.png) 6. After unregistering from CLI, Repeat the same step 4 with --auto-attach option. you will notice that the status changes are reflected immediately. QE and Dev discussed this observation and decided to track it in this bug . Removing triage keyword to discuss again in the triage meeting Created attachment 1673724 [details]
No Status Change
[root@kvm-08-guest15 ~]# subscription-manager config --list | grep inotify -A3 -B3
consumercertdir = [/etc/pki/consumer]
entitlementcertdir = [/etc/pki/entitlement]
full_refresh_on_yum = [0]
inotify = [1]
manage_repos = [1]
package_profile_on_trans = [0]
pluginconfdir = [/etc/rhsm/pluginconf.d]
[root@kvm-08-guest15 ~]# subscription-manager config --list | grep inotify
inotify = [1]
rhsm.log during CLI registration
020-03-26 05:43:14,576 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:14,584 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:14,585 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=none
2020-03-26 05:43:17,143 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=basic username=rhel8_rhsm_testing_1
2020-03-26 05:43:23,170 [INFO] subscription-manager:19891:MainThread @managerlib.py:72 - Consumer created: kvm-08-guest15.hv2.lab.eng.bos.redhat.com (379a8f22-6268-43ab-af42-b4a3c63a70e2)
2020-03-26 05:43:23,172 [INFO] rhsm-service:17493:Thread-1 @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:23,172 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:23,639 [ERROR] rhsm-service:17493:Thread-1 @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:23,639 [ERROR] rhsm-service:17493:Thread-1 @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:23,953 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:23,953 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:24,029 [ERROR] rhsm-service:17493:Thread-1 @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:24,029 [ERROR] rhsm-service:17493:Thread-1 @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:24,341 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:24,342 [ERROR] rhsm-service:17493:MainThread @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:24,342 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:24,610 [ERROR] rhsm-service:17493:Thread-1 @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:24,610 [ERROR] rhsm-service:17493:Thread-1 @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:24,997 [ERROR] rhsm-service:17493:Thread-1 @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:24,997 [ERROR] rhsm-service:17493:Thread-1 @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:25,029 [ERROR] rhsm-service:17493:MainThread @util.py:41 - HTTP error (401 - Unauthorized): Invalid credentials.
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
ret = func(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/syspurpose.py", line 84, in GetSyspurposeStatus
syspurpose_status = systempurpose.get_syspurpose_status()['status']
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/syspurpose.py", line 43, in get_syspurpose_status
self.purpose_status = self.cp.getSyspurposeCompliance(self.identity.uuid, on_date)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1225, in getSyspurposeCompliance
return self.conn.request_get(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get
return self._request("GET", method, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:25,030 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:25,030 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:25,264 [INFO] subscription-manager:19891:MainThread @entcertlib.py:131 - certs updated:
Total updates: 0
Found (local) serial# []
Expected (UEP) serial# []
Added (new)
<NONE>
Deleted (rogue):
<NONE>
2020-03-26 05:43:25,511 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:25,511 [ERROR] rhsm-service:17493:MainThread @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:25,512 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:26,194 [ERROR] rhsm-service:17493:MainThread @util.py:41 - HTTP error (401 - Unauthorized): Invalid credentials.
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
ret = func(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/syspurpose.py", line 84, in GetSyspurposeStatus
syspurpose_status = systempurpose.get_syspurpose_status()['status']
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/syspurpose.py", line 43, in get_syspurpose_status
self.purpose_status = self.cp.getSyspurposeCompliance(self.identity.uuid, on_date)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1225, in getSyspurposeCompliance
return self.conn.request_get(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get
return self._request("GET", method, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:26,195 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:26,195 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:26,196 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:26,579 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:26,579 [ERROR] rhsm-service:17493:MainThread @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:26,976 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:26,977 [ERROR] rhsm-service:17493:MainThread @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:26,978 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:26,978 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:26,979 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:27,667 [INFO] subscription-manager:19891:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:27,814 [ERROR] rhsm-service:17493:MainThread @util.py:41 - HTTP error (401 - Unauthorized): Invalid credentials.
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
ret = func(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/syspurpose.py", line 84, in GetSyspurposeStatus
syspurpose_status = systempurpose.get_syspurpose_status()['status']
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/syspurpose.py", line 43, in get_syspurpose_status
self.purpose_status = self.cp.getSyspurposeCompliance(self.identity.uuid, on_date)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1225, in getSyspurposeCompliance
return self.conn.request_get(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get
return self._request("GET", method, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:27,814 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:27,814 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:27,815 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:28,393 [INFO] rhsmd:19894:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:28,648 [ERROR] rhsm-service:17493:MainThread @util.py:41 - HTTP error (401 - Unauthorized): Invalid credentials.
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
ret = func(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/syspurpose.py", line 84, in GetSyspurposeStatus
syspurpose_status = systempurpose.get_syspurpose_status()['status']
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/syspurpose.py", line 43, in get_syspurpose_status
self.purpose_status = self.cp.getSyspurposeCompliance(self.identity.uuid, on_date)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1225, in getSyspurposeCompliance
return self.conn.request_get(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get
return self._request("GET", method, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
info=info, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:28,649 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:28,649 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:28,651 [INFO] rhsm-service:17493:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2020-03-26 05:43:28,698 [ERROR] rhsmd:19894:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:28,698 [WARNING] rhsmd:19894:MainThread @cache.py:241 - Unable to reach server, using cached status.
2020-03-26 05:43:28,711 [WARNING] rhsm-service:17493:Thread-1 @logutil.py:154 - logging already initialized
2020-03-26 05:43:29,050 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:29,050 [WARNING] rhsm-service:17493:MainThread @cache.py:241 - Unable to reach server, using cached status.
2020-03-26 05:43:29,439 [ERROR] rhsm-service:17493:MainThread @cache.py:235 - HTTP error (401 - Unauthorized): Invalid credentials.
2020-03-26 05:43:29,439 [ERROR] rhsm-service:17493:MainThread @cache.py:238 - Server unreachable, registered, but no cache exists.
2020-03-26 05:43:29,440 [INFO] rhsm-service:17493:MainThread @i18n.py:172 - Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm'
2020-03-26 05:43:29,440 [INFO] rhsm-service:17493:MainThread @i18n.py:144 - Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm'
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
Description of problem: Observed that a change in rhsm.conf file was not detected by the rhsm.serveice (even though the service was running ) Version-Release number of selected component (if applicable): # subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.3.15-1 subscription management rules: 5.34 subscription-manager: 1.23.8-35.el8 How reproducible: Steps to Reproduce: 1.Install cockpit and start cockpit , rhsm services 2.change the hostname in the rhsm.conf to stage server 3.Register and attach subscription from cli 4. launch cockpit and access "subscription" tab Actual results: you will notice a green installed product status ,but the overall status will still display as 'System not registered" , try to unregister from the cockpit UI a error message " HTTP error (401 - Unauthorized): Invalid credentials." is displayed Expected results: no error message and the service should detect the change in the host name value and should reflect the status correct on the cockpit UI Additional info: [root@ibm-z-130 ~]# subscription-manager register --username=stage_test_****** --password=redhat --auto-attach Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: 176db4cc-934f-4ae7-87ac-5275a78d7646 The registered system name is: ibm-z-130.rhts.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for IBM z Systems Status: Subscribed ^^ registered against stage [root@ibm-z-130 ~]# [root@ibm-z-130 ~]# service rhsm status Redirecting to /bin/systemctl status rhsm.service ● rhsm.service - RHSM dbus service Loaded: loaded (/usr/lib/systemd/system/rhsm.service; disabled; vendor preset: disabled) Active: active (running) since Mon 2019-03-18 12:07:14 EDT; 13min ago Main PID: 18708 (rhsm-service) Tasks: 2 (limit: 12620) Memory: 32.1M CGroup: /system.slice/rhsm.service └─18708 /usr/libexec/platform-python /usr/libexec/rhsm-service Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:924] Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/e> Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:638] Response: status=401, requestUuid=3c359261-56cd-4816-925d-b220b2545cbe, request="GET /subscription/consumers/17> Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials. Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: WARNING [subscription_manager.cache:242] Unable to reach server, using cached status. Mar 18 12:19:09 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.cert_sorter:205] Product status: valid_products=72 partial_products= expired_products= unentitled_producs= futu> Mar 18 12:19:10 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:638] Response: status=401, requestUuid=94f2ce55-4569-48e5-ba09-1e8c63ac39bb, request="GET /subscription/consumers/17> Mar 18 12:19:10 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials. Mar 18 12:19:10 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: WARNING [subscription_manager.cache:242] Unable to reach server, using cached status. ^ service is still looking at production server journalctl =============== Mar 18 12:08:40 ibm-z-130.rhts.eng.bos.redhat.com systemd[1]: Started dnf makecache. Mar 18 12:08:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:08:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:09:31 ibm-z-130.rhts.eng.bos.redhat.com PackageKit[18811]: get-updates transaction /2_dacbdbdb from uid 0 finished with success after 8ms Mar 18 12:09:31 ibm-z-130.rhts.eng.bos.redhat.com PackageKit[18811]: get-updates transaction /3_bcdedbbb from uid 0 finished with success after 8ms Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:40 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:924] Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/e> Mar 18 12:09:41 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:41 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:41 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:41 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:09:41 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:924] Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none Mar 18 12:09:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:09:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:10:31 ibm-z-130.rhts.eng.bos.redhat.com sshd[20502]: Accepted password for root from 10.67.116.193 port 51106 ssh2 Mar 18 12:10:31 ibm-z-130.rhts.eng.bos.redhat.com systemd[1]: Started Session 4 of user root. Mar 18 12:10:31 ibm-z-130.rhts.eng.bos.redhat.com systemd-logind[1296]: New session 4 of user root. Mar 18 12:10:31 ibm-z-130.rhts.eng.bos.redhat.com sshd[20502]: pam_unix(sshd:session): session opened for user root by (uid=0) Mar 18 12:10:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:10:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:11:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:11:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:12:39 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:39 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:51 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:51 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:51 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:924] Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/e> Mar 18 12:12:52 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:52 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:52 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:52 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:53 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:154] Could not import locale for en-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:53 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [subscription_manager.i18n:126] Could not import locale either for en-GB_EN-GB: [Errno 2] No translation file found for domain: 'rhsm' Mar 18 12:12:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:12:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:13:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:13:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:14:36 ibm-z-130.rhts.eng.bos.redhat.com PackageKit[18811]: daemon quit Mar 18 12:14:54 ibm-z-130.rhts.eng.bos.redhat.com restraintd[1537]: *** Current Time: Mon Mar 18 12:14:54 2019 Localwatchdog at: * Disabled! * Mar 18 12:15:18 ibm-z-130.rhts.eng.bos.redhat.com dbus-daemon[1226]: [system] Activating service name='com.redhat.SubscriptionManager' requested by ':1.84' (uid=0 pid=20659 comm="/usr/libexec/platform-python /u> Mar 18 12:15:18 ibm-z-130.rhts.eng.bos.redhat.com dbus-daemon[1226]: [system] Successfully activated service 'com.redhat.SubscriptionManager' Mar 18 12:15:21 ibm-z-130.rhts.eng.bos.redhat.com subscription-manager[20659]: Registered system with identity: 05bc484c-2e62-481a-ba35-b268dd4b6b24 Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:638] Response: status=401, requestUuid=674837c1-342e-4eee-af79-620c4bdc01ae, request="GET /subscription/consumers/05> Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials. Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:239] Server unreachable, registered, but no cache exists. Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:638] Response: status=401, requestUuid=444bc932-e907-4bc9-b9ad-ae4b60d94b74, request="GET /subscription/consumers/05> Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials. Mar 18 12:15:22 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:239] Server unreachable, registered, but no cache exists. Mar 18 12:15:23 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: INFO [rhsm.connection:638] Response: status=401, requestUuid=d00b0da0-0d11-45a7-a7d0-7688a10785ca, request="GET /subscription/consumers/05> Mar 18 12:15:23 ibm-z-130.rhts.eng.bos.redhat.com rhsm-service[18708]: ERROR [subscription_manager.cache:236] HTTP error (401 - Unauthorized): Invalid credentials.