Bug 870990 - "spacewalk-remove-channel -l" can not be used when satellite-sync is running.
Summary: "spacewalk-remove-channel -l" can not be used when satellite-sync is running.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 550
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On:
Blocks: sat570-lowbug
TreeView+ depends on / blocked
 
Reported: 2012-10-29 11:02 UTC by Dimitar Yordanov
Modified: 2015-01-13 09:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 09:55:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch (1.81 KB, patch)
2014-02-05 14:55 UTC, Dimitar Yordanov
no flags Details | Diff

Description Dimitar Yordanov 2012-10-29 11:02:58 UTC
Description of problem:
"spacewalk-remove-channel -l" can not be used when satellite-sync is running.


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-1.7.38-34

How reproducible:


Steps to Reproduce:
1.#nohup satellite-sync -c  rhel-i386-server-5 &
2.# spacewalk-remove-channel -l
An instance of satellite-sync is running, exiting.

Proposed Fix:


diff /usr/bin/spacewalk-remove-channel.ORIG /usr/bin/spacewalk-remove-channel
66,73d65
<     for command in ['spacewalk-remove-channel', 'satellite-sync',
<                     'spacewalk-repo-sync']:
<         try:
<             LOCK.append(rhnLockfile.Lockfile(
<                                 os.path.join(LOCK_DIR, "%s.pid" % command)))
<         except rhnLockfile.LockfileLockedException:
<             print("ERROR: An instance of %s is running, exiting." % command)
<             sys.exit(-1)
80a73,82
>     if  not options.list:
>         for command in ['spacewalk-remove-channel', 'satellite-sync',
>                     'spacewalk-repo-sync']:
>           try:
>               LOCK.append(rhnLockfile.Lockfile(
>                                 os.path.join(LOCK_DIR, "%s.pid" % command)))
>           except rhnLockfile.LockfileLockedException:
>               print("ERROR: An instance of %s is running, exiting." % command)
>               sys.exit(-1)
>

Comment 1 Dimitar Yordanov 2014-02-05 14:55:43 UTC
Created attachment 859683 [details]
patch

Comment 4 Clifford Perry 2015-01-13 09:55:27 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 You need to log in before you can comment on or make changes to this bug.