Project

General

Profile

Bug #18266

after running the hostname change, the old hostname is still showing in the content host registration page

Added by Suresh Thirugnanasambandan about 2 years ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

1. Run the hostname change script
2. Go to https://katello.example/com/content_hosts/register - see that the old hostname is listed in dropdown


Related issues

Related to Katello - Tracker #18273: hostname change issuesClosed2017-01-26

Associated revisions

Revision dca2c104 (diff)
Added by John Mitsch about 2 years ago

Fixes #18266 - remove old certs in pub/ on hostname change

Before hostname change:
[root@centos7-katello-3-3 ~]# ls /var/www/html/pub/
bootstrap.py
bootstrap.pyo
bootstrap.pyc
katello-ca-consumer-centos7-katello-3-3.example.com-1.0-1.src.rpm
katello-ca-consumer-centos7-katello-3-3.example.com-1.0-1.noarch.rpm
katello-ca-consumer-latest.noarch.rpm
katello-server-ca.crt
katello-rhsm-consumer

After hostname change
[root@centos7-katello-3-3 ~]# ls /var/www/html/pub/
bootstrap.py
bootstrap.pyc
bootstrap.pyo
centos7-katello-3-3.example.com-201703071758.backup <--- backup directory
katello-ca-consumer-foo.example.com-1.0-1.noarch.rpm
katello-ca-consumer-foo.example.com-1.0-1.src.rpm
katello-ca-consumer-latest.noarch.rpm
katello-rhsm-consumer
katello-server-ca.crt

certs with old hostname are in a backup directory in /var/www/html/pub
ls /var/www/html/pub/centos7-katello-3-3.example.com-201703071758.backup/
katello-ca-consumer-centos7-katello-3-3.example.com-1.0-1.noarch.rpm
katello-ca-consumer-centos7-katello-3-3.example.com-1.0-1.src.rpm
katello-ca-consumer-latest.noarch.rpm -> /var/www/html/pub/katello-ca

History

#1 Updated by John Mitsch about 2 years ago

#2 Updated by John Mitsch about 2 years ago

  • Target version set to 169

#3 Updated by Eric Helms about 2 years ago

  • Project changed from Packaging to Katello

#4 Updated by Eric Helms about 2 years ago

  • Legacy Backlogs Release (now unused) set to 211

#5 Updated by John Mitsch about 2 years ago

  • Status changed from New to Resolved

I am not seeing this behavior after running the hostname change script on 3.3

Also available in: Atom PDF