Bug #23856
closedforeman-maintain does not consider the installed puppet version for z-stream update
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1588161
Description of problem:
When using foreman-maintain to proceed for a minor (z-stream) update of Satellite, it does not evaluate the current version of puppet been installed and will disable the repository "rhel-7-server-satellite-6.3-puppet4-rpms"
Version-Release number of selected component (if applicable):
6.3
How reproducible:
100%
Steps to Reproduce:
1. Have a Satellite 6.3 running puppet 4
2. Have the the following repository enabled:
rhel-7-server-satellite-6.3-puppet4-rpms
3. Run the foreman-maintain upgrade command # foreman-maintain upgrade run --target-version 6.3.z
4. List the enabled repositories
The rhel-7-server-satellite-6.3-puppet4-rpms would have been disabled, thus no updated packages could be fetch from it.
Actual results:
The puppet repository rhel-7-server-satellite-6.3-puppet4-rpms will be disabled, thus no updated packages could be fetch from it.
Expected results:
Have foreman-maintain to enable the proper repositories so we reduce human error and manual interaction to a minimum. So it should check for the actual installed puppet version and enabled the corresponding repository if required.
Additional info:
The capsule-maintain should have the same behavior.