Modify

Ticket #778 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Another Snapshots bug

Reported by: strauss Owned by: desai
Priority: critical Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

Generated config for xxx.uspswy6.savvis.net in 0.267s
Client xxx.uspswy6.savvis.net reported state dirty
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib64/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Snapshots.py", line 70, in load_snapshot
    self.statistics_from_old_stats(metadata, data)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Snapshots.py", line 88, in statistics_from_old_stats
    data = [False, False, unicode(entry.get('name'))] \
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Snapshots.py", line 25, in build_snap_ent
    desired.update([(key, unicode(entry.get(key))) for key in \
KeyError: 'Directory'

Attachments

Change History

comment:1 Changed 10 years ago by strauss

I believe I've fixed this in revision [bba9d58cd72d779c68811a26dc2af5ceb68e445b] (SVN r5536). It at least writes the snapshot instead of back-tracing.

comment:2 Changed 10 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

Yeah, this looks like a correct fix.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.