← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1213822] Re: glance-replicator: decode dictionary to str recursively before doing diff

 

The Glance replicator has been deprecated for a while, we won't be
looking into this issue.

** Changed in: glance
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1213822

Title:
  glance-replicator: decode dictionary to str recursively before doing
  diff

Status in Glance:
  Won't Fix

Bug description:
  When syncing images across different datacenters via glance-relicator,
  some images' metadata are always updated to the slave glance, even it
  has already been synced before. The problem lies in here:

  log output:

  metadata diff -- value differs for key properties: master "{u'vm_mode': u'hvm'}" vs slave "{'vm_mode': 'hvm'}"
  ... metadata has changed

  ......

  
  On doing image compare,  glance-replicator gets image metadatas from both master and slave. Then it try to do a 'diff' for these metadatas. If the metadatas are different according to the diff result, metadatas from the master are updated to the slave. The _dict_diff() function are responsible for doing metadate comparing. It translate the metadata dictionary to str before doing compare, but it doesn't handle the situation when metadata dictionary has sub-dictionary.  

  A fix is needed to  decode metadata dictionary to str recursively
  before doing diff, so that sub-dictionary items could also be
  translated to str.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1213822/+subscriptions