[openstack-dev] [nova] Availability of device names for operations with volumes and BDM and other features.

Feodor Tersin ftersin at cloudscaling.com
Thu May 28 23:55:56 UTC 2015


Nicola, i would add some words to Alexandre repsonse.

We (standalone ec2api project guys) have filed some bugs (the main is [1]),
but we don't know how to fix them since the way Nova's device names are
moved on is unclear for us. Neither BP, nor wiki you've mentioned above
don't explain what was happened with device names in images.
Other bug which we filed by results of bdm v2 implementation [2] was
resolved, but the fix returns only two devices (even if more than two
volumes are defined in the image) instead of to write device names to the
image and to return full bdm.

I hope you will clarify this question (Alexandre referred to the patch with
explicit elimination of device names for images).

Also you mentioned that we can still use bdm v1. We do it now for instance
launch, but we would like to switch to v2 to use new features like blank
volumes which are provided by AWS as well. However v2 based launch has a
suspicious feature which i asked about in ML [3], but no one answered me.
It would be great if you clarify that question too.

[1] https://bugs.launchpad.net/nova/+bug/1370177
[2] https://bugs.launchpad.net/nova/+bug/1370265
[3] http://lists.openstack.org/pipermail/openstack-dev/2015-May/063769.html


On Wed, May 27, 2015 at 8:55 PM, Nikola Đipanov <ndipanov at redhat.com> wrote:

> On 05/27/2015 09:47 AM, Alexandre Levine wrote:
> > Hi all,
> >
> > I'd like to bring up this matter again, although it was at some extent
> > discussed during the recent summit.
> >
> > The problem arises from the fact that the functionality exposing device
> > names for usage through public APIs is deteriorating in nova. It's being
> > deliberately removed because as I understand, it doesn't universally and
> > consistently work in all of the backends. It happens  since IceHouse and
> > introduction of bdm v2. The following very recent review is one of the
> > ongoing efforts in this direction:
> > https://review.openstack.org/#/c/185438/
> >
>
> I've abandoned the change as it is clear we need to discuss how to go
> about this some more.
>
> But first let me try to give a bit more detailed explanation and
> background to what the deal is with device names. Supplying device names
> that will be honoured by the guests is really only possible with Xen PV
> guests (meaning the guest needs to be running PV-enabled kernel and
> drivers).
>
> Back in Havana, when we were working on [1] (see [2] for more details)
> the basic idea was that we will still accept device names because
> removing them from the public API is not likely to happen (mostly
> because of the EC2 compatibility), but in case of libvirt driver, we
> will treat them as hints only, and provide our own (by mostly
> replicating the logic libvirt uses to order devices [3]). We also
> allowed for device names to not be specified by the user as this is
> really what anyone not using the EC2 API should be doing (users using
> the EC2 API do however need to be aware the fact that i may not be
> honoured).
>
> [1]
> https://blueprints.launchpad.net/nova/+spec/improve-block-device-handling
> [2] https://wiki.openstack.org/wiki/BlockDeviceConfig
> [3]
>
> https://github.com/openstack/nova/blob/master/nova/virt/libvirt/blockinfo.py
>
> > The reason for my concern is that EC2 API have some important cases
> > relying on this information (some of them have no workarounds). Namely:
> > 1. Change of parameters set by image for instance booting.
> > 2. Showing instance's devices information by euca2ools.
> > 3. Providing additional volumes for instance booting
> > 4. Attaching volume
> > etc...
> >
>
> So based on the above - it seems to me that you think we are removing
> the information about device names completely. That's not the case -
> currently it is simply not mandatory for the Nova boot API call (it was
> never mandatory for volume attach afaict) - you can still pass it in,
> though libvirt may not honour it. It will still be tracked by the Nova
> DB and available for users to refer to.
>
> > Related to device names and additional related features we have troubles
> > with now:
> > 1. All device name related features
>
> As I said - they are not removed, in addition, you can still completely
> disregard the BDMv2 syntax as Nova should transparently handle old-style
> syntax when passed in (actually since BDM info is stored with images
> when snapshotting and it may have been v1 syntax - it is likely that we
> will never remove this support). If you are seeing some bugs related to
> this - please report them.
>
> > 2. Modification of deleteOnTermination flag
>
> I don't have enough details on this but if some behaviour has changed
> when using the old syntax - it is likely a bug so please report it.
>
> > 3. Modification of parameters for instance booting
>
> Again - I am not sure what this is related to exactly - but none of the
> parameters have changed really (only new ones were added). It would be
> good to get more information on this (preferably a bug report).
>
> > 4. deleteOnTermination and size of volume aren't stored into instance
> > snapshots now.
> >
>
> This does sound like a bug - and hopefully an easy to fix one.
>
> > Discussions during the summit on the matter were complicated because
> > nobody present really understood in details why and what is happening
> > with this functionality in nova. It was decided though, that overall
> > direction would be to add necessary features or restore them unless
> > there is something really showstopping:
> > https://etherpad.openstack.org/p/YVR-nova-contributor-meetup
> >
> > As I understand, Nikola Depanov is the one working on the matter for
> > some time obviously is the best person who can help to resolve the
> > situation. Nikola, if possible, could you help with it and clarify the
> > issue.
> >
> > My suggestion, based on my limited knowledge at the moment, still is to
> > restore back or add all of the necessary APIs and provide tickets or
> > known issues for the cases where the functionality is suffering from the
> > backend limitations.
> >
> > Please let me know what you think.
> >
>
> As explained above - nothing was intentionally removed, and if something
> broke - it's a bug that we should fix, so I urge the team behind the EC2
> API on stackforge to report those, and I will try to at least look into
> them, if not fix them. We might want to have a tag for EC2 related bugs
> in LP (I seem to remember there being such a thing before).
>
> Device names though are not something we can easily resolve without
> having the users of the EC2 API be aware that they may be talking to a
> Nova deployment, however I am unsure how much of a problem this is in
> practice, as I believe most users would have to be anyway.
>
> Hope this lifts some of the mystery around the topic - and I look
> forward to helping the EC2 efforts - but we really need to make sure we
> have the issues written down first :)
>
> N.
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150529/b9f932f9/attachment.html>


More information about the OpenStack-dev mailing list