Bug 1367874
Summary: | capsule unable to sync with older uber cert: RPM1004: Error retrieving metadata: Not found | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Chris Duryee <cduryee> | ||||
Component: | Candlepin | Assignee: | Barnaby Court <bcourt> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.2.0 | CC: | bbuckingham, dnagarat, jcallaha, mmccune, xdmoon | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
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: | 2016-09-22 19:15:50 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
Chris Duryee
2016-08-17 17:03:21 UTC
repro steps: * install a satellite and capsule with 6.1.9, register capsule to sat * create a product, create a yum repo, sync yum repo * associate capsule with Library and Default Organization * create a CV, associate product with CV, successfully publish * now, go to the organizations page and generate a debug cert! This will generate the cert and save it in the candlepin DB. Confirm cert has expiration date 100 years from now by dowlnoading, then running: 'openssl x509 -in cert.pem -nooout' This will show the expiration date. * upgrade sat and capsule to 6.2 * attempt a capsule sync result: error from comment #0 expected result: successful sync comment #2 should be '-noout', I typoed and put an extra 'o' in the original text. workaround: use sql from https://bugzilla.redhat.com/show_bug.cgi?id=1366798#c5. The easiest way is to just copy/paste all the sql into a file, then become postgres user on the satellite and run "cat <file.sql> | psql candlepin". Expected output is: DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 This could be a different number, depending on the number of orgs and debug certs. After this, sync should work. No need to restart services. Created attachment 1191949 [details]
certificate reset SQL to re-enable capsule sync
== WORKAROUND == To get your capsules synchronizing again please download the attachment: certificate-reset.sql Instructions are as follows: 1) copy certificate-reset.sql to your Satellite server's /tmp/ directory 2) execute: cat /tmp/certificate-reset.sql | sudo -u postgres psql candlepin 3) re-attempt a capsule synchronization via the hammer cli. An example of me reproducing then resolving this error looks like: # hammer capsule content synchronize --id 2 [..............................................] [100%] Error: RPM1004: Error retrieving metadata: Not found # cat /tmp/certificate-reset.sql | sudo -u postgres psql candlepin could not change directory to "/root" DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 DELETE 1 # hammer capsule content synchronize --id 2 [.............................................] [100%] # echo $? 0 *** This bug has been marked as a duplicate of bug 1354623 *** |