Bug 701798

Summary: removal of a channel which had scheduled sync of attached repo(s) keeps taskomatic bunch in place
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: Satellite SynchronizationAssignee: Michael Mráka <mmraka>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 540   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 13:28:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description Jan Hutař 2011-05-03 21:47:39 UTC
Description of problem:
When you have yum repo attached to the channel and have regular synces scheduled and uses spacewalk-remove-channel to remove the channel, taskomatic bunch for syncing the channel survives (and probably produces some errors as well).


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



How reproducible:
always


Steps to Reproduce:
1. Create channel and repository
   Channels -> Manage Software Channels -> create new channel
   Channels -> Manage Software Channels -> Manage Repositories -> create new repository
2. Attach the repository to the channel
   Channels -> Manage Software Channels -> <your channel> -> Repositories -> Add / Remove
3. Schedule daily sync
   Channels -> Manage Software Channels -> <your channel> -> Repositories -> Sync
4. Using API call ensure we have active bunch for that:
   client.taskomatic.org.listActiveSchedules(key)
   data_map = {'channel_id': '103'}; cron_expr = 0 20 8 ? * *; active_from = 20110503T08:12:19; bunch = repo-sync-bunch; id = 16; job_label = repo-sync-1-103;
5. # spacewalk-remove-channel -c <your channel>
6. Use API call as in "4." to ensure bunch dissipated


Actual results:
In "6." same bunch is still there.


Expected results:
In "6." bunch from "4." should not be present.


Additional info:
Found during testing bug 663326.