[openstack-dev] Cinder as generic volume manager
Walter A. Boring IV
walter.boring at hp.com
Thu Jul 9 22:19:09 UTC 2015
On 07/09/2015 12:21 PM, Tomoki Sekiyama wrote:
> Hi all,
> Just FYI, here is a sample script I'm using for testing os-brick which
> attaches/detaches the cinder volume to the host using cinderclient and
> "python attach.py <volume-uuid>" will attach the volume to the executed
> host and shows a volume path. When you hit the enter key, the volume is
> Note this is skipping "reserve" or "start_detaching" APIs so the volume
> state is not changed to "Attaching" or "Detaching".
Very cool Tomoki. After chatting with folks in the Cinder IRC channel
it looks like we are going to look at going with something more like what
your script is doing. We are most likely going to create a separate
line tool that does this same orchestration, using cinder client, a new
API that John Griffith is working on, and os-brick.
> On 7/9/15, 14:44 , "Walter A. Boring IV" <walter.boring at hp.com> wrote:
>> I missed this whole thread due to my mail filtering. Sorry about that.
>> Anyway, Ivan and I have an open Blueprint here:
>> That starts the discussion of adding the end to end ability of attaching
>> a Cinder
>> volume to a host using the cinderclient in combination with os-brick.
>> The idea being, that cinderclient would coordinate the calling of
>> existing Cinder's APIs,
>> to do the attach/detach, along with os-brick, to collect the initiator
>> information needed,
>> as well as the volume discovery after the volume has been exported.
>> So, for example a user would simply use a new cinderclient shell command
>> to initiate
>> the attachment for an existing cinder volume.
>> cinder attach <volume uuid>
>> The client would then collect the initiator information, using os-brick,
>> and then make the correct Cinder API
>> calls to ensure the volume is exported. Then, use os-brick again to
>> discover the volume showing up
>> on the host.
>> This is basically the same process that Nova does today, but uses
>> libvirt volume drivers to discover the volume
>> after being exported instead of os-brick.
>> We just haven't had time to write up the cinder-spec and start the work
>> on it.
>> On 07/07/2015 06:25 AM, Jan Safranek wrote:
>>> I'd like to (mis-)use Cinder outside of OpenStack, i.e. without Nova.
>>> I can easily create/manage volumes themselves, Cinder API is pretty
>>> friendly here. Now, how can I attach a volume somewhere? Something like
>>> 'nova volume-attach <server> <volume>', but without Nova and with <host>
>>> (=anything) instead of <server> (=virtual machine inside OpenStack).
>>> I guess I am not the first one to ask for such feature, has anyone
>>> tried it?
>>> Would it be possible to separate a new library from Nova, which would
>>> just attach the volume to the host where it is runnig and mark the
>>> volume as 'in-use'? How hard would it be?
>>> OpenStack Development Mailing List (not for usage questions)
>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev