Bug 1248955
Summary: | Failed to register satellite-6.1 after updated candlepin to 2.0.6 [404 Resource Not Found] | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Candlepin | Reporter: | Eko <hsun> | ||||||
Component: | candlepin | Assignee: | Filip Nguyen <fnguyen> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | Katello QA List <katello-qa-list> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 1.2 | CC: | dgoodwin, fnguyen, gxing, sgao, shihliu | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-10-12 06:36:40 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
Eko
2015-07-31 08:13:09 UTC
Candlepin updates almost always require a database upgrade. Normally this would happen during the overall Satellite upgrade. However in your case you're going to need to trigger it manually. I cannot guarantee this is correct but I think you just need to run this after the rpm -Uvh: /usr/share/candlepin/cpdb --update -u username -p password The database username and password I'm not sure about for a Sat install. Username is likely "candlepin", and password you should be able to see in the database config in /etc/candlepin/candlepin.conf. Be forewarned however that Candlepin 2.0 is unreleased and has not seen proper QE, the upgrade is significant and it's hard to say for sure if it's ready and will work without issue. Hi Devan, After updated candlepin to 2.0.6 package, I still failed to run: # /usr/share/candlepin/cpdb --update -u candlepin -p candlepin More details, please refer to the attachment. BTW, do we have some available yum repository integrated candlepin-2.0 with SAM/Satellite for internal testing? Created attachment 1061363 [details]
cpdb --update
Hi Eko, do you have liquibase 2.x installed? This might require 3.x, which should be relatively widely available, epel, brew, etc. There are no known builds of Satellite integrating candlepin 2.0 at this time as far as I am aware. Hi Devan, thanks for your feedback, I updated liquibase to 3.1.0-5 from brew's package, cpdb can update the database normally. but still can't register the host to the san server due to "Server error attempting a POST to /sam/api/consumers?owner=ACME_Corporation returned status 404" More details, please refer to the register_error.log attachment. Created attachment 1061887 [details]
404 error register host to sam
We would probably need a foreman debug to see what the actual issue was on the server. However this effort is doomed to fail, candlepin 2.0 needs proper integration into Satellite when the team has time, there will be Satellite changes required for it to function properly. Tom McKay was looking at this a bit, not sure where it stands yet but it should be happening for Sat 6.2. Eko, are you still committed to resolve this? If so I will help you but I need actual logs from the CP server. If Devans answer in Comment 7 persuaded you that this is not an issue for now I will close this as NOT A BUG Hi, Filip Nguyen, now we are waiting for the candlepin 2.x integrated with Sat 6.2 , we don't update the candlepin to 2.x by manual for testing, so I think you can close it as Not A Bug. |