unable to attach multiattach volume to server

Bug #1751564 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Matt Riedemann

Bug Description

The compute API 2.60 microversion allows attaching multiattach-capable volumes to server instances.

However, when attempting to do so in Horizon it fails because Horizon doesn't specify microversion 2.60 during the attach call to nova (see screenshot).

And you can see the error in the nova-api logs:

[None req-9e43e495-a9ee-4460-85bb-1545ce1efbeb demo demo] Returning 400 to user: Multiattach volumes are only supported starting with compute API version 2.60.

Note that if Horizon is using python-novaclient for the attach volume call, it must have novaclient >= 10.1.0:

https://github.com/openstack/python-novaclient/commit/4e94fe53618638c37285d61c322b663192678bfb

Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :

My proposed solution for this would be for Horizon to check if the volume has the "multiattach" attribute set to True and compute API microversion 2.60 is available (which it can determine via compute API version discovery: https://developer.openstack.org/api-ref/compute/#list-all-major-versions ) - that it should then make the attach volume request with microversion 2.60, else it should give a user friendly error message that multiattach is not yet supported in compute.

Matt Riedemann (mriedem)
Changed in horizon:
assignee: nobody → Matt Riedemann (mriedem)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

This is a request to support a new feature, so it should be WishList.
Hopefully we can support the feature in Rocky.

Changed in horizon:
importance: Undecided → Wishlist
milestone: none → rocky-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/547856

Changed in horizon:
status: New → In Progress
Revision history for this message
Akihiro Motoki (amotoki) wrote :

It turns out more work is needed beyond the nova API version used.
I filed a blueprint https://blueprints.launchpad.net/horizon/+spec/multi-attach-volume

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/547856
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1e2dfc4bb47e9873cbb5286ef351269ca557578a
Submitter: Zuul
Branch: master

commit 1e2dfc4bb47e9873cbb5286ef351269ca557578a
Author: Matt Riedemann <email address hidden>
Date: Sun Feb 25 14:38:43 2018 -0500

    Use microversion 2.60 when attaching a multiattach volume

    Multiattach capable volumes can only be attached with microversion
    2.60 or later, so this checks if the volume being attached is
    multiattach capable and if microversion 2.60 is available, use it.

    Part of blueprint multi-attach-volume

    Closes-Bug: #1751564

    Change-Id: If708e3edb05cff6e93cfc3dfccb91b1441dcd181

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 14.0.0.0b2

This issue was fixed in the openstack/horizon 14.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.