Fix volume attachment event parsing

the correct name of the server-identifying field in volume attach/detach
notification is `instance_uud`, not `server_id`, see
`cinder/objects/volume_attachment.py`

Change-Id: I0da69c0cb19556dbcee3cc4321b8909b6708f038
This commit is contained in:
Pavlo Shchelokovskyy 2020-07-27 16:42:08 +03:00
parent 5af99caad7
commit 790835f2b0
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@
image_id:
fields: payload.glance_metadata[?key=image_id].value
instance_id:
fields: payload.volume_attachment[0].server_id
fields: payload.volume_attachment[0].instance_uuid
- event_type: ['volume.exists', 'volume.retype', 'volume.create.*', 'volume.delete.*', 'volume.resize.*', 'volume.attach.*', 'volume.detach.*', 'volume.update.*']
traits:
<<: *cinder_traits