Bug #34039
closedAttempt 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
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:
- 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:
- yum history
- yum history undo <Transaction ID>
- rpm -qa |grep rubygem-foreman_maintain.noarch
5. Again run command to perform upgrade using "satellite-maintain" tool:
- 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:
- yum history
- yum history undo <Transaction ID>
- satellite-maintain upgrade check --target-version 6.8 --disable-self-upgrade
And then command will proceed to perform satellite upgrade.
Updated by The Foreman Bot almost 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/567 added
Updated by Amit Upadhye almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|d4e8026b3822a793af4fea130773965b084be01a.