<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>This adds support for Horizon <a href="https://review.opendev.org/c/openstack/horizon/+/749013" class="x_OWAAutoLink" id="LPlnk118107">https://review.opendev.org/c/openstack/horizon/+/749013</a></p>
<p><br>
</p>
<p>Regarding the actual extending of in-use volumes, we had an issue where cinder could not talk to os-server-external-events endpoint for nova because it used the wrong endpoint when looking up in keystone. We saw the error in cinder-volume.log except for
 that I can't remember we did anything special.</p>
<p><br>
</p>
<p>Had to use newer microversion for cinder when using CLI.</p>
<p><span>cinder --os-volume-api-version 3.42 extend <volume ID or name> <new size in GB></span><br>
</p>
<p><span><br>
</span></p>
<p>Best regards</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Sean Mooney <smooney@redhat.com><br>
<b>Sent:</b> Wednesday, February 17, 2021 4:11:45 AM<br>
<b>To:</b> openstack-discuss@lists.openstack.org<br>
<b>Subject:</b> Re: Nova not updating to new size of an extended in-use / attached cinder volume (Ceph RBD) to guest</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Tue, 2021-02-16 at 22:32 +0100, Christian Rohmann wrote:<br>
> Hello Lee,<br>
> <br>
> thanks for quick response and sorry about the late reaction from my side.<br>
> <br>
> <br>
> <br>
> On 15/02/2021 12:18, Lee Yarwood wrote:<br>
> > On 15-02-21 00:52:52, Christian Rohmann wrote:<br>
> > > So I was simply wondering if this is expected to be working?<br>
> > > Are there any special settings / options I need to set to enable this<br>
> > > feature?<br>
> > Yes this should work without any additonal changes, can you write up<br>
> > a nova bug with the following output in addition to the bug template:<br>
> > <br>
> > - Your versions of libvirt and QEMU.<br>
> > <br>
> > - Output of the following command *after* requesting a resize:<br>
> > <br>
> > $ virsh domblkinfo $instance_uuid $target_dev<br>
> > <br>
> > - Output of the following commands once confirmed the resize didn't<br>
> >    happen within the domain:<br>
> > <br>
> > $ virsh blockresize $instance_uuid $rbd_path $new_size<br>
> > $ virsh domblkinfo $instance_uuid $target_dev<br>
> > <br>
> >  From what you've said above this smells like a libvirt/QEMU bug but I<br>
> > don't have a rbd env to hand to confirm things at the moment.<br>
> > <br>
> > Cheers,<br>
> > <br>
> <br>
> I have just been trying to reproduce the issue, but in all my new <br>
> attempts it just worked as expected:<br>
> <br>
> > [162262.926512] sd 0:0:0:1: Capacity data has changed<br>
> > [162262.932868] sd 0:0:0:1: [sdb] 6291456 512-byte logical blocks: <br>
> > (3.22 GB/3.00 GiB)<br>
> > [162262.933061] sdb: detected capacity change from 2147483648 to <br>
> > 3221225472<br>
> <br>
> <br>
> Sorry about the noise then.<br>
> <br>
> The only "bugs" to report are the usability issues of Horizon not <br>
> offering "in-use" extension of volume as far as I can see and the<br>
> pending support in the openstack cli <br>
> (<a href="https://bugs.launchpad.net/cinder/+bug/1871759">https://bugs.launchpad.net/cinder/+bug/1871759</a>).<br>
<br>
i have done a live extend using cinder client before.<br>
<br>
sean@p50:~$ cinder --help extend<br>
usage: cinder extend <volume> <new_size><br>
<br>
Attempts to extend size of an existing volume.<br>
<br>
Positional Arguments:<br>
  <volume>    Name or ID of volume to extend.<br>
  <new_size>  New size of volume, in GiBs.<br>
<br>
<br>
so it does work provided you have not used the nova workaround config options for host mounting<br>
the rbd volumens.<br>
<a href="https://docs.openstack.org/nova/latest/configuration/config.html#workarounds.rbd_volume_local_attach">https://docs.openstack.org/nova/latest/configuration/config.html#workarounds.rbd_volume_local_attach</a><br>
that will go away shortly proably in the xena release but if you enable that you can resize volumnes that<br>
are in use.<br>
<br>
so ya i think the only bugs are really not bugs but RFEs<br>
openstack client does not have parity with cinder client and nor does horizon.<br>
a lack of feature in the latter too is not really a bug just no one has implmented it yet so there is a gap.<br>
<br>
from the api side and a nova persoection i think it should work you just need to use a clint that supprot it.<br>
<br>
> <br>
> <br>
> <br>
> Thanks again,<br>
> Regards<br>
> <br>
> <br>
> Christian<br>
> <br>
> <br>
> <br>
> <br>
> <br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>