Description of problem: After applying the errata: http://rhn.redhat.com/errata/RHBA-2011-0155.html and following the 'Preparations' section, the script entitlement-check.py fails with a traceback: # ./entitlement-check.py --rhn-cert=/root/sat5.4.cert --verbose Connecting to rhnsat/rhnsat@rhnsat Checking rhel-server-6-lb: 1,0 Traceback (most recent call last): File "./entitlement-check.py", line 312, in ? main() File "./entitlement-check.py", line 88, in main results = check_channel_family(family, quantity, flex) and results File "./entitlement-check.py", line 97, in check_channel_family return global_test(label, quantity, flex) and org_test(label, quantity, flex) File "./entitlement-check.py", line 136, in org_test for org in orgs: TypeError: iteration over non-sequence Version-Release number of selected component (if applicable): Red Hat Network Satellite 5.3 How reproducible: Always Steps to Reproduce: 1. Install/Update the rhn-upgrade package from http://rhn.redhat.com/errata/RHBA-2011-0155.html 2. Get a new certificate for RHNS 5.4 3. Follow the upgrade documentation which suggest to execute the entitlement-check.py Actual results: Script fails with the traceback error. Expected results: The script should not fail with the error. Additional info: The script only fails if the certificate has new channel families which didn't exist in the old certificate.
Please be so kind and add a few key words to the field Technical Notes (Cause, Consequence, Fix, Result) in this Bugzilla entry. In Future, you do not need to write long explanations for the erratum if you answer these questions. Many thanks, Florian
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: What actions or circumstances cause this bug to present? Consequence: What happens when the bug presents? Fix: What was done to fix the bug? Result: What now happens when the actions or circumstances above occur? (this is not the same as the bug doesn’t present anymore)
Text that I added directly into the errata: Previously, running entitlement-check.py script as a part of Satellite upgrade procedure might have failed with an error in situations where a new channel family, which did not exist current Satellite certificate, was discovered in the new certificate. Running the entitlement-check.py script now no longer returns error in these circumstances.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,7 +1,7 @@ Cause: What actions or circumstances cause this bug to present? -Consequence: What happens when the bug presents? +Consequence: the entitlement-check.py script as a part of Satellite upgrade procedure might have failed in situations where a new channel family, which did not exist??? current Satellite certificate, was discovered in the new certificate. Fix: What was done to fix the bug? -Result: What now happens when the actions or circumstances above occur? (this is not the same as the bug doesn’t present anymore)+Result:Now, the entitlement-check.py script no longer returns an error in these circumstances.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0208.html