osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HPE 3PAR Cinder driver-Multiattach: Fails to detach second instance from volume


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