Bug 708366 - update-ks-profiles.py tracebacks when satellite has no kickstart
Summary: update-ks-profiles.py tracebacks when satellite has no kickstart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades
Version: 541
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: sat550-lowbug
TreeView+ depends on / blocked
 
Reported: 2011-05-27 13:15 UTC by Petr Sklenar
Modified: 2012-09-21 09:35 UTC (History)
3 users (show)

Fixed In Version: rhn-upgrade-5.5.0.14-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-21 09:35:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.