-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE] qemu IDs in disks and butane #1202
Comments
The entries under |
What is a stable device model? |
qemu defines versioned "machine" models - pc or q35, and they define how things are plugged together internally. The "/dev/disk/by-path" link is derived from that. I don't know anything about openstack so i cant tell you how they expose this or what actions at the openstack level would lead to changes. But that path is probably the most identifier you can get. |
Ah, I can investigate. Thank you! We use an OpenStack distro from Virtuozzo, so I don't know either. I just wanted to open this, as @pothos mentioned that on the discussion. Maybe an example in the docs would be good as well? I can PR that if that's acceptable. |
For the topic of specifying the disk I wondered sometimes thought about a way of referring to to the boot disk or a free disk through something like a variable. With new systemd versions there is also For the mount unit, yes, Ignition should rather prefer the label it can find from the filesystem. That said, you could also first create a partition with a partlabel, then use that for the filesystem entry and you'll also have this partlabel name be used for the mount unit. → Maybe we should document that more explicitly. |
Current situation
Related: #1057
I am currently pre-processing my butane configs, so that's why this is a go template:
When flatcar is booted on OpenStack the disk ID is the only predictable identifier to refer to the disk on first boot (to format and to label it). This ID is not the full disk ID, but truncated on that platform which is (I think) currently not documented or mentioned in the docs and instead non predictable device names (such as /dev/sdX) are often used in examples.
Impact
Names such as
/dev/sdX
are not predictable and mounting might fail when we use those in butane. It's a 50/50 chance that the node provisions when they are used.The IDs from qemu are obscure and require truncating so they match created IDs from OpenStack which can be mapped to the system.
Here's a snippet from my preprocessor for the butane config:
The
customerVolume
is the OpenStack ID of the volume I created — and then the first 20 characters of it.Ideal future situation
This is a two in one:
/dev/disk/by-label
when a label was supplied (with_mount_unit: true
)Implementation options
[ Optional: please provide one or more options for implementing the feature requested ]
Additional information
Looked around, but I can't find much, but here is a
/dev/disk/by-*
output, I can share more if that is needed/helpful:The text was updated successfully, but these errors were encountered: