Figure it out, created a dump of spacewalk db, looked everywhere for the string 
in question and could not find it in DB.

Dug deeper and found that spacecmd cached erratas, systems and login info.

It can be cleared either by delete errata file from ~/.spacecmd/ or via 
clear_caches command in spacecmd shell.

Overall, we probably need an enhancement request for spacecmd maintainer to add 
a time out and invalidate the cache or add a message on "errors" to drop the 
cache.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Paul Robert Marino
Sent: Monday, May 07, 2012 6:52 PM
To: [email protected]
Subject: Re: [Spacewalk-list] spacecmd errata delete - not clean


Could you have erratas that could be applied to a channel but are unpublished?

Or were there any tracebacks or other errors in the web api log while you were 
doing the deletes?

On May 7, 2012 5:02 PM, "Musayev, Ilya" 
<[email protected]<mailto:[email protected]>> wrote:
>
> Due to some issues with errata's not picking the packages it should have 
> picked up, I deleted all the erratas via spacecmd errata_delete 
> search:rhel-x86_64-server-5
>
>
>
> Eventhough - it claimed it deleted the erratas, I decided to re-run errata 
> import. Figured I should not have used some flags while it was running, I 
> canceled the rhn_clone script half way. Went in to spacecmd again to delete 
> the erratas I recently imported, it appears the remnants of erratas that were 
> deleted on the first errata_delete still exist. For example, when I want to 
> delete all rhel-x86_64-server-5 errata's for the second time, I get
>
>
>
> errata_delete search: rhel-x86_64-server-5
>
> ERROR: redstone.xmlrpc.XmlRpcFault: The errata 
> RHBA-2007:0098:rhel-x84_64-server-5 cannot be found.
>
>
>
> Looks like the first delete was not clean or complete as it still seems some 
> errata content
>
>
>
> Regards
>
> ilya
>
>
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]<mailto:[email protected]>
> https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to