Project

General

Profile

Actions

Bug #34039

closed

Attempt of upgrading Satellite server to 6.7 or 6.8 stops with message "Please run 'foreman-maintain prep-6.10-upgrade' prior to upgrading." when using latest rubygem-foreman_maintain package

Added by Amit Upadhye over 2 years ago. Updated over 2 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2024269

Description of problem:

After installing latest package of rubygem-foreman_maintain.noarch and while performing upgrade on Satellite 6.6, 6.7, 6.8, 6.9; satellite-maintain tool is printing below message:

~~
Please run 'foreman-maintain prep-6.10-upgrade' prior to upgrading.
~~

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

Red Hat Satellite 6.6, 6.7, 6.8, 6.9

How reproducible:

Steps to Reproduce:
1. Install latest version of rubygem-foreman_maintain.noarch

rubygem-foreman_maintain.noarch 1:0.8.20-1.el7sat rhel-7-server-satellite-maintenance-6-rpms

2. Run command to perform upgrade using "satellite-maintain" tool:

For example:
  1. satellite-maintain upgrade check --target-version 6.8

3. Command will print below message:

Nothing to update, can't find new version of satellite-maintain.
Please run 'foreman-maintain prep-6.10-upgrade' prior to upgrading.

4. Now downgrade rubygem-foreman_maintain.noarch using below commands:

  1. yum history
  1. yum history undo <Transaction ID>
  1. rpm -qa |grep rubygem-foreman_maintain.noarch

5. Again run command to perform upgrade using "satellite-maintain" tool:

  1. satellite-maintain upgrade check --target-version 6.8

6. Command will print below message:

Checking for new version of satellite-maintain...
rubygem-foreman_maintain.noarch                                                                         1:0.8.20-1.el7sat                                                                          rhel-7-server-satellite-maintenance-6-rpms
Updating satellite-maintain package.
The satellite-maintain package successfully updated.
Re-run satellite-maintain with required options!

7. And receive the same output again.

Expected results:

Satellite-maintain command should proceed for the upgrade.

Additional info:

As a workaround we can perform below steps:

  1. yum history
  1. yum history undo <Transaction ID>
  1. satellite-maintain upgrade check --target-version 6.8 --disable-self-upgrade
And then command will proceed to perform satellite upgrade.
Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/567 added
Actions #2

Updated by Amit Upadhye over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF