Project

General

Profile

Actions

Bug #20798

closed

foreman-maintain upgrade fails to properly enable Satellite 6.2 repos

Added by Mike McCune almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Have a 6.1 instance trying to upgrade and it attempts to enable non-existent repositories:

  1. ./bin/foreman-maintain upgrade run --target-version 6.2 --whitelist=disk-io
    ...
    Running migration scripts to Satellite 6.2 ================================================================================
    Setup repositories: | Configuring repositories for 6.2 [FAIL]
    Failed executing subscription-manager repos --enable=rhel-18-server-rpms --enable=rhel-18-rhscl-18-rpms --enable=rhel-18-server-satellite-6.2-rpms, exit status 1:
    Error: 'rhel-18-server-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
    Error: 'rhel-18-rhscl-18-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
    Error: 'rhel-18-server-satellite-6.2-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.

We need to switch to use the VERSION from the RPM, not the release:

  1. rpm -qf /etc/redhat-release
    redhat-release-server-7.4-18.el7.x86_64

We also need to fix the repo-id on the SCL:

Error: 'rhel-7-rhscl-7-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
Actions #1

Updated by The Foreman Bot almost 7 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/91 added
Actions #2

Updated by Anonymous almost 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF