Bug 1184786 - [RFE] Allow an attached volume to be extended
Summary: [RFE] Allow an attached volume to be extended
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 12.0 (Pike)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Upstream M1
: 16.0 (Train on RHEL 8.1)
Assignee: Lee Yarwood
QA Contact: James Parker
URL: https://blueprints.launchpad.net/nova...
Whiteboard: upstream_milestone_none upstream_defi...
: 1634052 1698091 (view as bug list)
Depends On:
Blocks: 1634052 1689706 1782452
TreeView+ depends on / blocked
 
Reported: 2015-01-22 09:48 UTC by Eduard Barrera
Modified: 2023-03-24 13:30 UTC (History)
28 users (show)

Fixed In Version: openstack-nova-20.0.1-0.20191025043858.390db63.el8ost
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1634052 (view as bug list)
Environment:
Last Closed: 2020-02-06 14:37:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 454287 0 'None' MERGED Add ability to extend 'in-use' volume 2021-02-05 14:28:42 UTC
OpenStack gerrit 454322 0 'None' MERGED Add ability to signal and perform online volume size change 2021-02-05 14:28:41 UTC
Red Hat Issue Tracker OSP-4516 0 None None None 2022-08-17 13:25:43 UTC
Red Hat Knowledge Base (Solution) 1364953 0 None None None Never
Red Hat Product Errata RHEA-2020:0283 0 None None None 2020-02-06 14:39:51 UTC

Description Eduard Barrera 2015-01-22 09:48:43 UTC
Description of problem:
Currently cinder does not allow to extend volumes in different status than available so it requires to unmount the volume dettach and dettach it.

/usr/lib/python2.7/site-packages/cinder/volume/api.py
def extend(self, context, volume, new_size):
        if volume['status'] != 'available':   <=============================
            msg = _('Volume status must be available to extend.')
            raise exception.InvalidVolume(reason=msg)

        size_increase = (int(new_size)) - volume['size']
        if size_increase <= 0:
            msg = (_("New size for extend must be greater "
                     "than current size. (current: %(size)s, "
                     "extended: %(new_size)s)") % {'new_size': new_size,
                                                   'size': volume['size']})
            raise exception.InvalidInput(reason=msg)

        try:
            reservations = QUOTAS.reserve(context, gigabytes=+size_increase)
        except exception.OverQuota as exc:
            usages = exc.kwargs['usages']
            quotas = exc.kwargs['quotas']

We would like to be able to extend the volumes while they are attached

Comment 3 Sean Cohen 2015-01-26 03:31:58 UTC
Eric, 

Can you please take a look at this RFE with regards to https://blueprints.launchpad.net/cinder/+spec/inuse-extend-volume-extension
& https://blueprints.launchpad.net/nova/+spec/online-volume-extend-extension and provide your feedback on the gaps?

Thanks
Sean

Comment 4 Eric Harney 2015-06-22 14:33:09 UTC
(In reply to Sean Cohen from comment #3)

Reviewing the material for this upstream, it looks like not much has progressed.  The specs cover the basic requirements, but no code has been submitted yet.

Comment 5 Sean Cohen 2015-06-22 14:44:57 UTC
Steve,(In reply to Eric Harney from comment #4)
> (In reply to Sean Cohen from comment #3)
> 
> Reviewing the material for this upstream, it looks like not much has
> progressed.  The specs cover the basic requirements, but no code has been
> submitted yet.

Thanks Eric, indeed, that was my take as well, adding Steve for his 2 cents from Nova side....

Comment 6 Stephen Gordon 2015-07-03 21:08:46 UTC
(In reply to Sean Cohen from comment #5)
> Steve,(In reply to Eric Harney from comment #4)
> > (In reply to Sean Cohen from comment #3)
> > 
> > Reviewing the material for this upstream, it looks like not much has
> > progressed.  The specs cover the basic requirements, but no code has been
> > submitted yet.
> 
> Thanks Eric, indeed, that was my take as well, adding Steve for his 2 cents
> from Nova side....

There is no design specification attached to the Nova blueprint, so yeah. I would not expect any movement on this to be possible in Nova until such time as the outstanding issues on the Cinder blueprint are resolved.

Comment 10 Stephen Gordon 2017-04-21 13:11:08 UTC
Specification was approved for Pike, but no code as yet. Pushing into our 13 potential bucket for consideration.

Comment 18 Matthew Booth 2019-04-09 15:21:21 UTC
Looks like this landed in nova in Pike (OSP12): https://review.openstack.org/#/c/454322/

Comment 19 Matthew Booth 2019-04-09 15:24:52 UTC
For QE: Minimum testing needs to cover extending a cinder volume exposed to the compute host via NFS, iscsi, and Ceph.

Comment 20 Lee Yarwood 2019-04-11 09:54:37 UTC
*** Bug 1698091 has been marked as a duplicate of this bug. ***

Comment 21 Lee Yarwood 2019-04-24 07:41:36 UTC
*** Bug 1634052 has been marked as a duplicate of this bug. ***

Comment 43 errata-xmlrpc 2020-02-06 14:37:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:0283


Note You need to log in before you can comment on or make changes to this bug.