Skip to content

Synchronise 2024.1 with upstream#179

Open
github-actions[bot] wants to merge 1 commit intostackhpc/2024.1from
upstream/2024.1-2026-03-30
Open

Synchronise 2024.1 with upstream#179
github-actions[bot] wants to merge 1 commit intostackhpc/2024.1from
upstream/2024.1-2026-03-30

Conversation

@github-actions
Copy link
Copy Markdown

This PR contains a snapshot of 2024.1 from upstream unmaintained/2024.1.

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 82856f9)
(cherry picked from commit 09fc2fa)
(cherry picked from commit 2fd65bd)
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
@github-actions github-actions bot requested a review from a team as a code owner March 30, 2026 06:54
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels Mar 30, 2026
@priteau priteau closed this Mar 30, 2026
@priteau priteau reopened this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Automated action performed by GitHub Actions synchronisation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants