Brand Claim Brand Claim
by Schischke, Johannes

Red Hat 6 and 7 infrastructure migration to RHUI v3

Migration information

Currently OTC Image Factory team plans an infrastructure migration to latest Red Hat Update Infrastucture (RHUI) v3 in German region eu-de! Therefore all existing ECS servers running a OTC public image of Red Hat 6 and 7 without BYOL are affected.

New RHUI v3 will be available at new URL rhui.eu-de.otc-service.com.

Please be aware that OTC public services are running within two IP address blocks: 100.64.0.0/10 and 198.19.0.0/16. Whitelisting both blocks is sufficient.

Visit here for more detailed information: OTC public services

Our roadmap and migration steps

Please find our roadmap and recommendations down below:

Step Change Date Status
1 Switch new Red Hat 6 and 7 servers to RHUI v3 04.10.2021 Done
2 Provide update package for migration of existing Red Hat 6 and 7 servers to new RHUI v3 11.10.2021 Done
3 Removal of old DNS entries and infrastructure retirement of old RHUI 10.01.2022 Done

1. New Red Hat 6 and 7 servers

This change has not a quite impact as all new servers using a public OTC Red Hat 6 and 7 image without BYOL will point to RHUI v3 URL rhui.eu-de.otc-service.com by default. Please consider to whitelist the two above mentioned IP blocks.

2. Migration of existing Red Hat 6 and 7 servers

In general our public OTC Red Hat 6 and 7 images are getting configured during first boot by Openstack vendordata and cloud-init. This process configures a repository and installs a package depends on Red Hat image version. OTC Image Factory will provide an update of this package within above communicated date. Please consider to whitelist the two above mentioned IP blocks.

Prior to perform migration, please check first whether the following repository is still configured and enabled!

Red Hat 6

Login to server + switch to root user and check configured repositories.

$ sudo -i
$ yum repolist all
#
##
repo id                               repo name                                                   status
OTC-rhel6-rhui-rpm                    OTC-rhel6-rhui-rpm                                          enabled:      1
##
#

Red Hat 7

Login to server + switch to root user and check configured repositories.

$ sudo -i
$ yum repolist all
#
##
repo id                                    repo name                                        status
OTC-rhel7-rhui-rpm                         OTC-rhel7-rhui-rpm                               enabled:      1
##
#

Step by step migration

  1. Switch to root user

    $ sudo -i
  2. Clear yum cache

    $ yum clean all
  3. Create fresh yum cache

    $ yum repolist all
  4. Skip for Red Hat 7 users - Do an update of package rhui-rhel6-repos from version 0.3-1 to 2.1-0.1 for Red Hat 6

    $ yum update rhui-rhel6-repos

    Please ignore following error messages during package installation!

    #
    ##
    rhui-rhel6-repos-2.1-0.1.noarch.rpm                                                                                                                                                                                | 9.1 kB     00:00
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Updating   : rhui-rhel6-repos-2.1-0.1.noarch                                                                                                                                                                                        1/2
    Cleanup    : rhui-rhel6-repos-0.3-1.noarch                                                                                                                                                                                          2/2
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/els/rhel/rhui/server/6/6Server/x86_64/os/repodata/2af6af08-86be-4df7-98e2-5a83743e3927: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/els/rhel/rhui/server/6/6Server/x86_64/os/repodata/2af6af08-86be-4df7-98e2-5a83743e3927: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/supplementary/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/supplementary/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/resilientstorage/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/resilientstorage/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/scalablefilesystem/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/scalablefilesystem/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os/repodata/productid: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"
    Trying other mirror.
    Verifying  : rhui-rhel6-repos-2.1-0.1.noarch                                                                                                                                                                                        1/2
    Verifying  : rhui-rhel6-repos-0.3-1.noarch                                                                                                                                                                                          2/2
    Updated:
    rhui-rhel6-repos.noarch 0:2.1-0.1
    ##
    #
  5. Skip for Red Hat 6 users - Do an update of package rhui-rhel7-repos from version 0.4-1 to 2.0-0.1 for Red Hat 7

    $ yum update rhui-rhel7-repos

    Please ignore following error messages during package installation!

    #
    ##
    rhui-rhel7-repos-2.0-0.1.noarch.rpm                                                                                                                                                                                | 9.0 kB  00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Updating   : rhui-rhel7-repos-2.0-0.1.noarch                                                                                                                                                                                        1/2
    Cleanup    : rhui-rhel7-repos-0.4-1.noarch                                                                                                                                                                                          2/2
    Verifying  : rhui-rhel7-repos-2.0-0.1.noarch                                                                                                                                                                                        1/2
    Verifying  : rhui-rhel7-repos-0.4-1.noarch                                                                                                                                                                                          2/2
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/extras/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/extras/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/os/repodata/c76c2299-12f3-4f9c-b7bd-03bacee2c363: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/os/repodata/c76c2299-12f3-4f9c-b7bd-03bacee2c363: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/supplementary/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/supplementary/os/repodata/productid: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds02.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/resilientstorage/os/repodata/4368e6bc-dbf7-42be-a999-6ab8a09ce883: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    https://rhui-cds01.eu-de.otc-service.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/resilientstorage/os/repodata/4368e6bc-dbf7-42be-a999-6ab8a09ce883: [Errno 14] HTTPS Error 401 - Unauthorized
    Trying other mirror.
    Updated:
    rhui-rhel7-repos.noarch 0:2.0-0.1
    ##
    #
  6. Clear yum cache again

    $ yum clean all
  7. Create fresh yum cache and check Repo-mirrors and Repo-baseurl output regarding new URL rhui.eu-de.otc-service.com. Please be patient as this can take a little bit more time.

    Old URLs like e.g. rhui-cds01.eu-de.otc-service.com or rhui-cds02.eu-de.otc-service.com must not be configured anymore.

    $ yum repolist all -v
  8. Skip for Red Hat 7 users - Please remove old repository file.

    $ rm /etc/yum.repos.d/OTC-rhel6-rhui-rpm.repo
  9. Skip for Red Hat 6 users - Please remove old repository file.

    $ rm /etc/yum.repos.d/OTC-rhel7-rhui-rpm.repo
  10. Now the server has been successfully switched to new RHUI v3 infrastructure. Please get in contact with our OTC support, if you encounter any issues during migration steps.

3. Removal of old DNS entries and infrastructure retirement

Old RHUI infrastructure will be in place and still delivers latest package updates until the above communicated date.

The following old DNS entries will be retired:

Old DNS
rhui-cds01.otc-service.com
rhui-cds02.otc-service.com
rhui-cds01.eu-de.otc-service.com
rhui-cds02.eu-de.otc-service.com