Bug 1161040 - Empty directory is created during spacewalk-clone-by-date
Summary: Empty directory is created during spacewalk-clone-by-date
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On:
Blocks: sat570-lowbug
TreeView+ depends on / blocked
 
Reported: 2014-11-06 09:08 UTC by Martin Korbel
Modified: 2015-01-13 09:45 UTC (History)
1 user (show)

Fixed In Version: spacewalk-utils-2.3.2-9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 09:45:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Korbel 2014-11-06 09:08:29 UTC
Description of problem:
When we try to clone a channel using spacewalk-clone-by-date, we get empty directory in the working folder. The folder has same name as a source channel.

Version-Release number of selected component (if applicable):
Sat 5.7

How reproducible:
100%

Steps to Reproduce:
1. We have got Satellite 5.7 with synced rhel-x86_64-server-7 and rhn-tools-rhel-x86_64-server-7 channels.

2. Delete the empty folders, if they are present in current working folder.
> ls -d rhel-x86_64-server-7 && rmdir rhel-x86_64-server-7
> ls -d rhn-tools-rhel-x86_64-server-7 && rmdir rhn-tools-rhel-x86_64-server-7
3. We try to clone these channels.
> spacewalk-clone-by-date -u admin -p xxx --to_date=2014-07-21 --channel rhel-x86_64-server-7 clone-rhel-x86_64-server-7 --channel rhn-tools-rhel-x86_64-server-7 clone-rhn-tools-rhel-x86_64-server-7
Reading repository information.
Using issue_date.

By continuing the following channels will be created: 
clone-rhel-x86_64-server-7, clone-rhn-tools-rhel-x86_64-server-7

Continue with channel creation (y/n)?y

Cloning rhel-x86_64-server-7 to clone-rhel-x86_64-server-7 with original package set.
Cloning rhn-tools-rhel-x86_64-server-7 to clone-rhn-tools-rhel-x86_64-server-7 with original package set.
Copying repodata, please wait.
Solving Dependencies (4305): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete

By continuing the following will be cloned:
  rhel-x86_64-server-7 -> clone-rhel-x86_64-server-7  (43/127 Errata)
  rhn-tools-rhel-x86_64-server-7 -> clone-rhn-tools-rhel-x86_64-server-7  (2/7 Errata)

Continue with clone (y/n)?y

Cloning Errata into clone-rhel-x86_64-server-7 (43):
________________________________________
######################################## - complete
Cloning Errata into clone-rhn-tools-rhel-x86_64-server-7 (2):
________________________________________
######################################## - complete
Copying repodata, please wait.
Solving Dependencies (224): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete


3. Check, if the empty directories are not present in the current working folder.
> ls -d rhel-x86_64-server-7
> ls -d rhn-tools-rhel-x86_64-server-7

Actual results:
The empty folders are present in the current working folder. 

Expected results:
The empty folders are not present in the current working folder. 

Additional info:

Comment 1 Stephen Herr 2014-11-06 19:41:37 UTC
Committing to Spacewalk master:
316378266898359809db06f7e6c45cf5fe5a2093

Comment 4 Clifford Perry 2015-01-13 09:45:34 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 

NOTE: This specific bug did not get verified and being closed as assumed fixed. Please reopen if this is not resolved within the release. 

Cliff


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