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.

Bug 1868812

Summary: subscription-manager commands on a disconnected RHEL 8.2 host are giving dbus errors while bootstraping the host with Satellite 6
Product: Red Hat Enterprise Linux 8 Reporter: Sayan Das <saydas>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.2CC: redakkan, wpinheir
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-25 13:33:27 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 Sayan Das 2020-08-13 21:02:45 UTC
Description of problem:

subscription-manager commands on a disconnected RHEL 8.2 host are giving dbus errors while bootstraping the host with Satellite 6

The same issue is not reproducible or visible on RHEL 8.1


Version-Release number of selected component (if applicable):
RHEL 8.2


How reproducible:
Always

Steps to Reproduce:

On the client host,

# iptables -A OUTPUT -d subscription.rhsm.redhat.com -j DROP

# curl -O http://satellite.example.com/pub/bootstrap.py

# rm -rf /var/cache/yum/

# /usr/libexec/platform-python /root/bootstrap.py --login=admin --password=RedHat1! \
--server satellite.example.com \
--location="GSS" \
--organization="RedHat" \
--activationkey=Blank \
--rex \
--rex-user=ansible \
--rex-apikeys \
--skip=foreman \
--force --verbose --enablerepos=*satellite-tools*

Actual results:

Part of output from bootstrap.py execution.

~~~~
[SUCCESS], [2020-08-14 00:59:46], [/usr/sbin/subscription-manager config --server.server_timeout=900], completed successfully.
[RUNNING], [2020-08-14 00:59:46], [/usr/sbin/subscription-manager register --org 'RedHat' --name 'rhel8.example.com' --activationkey 'Blank'  --serverurl=https://satellite.example.com:443/rhsm --baseurl=https://satellite.example.com/pulp/repos --force]
The system has been registered with ID: 54ee53e5-d598-43f1-8bf9-b6f315be7d58
The registered system name is: rhel8.example.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64
Status:       Subscribed

[SUCCESS], [2020-08-14 01:00:33], [/usr/sbin/subscription-manager register --org 'RedHat' --name 'rhel8.example.com' --activationkey 'Blank'  --serverurl=https://satellite.example.com:443/rhsm --baseurl=https://satellite.example.com/pulp/repos --force], completed successfully.
[RUNNING], [2020-08-14 01:00:33], [/usr/bin/systemctl enable rhsmcertd]

[SUCCESS], [2020-08-14 01:00:33], [/usr/bin/systemctl enable rhsmcertd], completed successfully.
[RUNNING], [2020-08-14 01:00:33], [/usr/bin/systemctl restart rhsmcertd]

[SUCCESS], [2020-08-14 01:00:33], [/usr/bin/systemctl restart rhsmcertd], completed successfully.
[RUNNING], [2020-08-14 01:00:33], [Enabling repositories - *satellite-tools*]
[RUNNING], [2020-08-14 01:00:33], [subscription-manager repos --enable=*satellite-tools*]
ERROR:dbus.proxies:Introspect error on :1.87:/EntitlementStatus: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ERROR:subscription_manager.dbus_interface:org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/subscription_manager/dbus_interface.py", line 66, in _update
    ignore_reply=self.has_main_loop)
  File "/usr/lib64/python3.6/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Repository 'satellite-tools-6.7-for-rhel-8-x86_64-rpms' is enabled for this system.
[SUCCESS], [2020-08-14 01:01:28], [subscription-manager repos --enable=*satellite-tools*], completed successfully.
~~~~

   --> Note that, at thie point the host was already registered with satellite.example.com.


Expected results:

~~
[SUCCESS], [2020-08-13 19:44:16], [/usr/sbin/subscription-manager register --org 'RedHat' --name 'rhel8.example.com' --activationkey 'Blank'  --serverurl=https://satellite.example.com:443/rhsm --baseurl=https://satellite.example.com/pulp/repos --force], completed successfully.
[RUNNING], [2020-08-13 19:44:16], [/usr/bin/systemctl enable rhsmcertd]

[SUCCESS], [2020-08-13 19:44:18], [/usr/bin/systemctl enable rhsmcertd], completed successfully.
[RUNNING], [2020-08-13 19:44:18], [/usr/bin/systemctl restart rhsmcertd]

[SUCCESS], [2020-08-13 19:44:20], [/usr/bin/systemctl restart rhsmcertd], completed successfully.
[RUNNING], [2020-08-13 19:44:20], [Enabling repositories - *satellite-tools*]
[RUNNING], [2020-08-13 19:44:20], [subscription-manager repos --enable=*satellite-tools*]
Repository 'satellite-tools-6.7-for-rhel-8-x86_64-rpms' is enabled for this system.
[SUCCESS], [2020-08-13 19:44:29], [subscription-manager repos --enable=*satellite-tools*], completed successfully.

~~



Additional info:

It's very similar to https://bugzilla.redhat.com/show_bug.cgi?id=1643189 which was opened for RHEL 7.4 and fixed on 7.8.


NOTE: I already have the processTimout value set.


From my test system,
~~
# subscription-manager config | grep process
   processtimeout = [300]

# rpm -qa | egrep "subscription|dbus" | sort -u
abrt-dbus-2.10.9-11.el8.x86_64
dbus-1.12.8-10.el8_2.x86_64
dbus-common-1.12.8-10.el8_2.noarch
dbus-daemon-1.12.8-10.el8_2.x86_64
dbus-glib-0.110-2.el8.x86_64
dbus-libs-1.12.8-10.el8_2.x86_64
dbus-tools-1.12.8-10.el8_2.x86_64
dnf-plugin-subscription-manager-1.26.17-1.el8_2.x86_64
python3-dbus-1.2.4-15.el8.x86_64
python3-slip-dbus-0.6.4-11.el8.noarch
python3-subscription-manager-rhsm-1.26.17-1.el8_2.x86_64
subscription-manager-1.26.17-1.el8_2.x86_64
subscription-manager-cockpit-1.26.17-1.el8_2.noarch
subscription-manager-rhsm-certificates-1.26.17-1.el8_2.x86_64

# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.2 (Ootpa)

~~

Comment 5 Rehana 2020-08-25 13:33:27 UTC

*** This bug has been marked as a duplicate of bug 1780028 ***