Setting libvirt-image-backend to rbd make to fail existing vms

Bug #1826888 reported by Giuseppe Petralia
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Charms Deployment Guide
Fix Released
Medium
Peter Matulis
OpenStack Nova Compute Charm
Triaged
Wishlist
Unassigned

Bug Description

charm-nova-compute revision: 296
openstack version: cloud:xenial-queens

In Boostack a customer asked to move ephemeral disk to ceph.

In order to do that we set libvirt-image-backend to rbd with:

juju config nova-compute libvirt-image-backend=rbd

After the config change was applied any action that involves recreating the vm xml (stop and restart, resize, migrate) are failing for existing vms because we hit the following exception:

https://paste.ubuntu.com/p/vNCCfkTVJz/

In order to fix that we need to revert back the libvirt-image-backend to qcow2 perform the operation needed and then set it back to rbd.

We believe that at least this should be documented in the config.yaml

description: updated
Changed in charm-nova-compute:
status: New → Invalid
status: Invalid → Triaged
importance: Undecided → Wishlist
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

TRIAGE:

So changing libvirt-image-backend for a nova host after creating instances is not a supported feature of the nova-compute charm, because (I suspect) it's not supported on nova itself. That doesn't mean that a new nova-compute (juju) application couldn't have a different libvirt-image-backend and co-exist with the other nova-compute (juju) application.

However, I agree that a documentation update would be useful to indicate that it shouldn't be done and work-arounds, and also in the config.yaml for the nova-compute charm.

It's possibly a good idea to actually make the config option and install time only config option (i.e. for it to have no effect if changed after the charm is installed). However, that might cause more problems that it solves.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

@ajkavanagh you are correct that changing the rbd-image-backend while there are still instances in existence that are using a prior backend type is not supported by Nova (primarily because image conversion during migration is not supported). While it might be safer to make this option install-time-only I also think it might be a bit frustrating to not allow users to change their mind about backend type post-deployment. Therefore I think that adding a config option message (i.e. in config.yaml) to explain that this should not be changed while you still have running instances is a good idea. If we really wanted to make it one-shot then we could add an action to change it post-install.

Changed in charm-nova-compute:
milestone: none → 19.07
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

@hopem - yes, I think we are agreed. I don't really like config items you can't change later, so I was playing a bit of devil's advocate there :)

Essentially, to resolve this bug:

* In config.yaml of nova-compute charm: add note about issues around changing value and existing instances. Point to charms deployment guide.
* In charms deployment guide, add note about issues surrounding config value and workarounds.

Thanks.

Changed in charm-deployment-guide:
status: New → Triaged
importance: Undecided → Medium
David Ames (thedac)
Changed in charm-nova-compute:
milestone: 19.07 → 19.10
David Ames (thedac)
Changed in charm-nova-compute:
milestone: 19.10 → 20.01
Changed in charm-deployment-guide:
assignee: nobody → Peter Matulis (petermatulis)
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-deployment-guide (master)

Reviewed: https://review.opendev.org/693736
Committed: https://git.openstack.org/cgit/openstack/charm-deployment-guide/commit/?id=e23edc0a81ac68881d455e5934c3344a7fa7ab68
Submitter: Zuul
Branch: master

commit e23edc0a81ac68881d455e5934c3344a7fa7ab68
Author: Peter Matulis <email address hidden>
Date: Mon Nov 11 12:48:10 2019 -0500

    Add note re consequences of changing image format

    Closes-Bug: #1826888

    Change-Id: I90e9abbae2c7fab6c88ed94ea06eaa1fa15ef60a

Changed in charm-deployment-guide:
status: Fix Committed → Fix Released
James Page (james-page)
Changed in charm-nova-compute:
milestone: 20.01 → 20.05
David Ames (thedac)
Changed in charm-nova-compute:
milestone: 20.05 → 20.08
James Page (james-page)
Changed in charm-nova-compute:
milestone: 20.08 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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