Bug 708366

Summary: update-ks-profiles.py tracebacks when satellite has no kickstart
Product: Red Hat Satellite 5 Reporter: Petr Sklenar <psklenar>
Component: UpgradesAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: medium Docs Contact:
Priority: medium    
Version: 541CC: cperry, pstudeni, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-upgrade-5.5.0.14-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-21 09:35:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 819081    

Description Petr Sklenar 2011-05-27 13:15:24 UTC
Description of problem:
update-ks-profiles.py tracebacks when satellite has no kickstart

Version-Release number of selected component (if applicable):
sat540 + update from errata.stage
rhn-upgrade-5.4.0.24-1.el5sat

How reproducible:
deterministic

Steps to Reproduce:
# have a satellite with NO kickstart
# ./update-ks-profiles.py --list-invalid-profiles
Traceback (most recent call last):
  File "./update-ks-profiles.py", line 165, in ?
    main()
  File "./update-ks-profiles.py", line 151, in main
    list_invalid_profiles()
  File "./update-ks-profiles.py", line 53, in list_invalid_profiles
    for profile in profiles:
TypeError: iteration over non-sequence

# ./update-ks-profiles.py --update-ks-profiles         --verbose         --log /var/log/rhn/update-ks-profiles.log
Traceback (most recent call last):
  File "./update-ks-profiles.py", line 165, in ?
    main()
  File "./update-ks-profiles.py", line 161, in main
    update_ks_profiles(rc)
  File "./update-ks-profiles.py", line 82, in update_ks_profiles
    for profile in profiles:
TypeError: iteration over non-sequence

# pwd
/etc/sysconfig/rhn/satellite-upgrade

# rpm -qf update-ks-profiles.py
rhn-upgrade-5.4.0.24-1.el5sat

Actual results:
traceback

Expected results:
no traceback

Additional info:
if there is at least one ks then it works as expected

Comment 3 Clifford Perry 2012-09-21 09:35:48 UTC
This issue is resolved with the release of RHN Satellite 5.5. 

As of September 20th 2012, RHN Satellite 5.5 has been generally available. 

Release Notes and other 5.5 documentation can be found here:

 https://access.redhat.com/knowledge/docs/Red_Hat_Network_Satellite/

The associated Errata for the 5.5 release are:

5.5 Satellite GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1296.html

5.5 Upgrade Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1298.html

5.5 RHN Proxy GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1297.html

5.5 RHN Tools GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1299.html

Regards,
Clifford
- Engineering Manager, Satellite