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 1596001

Summary: subscription-manager:10509:MainThread @intentstore_interface.py:31 - Could not import from module intentctl.
Product: Red Hat Enterprise Linux 7 Reporter: Wei Liu <weiliu>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: high    
Version: 7.6CC: csnyder, jsefler, khowell, qianzhan, rjerrido
Target Milestone: rcKeywords: Triaged
Target Release: ---   
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: 2018-10-30 10:36:12 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:
Description Flags
the rhsm log none

Description Wei Liu 2018-06-28 02:34:11 UTC
Created attachment 1455164 [details]
the rhsm log

Description of problem:
Error message in rhsm.log

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.21.5-5.el7.x86_64
subscription-manager-rhsm-certificates-1.21.5-5.el7.x86_64
subscription-manager-plugin-container-1.21.5-5.el7.x86_64
subscription-manager-rhsm-1.21.5-5.el7.x86_64
subscription-manager-1.21.5-5.el7.x86_64
subscription-manager-initial-setup-addon-1.21.5-5.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.Remove the system's product cert
[root@kvm-02-guest13 log]# mv /etc/pki/product-default/* /root/

2.Register the system
[root@kvm-02-guest13 log]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rnew_test
Password: 
The system has been registered with ID: 7666c1a2-67b7-4380-83c3-55dfdb339169
The registered system name is: kvm-02-guest13.rhts.eng.bos.redhat.com

3.Restart rhsmcertd service and check the rhsm.log
[root@kvm-02-guest13 log]# service rhsmcertd restart
Redirecting to /bin/systemctl restart rhsmcertd.service
[root@kvm-02-guest13 log]# cat rhsm/rhsm.log | grep -i error
2018-06-27 22:23:31,244 [ERROR] subscription-manager:7842:MainThread @intentstore_interface.py:31 - Could not import from module intentctl.


Actual results:
As step 3.

Expected results:
No error message in rhsm.log


Additional info:
The detail of rhsm.log please see the attachment

Comment 2 Chris Snyder 2018-08-16 18:57:49 UTC
Please note: The aforementioned python files "intentstore_interface.py" has been renamed to "syspurposelib.py".

@dev This fix for this should be to change that log message's level to DEBUG.

Comment 3 Chris Snyder 2018-08-16 19:00:27 UTC
Merged into master as of cff193688adf39e0f7769c127a640bcb2d01d195.

Comment 5 qianzhan 2018-08-27 08:34:45 UTC
Moving to VERIFIED:
1. Install RHEL-7.6-20180823.0-server

2. Remove the product cert 
[root@ent-01-vm-04 ~]# mv /etc/pki/product-default/* /root/

3. Register the system against stage candlepin:
[root@ent-01-vm-04 ~]# subscription-manager  register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rnew_test
Password: 
The system has been registered with ID: 666f07a2-74b9-4607-b82a-25be20482c9c
The registered system name is: ent-01-vm-04.lab.eng.nay.redhat.com

4. Restart rhsmcertd service.

[root@ent-01-vm-04 ~]# service rhsmcertd restart
Redirecting to /bin/systemctl restart rhsmcertd.service

5. Check error message in rhsm.log:
[root@ent-01-vm-04 ~]# cat /var/log/rhsm/rhsm.log | grep -i error
[root@ent-01-vm-04 ~]#

Comment 7 errata-xmlrpc 2018-10-30 10:36:12 UTC
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-2018:3153