Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1595081

Summary: Upgrade to Satellite 6.3 and promote an old CV with 500 Internal Server Error
Product: Red Hat Satellite Reporter: matt jia <mjia>
Component: satellite-change-hostnameAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: inecas, jomitsch, mbacovsk, mjia, mmello
Target Milestone: UnspecifiedKeywords: Triaged, Upgrades
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: 2020-02-03 16:27:53 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 matt jia 2018-06-26 04:04:57 UTC
Description of problem:

After upgrading to 6.3, promoting an old CV failed with the below errors


INFO 2018-06-15 09:54:29 API] Server: https://example.com
[ INFO 2018-06-15 09:54:29 API] POST /katello/api/content_views/3/publish
[DEBUG 2018-06-15 09:54:29 API] Params: {
                        "description" => "June 2018 RH Updates",
    "force_yum_metadata_regeneration" => true
}
[DEBUG 2018-06-15 09:54:29 API] Headers: {}
[DEBUG 2018-06-15 09:54:29 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ERROR 2018-06-15 09:54:33 API] 500 Internal Server Error
[DEBUG 2018-06-15 09:54:33 API] {
    "displayMessage" => "hostname \"example.old.com\" does not match the server certificate",
            "errors" => [
        [0] "hostname \"example.old.com\" does not match the server certificate"                         <----------------------------
    ]
}

Note: the "example.old.com" is an old hostname which got renamed in 6.2 by using 
katello-change-hostname.

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

6.3.1

How reproducible:

Hard

Steps to Reproduce:
1. staring with satellite 6.2.14
2. changing hostname with katello-change-hostname
3. upgrading to satellite 6.3
4. hammer -d content-view publish --description 'June 2018 RH Updates' --force-yum-metadata-regeneration 1 --id 3 --organization-id 3

Actual results:

500 Internal Server Error

Expected results:

The CV should be promoted successfully.

Comment 3 John Mitsch 2018-06-29 17:46:08 UTC
A few questions:

1) Did you experience any issues during the upgrade?
2) Can you grep for your old hostname in /etc/ (and any other directories you think may be related)
3) Do you only get this error from hammer, will promoting the content view via the UI work?
4) Is there a traceback?

Comment 4 John Mitsch 2018-06-29 17:46:35 UTC
adding needsinfo for questions above

Comment 9 Bryan Kearney 2020-01-15 21:00:36 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 10 Bryan Kearney 2020-02-03 16:27:53 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.