ISSUE: If you are seeing
[root@rhnsat01 API]# cat /var/lib/rhn/tasko/org1/repo-sync-bunch/repo-sync_1955662_err
2013-04-14 04:00:00,080 [DefaultQuartzScheduler_Worker-5] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - No such channel with channel_id 589
2013-04-14 04:00:00,081 [DefaultQuartzScheduler_Worker-5] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask -
[root@rhnsat01 API]# cat /var/lib/rhn/tasko/org1/repo-sync-bunch/repo-sync_1955662_err
2013-04-14 04:00:00,080 [DefaultQuartzScheduler_Worker-5] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - No such channel with channel_id 589
2013-04-14 04:00:00,081 [DefaultQuartzScheduler_Worker-5] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask -
It is apparently telling you that a channel that was scheduled for a repo sync is no longer available (which implies it was once available on your Sat)
NOTE: the channel ID is 589 from the error.
[root@rhnsat01 API]# cat deleteScheduleSync.py
#!/usr/bin/env python
import xmlrpclib
SATELLITE_URL = "http://rhnsat01.corp.com/rpc/api"
SATELLITE_LOGIN = "satadmin"
SATELLITE_PASSWORD = ""
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)
# CHANGE THINGS AFTER THIS LINE
result = client.taskomatic.org.unscheduleBunch(key, 'repo-sync-1-589');
# CHANGE THINGS BEFORE THIS LINE
client.auth.logout(key)
Comments
Post a Comment