I'm looking for some help on:
https://bugzilla.redhat.com/show_bug.cgi?id=444519
I am looking at the backend python code for handling an action
(server/handlers/xmlrpc/queue.py:411):
elif status == 2 and trigger_snapshot and self.__should_snapshot():
# if action status is 'Completed', snapshot if allowed and if needed
self.server.take_snapshot("Scheduled action completion: %s" %
row['name'])
- I'm assuming status is set to 2, based on the fact that the action
shows it was successful.
- I followed trigger_snapshot around and ended up in the DB; the action
type for config file deployment is set to trigger a snapshot
- I believe __should_snapshot should be returning 1. That method just
checks for the provisioning entitlement, which I verified the server I'm
using has.
I took a quick look at take_snapshot and it looks ok (I didn't look too
closely at the rhnServer.snapshot_server stored proc yet. Part of me is
also assuming that if there was a bug in taking the snapshot we'd notice
a lot more snapshot bugs than we have open (I could be wrong on that
assumption).
So I can't figure out why a snapshot wouldn't be triggered for a
configuration file deployment. And I don't have enough python experience
yet to have a solid idea of what to do next to debug it.
Any advice? I'm looking to "learn to fish" so to speak here, so even if
you come across what the bug is please let me know how you got there.
Thanks!
- J
--
Jason Dobies ([email protected])
Senior Software Engineer
RHN Satellite & Spacewalk
RHCE# 805008743336126
Freenode: jdob @ #spacewalk, #spacewalk-devel
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel