← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1269684] Re: payload is empty when remove metadata with event updatemetadata.end

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1269684

Title:
  payload is empty when remove metadata with event updatemetadata.end

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  liugya@liugya-ubuntu:~/src/nova-ce$ nova  aggregate-set-metadata 1 a=a1
  Aggregate 1 has been successfully updated.
  +----+------+-------------------+-------+----------+
  | Id | Name | Availability Zone | Hosts | Metadata |
  +----+------+-------------------+-------+----------+
  | 1  | agg1 | None              |       | 'a=a1'   |
  +----+------+-------------------+-------+----------+
  liugya@liugya-ubuntu:~/src/nova-ce$ nova  aggregate-set-metadata 1 a

  (Pdb) n
  > /opt/stack/nova/nova/objects/aggregate.py(100)update_metadata()
  -> compute_utils.notify_about_aggregate_update(context,
  (Pdb) n
  > /opt/stack/nova/nova/objects/aggregate.py(101)update_metadata()
  -> "updatemetadata.start",
  (Pdb) n
  > /opt/stack/nova/nova/objects/aggregate.py(102)update_metadata()
  -> payload)
  (Pdb) payload
  {'meta_data': {u'a': None}, 'aggregate_id': 1}
  (Pdb) n

  > /opt/stack/nova/nova/objects/aggregate.py(118)update_metadata()
  -> payload['meta_data'] = to_add
  (Pdb) 
  > /opt/stack/nova/nova/objects/aggregate.py(119)update_metadata()
  -> compute_utils.notify_about_aggregate_update(context,
  (Pdb) 
  > /opt/stack/nova/nova/objects/aggregate.py(120)update_metadata()
  -> "updatemetadata.end",
  (Pdb) 
  > /opt/stack/nova/nova/objects/aggregate.py(121)update_metadata()
  -> payload)
  (Pdb) payload
  {'meta_data': {}, 'aggregate_id': 1} <<< meta_data is empty, this caused 3rd party do not know which meta_data was now removed after get notification of updatemetadata.end

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


References