Implements: Volume notification Storage Host entry in the payload
Closes-Bug:
1333273
Change-Id: I370eaeaafd8fd4a8888f8250b49dffcbffb3a876
self.assertEqual(msg['event_type'], 'volume.create.start')
expected = {
'status': 'creating',
+ 'host': socket.gethostname(),
'display_name': 'test_volume',
'availability_zone': 'nova',
'tenant_id': 'fake',
def _usage_from_volume(context, volume_ref, **kw):
usage_info = dict(tenant_id=volume_ref['project_id'],
+ host=volume_ref['host'],
user_id=volume_ref['user_id'],
instance_uuid=volume_ref['instance_uuid'],
availability_zone=volume_ref['availability_zone'],