Bug 1158655

Summary: Spacewalk-clone-by-date can not proceed if configuration file is used and option blacklist or removelist are not present.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Korbel <mkorbel>
Severity: low Docs Contact:
Priority: low    
Version: 570CC: cperry, mkorbel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-utils-2.3.2-8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-13 10:26:33 UTC Type: Bug
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: 1127215    

Description Dimitar Yordanov 2014-10-29 19:44:05 UTC
Description of problem:
Spacewalk-clone-by-date can not proceed if configuration file is used and option blacklist or removelist are not present.

Version-Release number of selected component (if applicable):
spacewalk-utils-2.3.2-5

How reproducible:
Always

Steps to Reproduce:
1. Have the following configuration file test.conf:
    {
     "username":"admin",
     "password":"redhat",
     "to_date": "2011-10-01",
     "errata": ["RHBA-2014:1646", "RHSA-2014:1635"],
     "channels":[
                 {
                    "rhel-x86_64-server-6":"clone-rhel-x86_64-server-6"
                 }
               ]
    }

2. spacewalk-clone-by-date -c test.conf

Actual results:
blacklist  is not formatted correctly


Additional info:
In  case options blacklist and removelist are present and even empty, the spacewalk-clone-by-date tool works as expected.

    {
     "username":"admin",
     "password":"redhat",
     "to_date": "2011-10-01",
     "errata": ["RHBA-2014:1646", "RHSA-2014:1635"],
     "blacklist":{},
     "removelist":{},
     "channels":[
                 {
                    "rhel-x86_64-server-6":"clone-rhel-x86_64-server-6"
                 }
               ]
    }

Comment 1 Stephen Herr 2014-10-29 20:21:25 UTC
Committing to Spacewalk master:
6f0fe3165c5e84f21f074836e18fcb6405dfce7a

Comment 4 Martin Korbel 2014-11-06 11:31:32 UTC
VERIFIED on spacewalk-utils-2.3.2-8.el6sat

Reproducer in comment 0.

Comment 5 Clifford Perry 2015-01-13 10:26:33 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff

NOTE: This bug has not been re-verified (moved to RELEASE_PENDING) prior to release. We assume that the bug has indeed been fixed and not regressed since we initially verified it. Please re-open in the future if needed.