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

Matt Riedemann mriedemos at gmail.com
Tue Jul 2 13:26:33 UTC 2019


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



More information about the openstack-discuss mailing list