Reviewed: https://review.opendev.org/c/openstack/nova/+/952004 Committed: https://opendev.org/openstack/nova/commit/2fd65bd14ac33b58e247bf9d3c8066fa5dac2215 Submitter: "Zuul (22348)" Branch: stable/2024.2
commit 2fd65bd14ac33b58e247bf9d3c8066fa5dac2215 Author: melanie witt <[email protected]> Date: Wed Apr 16 15:20:23 2025 -0700 libvirt: Use common naming convention for ephemeral disk labels The _create_ephemeral() method is responsible for creating ephemeral disks with image type "raw" and formatting them with mkfs. In the case of [libvirt]images_type "qcow2", _create_ephemeral() will create backing files. Currently we are not using a consistent naming convention for choosing the filesystem label for ephemeral disks. When we create a server for example, we go through the disks and label them "ephemeral0", "ephemeral1", "ephemeral2", etc. When we hard reboot a server, there is a check to create missing backing files and if so, a new backing file will be created but instead of being labeled "ephemeralN" the code attempts to label them with the name of the backing file itself for example "ephemeral_1_40d1d2c". This will fail if the filesystem used for ephemeral disks has limitations on the length of filesystem label names (VFAT, XFS, ...). For example: mkfs.vfat: Label can be no longer than 11 characters This adds a helper method for obtaining ephemeral disks filesystem label names and uses it the same way in the few places fs_label is specified. Closes-Bug: #2061701 Change-Id: Id033a5760272e4fb06dee2342414b26aa16ffe24 (cherry picked from commit 82856f95c69bb07bd2a61decae9abe827a2a1567) (cherry picked from commit 09fc2fae424493ff9580c6d38e63f207b916529c) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2061701 Title: check_can_live_migrate_source fails with mkfs.vfat error: Label can be no longer than 11 characters To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/caracal/+bug/2061701/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
