Online extension not seen in guest instance without stop/start or re-attach of the volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
High
|
Simon Dodsley | ||
OpenStack Cinder Pure Storage Charm |
Confirmed
|
Undecided
|
Simon Dodsley |
Bug Description
Hi,
Maybe this is not a bug but things are pretty unclear to me regarding volume online extension.
As it sounds, it makes volume live extension without the need to stop/start or detach/attach volume to the instance.
However, I did a simple test and created an instance with an extra attached volume based on Pure Storage ISCSI Cinder driver.
Creating and attaching the volume is working perfect. This is a 10GB volume and I can see it with lsblk inside the guest instance.
Instance itself is based on Ubuntu 22.04 and I'm using virtio-scsi driver + qemu-guest-agent is installed and working (properties were added to enable virtio-scsi and qemu-guest-agent).
I tried to extend the volume to 20GB through Horizon and it worked perfectly without any error and I can confirm that the volume has been extended on the Pure Storage side.
But, no changes inside the guest instance.
lsblk still show a 10GB volume.
I tried rescannig the scsi bus with multiple methodes, notably the rescan-scsi-bus.sh script or by doing that kind of thing :
for i in $(ls -1 /sys/class/
but nothing changed the volume size which is still at 10GB.
I also tried to trigger a "reboot" of the instance (not a stop/start, so without killing the qemu process) and that didn't fix the issue neither.
Only ways to see the change are :
* detach/attach the volume (but that means shutting down the precesses using the volume and unmounting the volume)
* stopping/starting the instance which is annoying too because it means having a little downtime.
So please explain me, what is the interest of being able to resize a volume online if it can't be used without any downtime ?
I must be doing something wrong or misunderstanding something.
Any virtualization platform from simple things like standalone lib-virt, ProxMox, Virtualbox, whatever ... they all permit volume live extension providing the ability to extend filesystems without any downtime.
How can we achieve such thing with Openstack ?
Sounds crazy to me that such common feature is not possible with Openstack.
Best regards
Changed in cinder: | |
importance: | Undecided → High |
tags: | added: live-extend pure-storage |
Changed in charm-cinder-purestorage: | |
assignee: | nobody → Simon Dodsley (simon-dodsley) |
I forgot to give some details on the setup :
* Canonical Charmed Openstack based on Ubuntu 20.04
* Openstack release : stable/Yoga
* cinnder-purestorage : 1.18.1
* cinder : 20.0.0