Red Hat Satellite upgrade to 6.8 fails with 'foreman-maintain packages is-locked --assumeyes failed! Check the output for error!'

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.8

Issue

  • Red Hat Satellite upgrade to 6.8 fails with below error in /var/log/foreman-installer/satellite.log:
[ INFO 2021-07-30T17:38:26 main] All hooks in group post finished
[DEBUG 2021-07-30T17:38:26 main] Exit with status code: 2 (signal was 2)
[ERROR 2021-07-30T17:38:26 main] Errors encountered during run:
[ERROR 2021-07-30T17:38:26 main] foreman-maintain packages is-locked --assumeyes failed! Check the output for error!                 <====== 
[DEBUG 2021-07-30T17:38:26 main] Cleaning /tmp/kafo_installation20210730-34037-10acbfu

Resolution

For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.

Diagnostic Steps

If the issue is encountered while updating a Capsule server to 6.8.z, one useful diagnostic step would be to check if the latest satellite-capsule packages are present in the **** or not. This can be done by running the following command on the affected Capsule server:

# yum list --showduplicates satellite-capsule

Correct output looks like this:

 # yum list --showduplicates satellite-capsule
 Loaded plugins: product-id, search-disabled-repos, subscription-manager
 Installed Packages
 satellite-capsule.noarch                                               6.8.0.1-1.el7sat                                                @rhel-7-server-satellite-capsule-6.8-rpms
 Available Packages
 satellite-capsule.noarch                                               6.8.0-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.0.1-1.el7sat                                                rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.1-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.2-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.3-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.4-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.5-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 
 satellite-capsule.noarch                                               6.8.6-1.el7sat                                                  rhel-7-server-satellite-capsule-6.8-rpms 

If output looks like this, it indicates missing package versions:

# yum list --showduplicates satellite-capsule
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload
Installed Packages
satellite-capsule.noarch                          6.8.2-1.el7sat                             @rhel-7-server-satellite-capsule-6.8-rpms
Available Packages
satellite-capsule.noarch                          6.8.0-1.el7sat                             rhel-7-server-satellite-capsule-6.8-rpms
satellite-capsule.noarch                          6.8.0.1-1.el7sat                           rhel-7-server-satellite-capsule-6.8-rpms
satellite-capsule.noarch                          6.8.1-1.el7sat                             rhel-7-server-satellite-capsule-6.8-rpms
satellite-capsule.noarch                          6.8.2-1.el7sat                             rhel-7-server-satellite-capsule-6.8-rpms
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.