2 Jul
2019
2 Jul
'19
3:26 p.m.
On 7/1/2019 11:14 PM, RAI, SNEHA wrote:
Is there a way to find in cinder how many instances are attached to a volume?
Yes, the response to GET /v3/{project_id}/volumes/{volume_id} has an "attachments" parameter which is a list of dicts of information about the servers that are attached to the volume. Note that a single server can have multiple attachments to the volume while the server is being migrated across compute hosts, so to determine unique server attachments you'd have to distinguish by server ID in the attachments list. -- Thanks, Matt