[Openstack] [Cinder] Facing a problem in cinder manage code

Dilip Sunkum Manjunath Dilip.SunkumManjunath at toshiba-tsip.com
Tue Jun 14 08:22:36 UTC 2016


Could you just point me which driver has done this?

Thanks
Dilip

From: Trinath Somanchi [mailto:trinath.somanchi at nxp.com]
Sent: Tuesday, June 14, 2016 1:25 PM
To: Dilip Sunkum Manjunath; 'openstack at lists.openstack.org'
Cc: 'itzdilip at gmail.com'
Subject: RE: [Cinder] Facing a problem in cinder manage code

You may check the other vendor alike drivers for your reference.

/ Trinath

From: Dilip Sunkum Manjunath [mailto:Dilip.SunkumManjunath at toshiba-tsip.com]
Sent: Tuesday, June 14, 2016 1:00 PM
To: 'openstack at lists.openstack.org' <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Cc: 'itzdilip at gmail.com' <itzdilip at gmail.com<mailto:itzdilip at gmail.com>>
Subject: [Openstack] [Cinder] Facing a problem in cinder manage code

Hi all,


I was implementing the cinder driver for cinder mange existing volume,

Base line:


1.       Our storage api has a unique number<deviceid/lun number> alone to recognise the lun in storage

2.       When I import using the horizon I have to enter the same unique number to fetch the details from storage api

Problem facing :


1.       Same same unique ID am able import more then one time (duplicate imports)



I know we should not use the "DB " calss in drivers,  am not sure how to fetch avilable volume and run check over it, to ensure same LUN from storage is not imported more then once!

When I went though the different driver, I saw LVM has the below method, which needs refrence to DB

Question :
Is  it ok to use like this?
Or
Is there any better solution?



Please suggest

Thanks
Dilip



[cid:image001.png at 01D1C644.01496CC0]



[cid:image002.png at 01D1C644.01496CC0]

The information contained in this e-mail message and in any attachments/annexure/appendices is confidential to the
recipient and may contain privileged information. If you are not the intended recipient, please notify the
sender and delete the message along with any attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail
are those of the individual sender except where the sender specifically states them to be the views of
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.
Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Toshiba Software India Pvt. Ltd, for any loss or damage arising in any way from its use.
The information contained in this e-mail message and in any
attachments/annexure/appendices is confidential to the 
recipient and may contain privileged information. 
If you are not the intended recipient, please notify the
sender and delete the message along with any 
attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the
message or any annexure. Any views expressed in this e-mail 
are those of the individual sender except where the sender 
specifically states them to be the views of 
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be
free of any virus or other defect that might affect any computer 
system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility 
is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or
damage arising in any way from its use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160614/7e9645c9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20417 bytes
Desc: image001.png
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160614/7e9645c9/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 24922 bytes
Desc: image002.png
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160614/7e9645c9/attachment-0001.png>


More information about the Openstack mailing list