Description of problem: I have activate satellite with manifest that contained some subscriptions, but after some time the subscriptions were expirated and now manifest is empty. When I try to update manifest I receive following traceback: >> rhn-satellite-activate --manifest-refresh 09:16:48 Downloading manifest... ERROR: unhandled exception occurred: Traceback (most recent call last): File "/usr/bin/rhn-satellite-activate", line 38, in <module> sys.exit(abs(mod.main() or 0)) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 475, in main cdn_activate = cdn_activation.Activation(options.manifest) File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/activation.py", line 37, in __init__ self.manifest = Manifest(manifest_path) File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/manifest.py", line 75, in __init__ self._load_entitlements(inner_zip) File "/usr/lib/python2.6/site-packages/spacewalk/cdn_tools/manifest.py", line 166, in _load_entitlements "ERROR: There has to be at least one entitlements file") spacewalk.cdn_tools.manifest.IncorrectEntitlementsFileFormatError: ERROR: There has to be at least one entitlements file I think that user should see better message that subscriptions were expired or removed. Version-Release number of selected component (if applicable): spacewalk-backend-tools-2.5.3-131.el6sat.noarch How reproducible: always Steps to Reproduce: 1. Create manifest with subscriptions 2. Activate satellite with them 3. wait until subscription expirated or remove it from manifest on access.redhat.com Actual results: ERROR: There has to be at least one entitlements file Expected results: Better message with link to some article about redhat manifest or to URL with manifest profile https://access.redhat.com/management/distributors/<manifest UUID> to check your subscriptions
fixed in spacewalk.git(master): e9908a6f4a5dc657187bc21981f07e66e93b9d4b the message can be further improved if needed
Verified with spacewalk-backend-2.5.3-152. Used reproducer from OP and as step 4, ran: # rhn-satellite-activate --manifest-refresh 06:56:48 Downloading manifest... ERROR: No subscriptions were found in manifest. Please refer to https://access.redhat.com/management/distributors/610e54d7-ebbd-408a-b38e-f501e3996558 for setting up subscriptions.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2915