Bug 1478265
Summary: | After deleting consumer host on Satellite6.1.12 server, no consumer.old folder is created in client. | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | qianzhan |
Component: | Candlepin | Assignee: | Barnaby Court <bcourt> |
Status: | CLOSED WORKSFORME | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | Unspecified | CC: | bbuckingham, khowell, qianzhan |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
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: | 2017-08-07 07:45:04 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
qianzhan
2017-08-04 07:00:29 UTC
qianzhan, 7.4 subscription-manager contains logic for maxSplayMinutes. I suspect this is the cause. With default settings in 7.4 (maxSplayMinutes=10), sleep 12 minutes should work. Alternatively, you can change maxSplayMinutes in your test. Please retest with maxSplayMinutes accounted for, and let us know the results. Hi, Kevin The following are results you need: 1. Set maxSplayMinutes=0, the result is what we want: 1) Disable splay: [root@bkr-hv03-guest32 ~]# subscription-manager config | grep splay splay = 0 2) Register the rhel7.4 system against satellite6.1.12: [root@bkr-hv03-guest32 ~]# subscription-manager register Registering to: hp-dl320egen8-01.rhts.eng.bos.redhat.com:443/rhsm Username: admin Password: The system has been registered with ID: 23fd76f4-fa03-4116-bf20-c7fa3f17c9f0 3) Delete the system on satellite web UI: [root@bkr-hv03-guest32 ~]# subscription-manager identity Unit 23fd76f4-fa03-4116-bf20-c7fa3f17c9f0 has been deleted 4) Restart the rhsmcertd service and wait 2 minutes to check consumer folder and consumer.old folder: [root@bkr-hv03-guest32 ~]# service rhsmcertd restart Redirecting to /bin/systemctl restart rhsmcertd.service [root@bkr-hv03-guest32 ~]# sleep 120 [root@bkr-hv03-guest32 ~]# ls /etc/pki/consumer [root@bkr-hv03-guest32 ~]# ls /etc/pki/consumer.old/ cert.pem key.pem 2. Use default maxSplayMinutes=10: 1) Set splay=1 in rhsm.conf: [root@bkr-hv03-guest32 ~]# subscription-manager config | grep splay splay = [1] 2) Register system against satellite6.1.12: [root@bkr-hv03-guest32 ~]# subscription-manager register Registering to: hp-dl320egen8-01.rhts.eng.bos.redhat.com:443/rhsm Username: admin Password: The system has been registered with ID: da12e861-f6fe-454d-b3a7-ddfadf71d52d 3) Delete the system on satellite web UI: [root@bkr-hv03-guest32 ~]# subscription-manager identity Unit da12e861-f6fe-454d-b3a7-ddfadf71d52d has been deleted 4) Restart the rhsmcertd service and wait 12 minutes to check consumer folder and consumer.old folder: [root@bkr-hv03-guest32 ~]# service rhsmcertd restart Redirecting to /bin/systemctl restart rhsmcertd.service [root@bkr-hv03-guest32 ~]# sleep 720 [root@bkr-hv03-guest32 ~]# ls /etc/pki/consumer [root@bkr-hv03-guest32 ~]# ls /etc/pki/consumer.old/ cert.pem key.pem Close the bug as WORKSFORME. |