-
Notifications
You must be signed in to change notification settings - Fork 59
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
AWS: Add predictable symlinks for secondary disks #1122
Comments
Thanks for filing this. I tweaked the title. Your original comment specified EBS, but I think it'd be good to detect both EBS and ephemeral. Right now, these are the default symlinks I see for ephemeral disks (in this case NVMe):
Would be nice to have it be e.g. |
We discussed this in the community meeting today.
|
Worth mentioning this is also slightly related to #601 |
What I tried: ( Without success, udev rule is not triggered )
|
Testing this on f38-based FCOS, at least for the EBS case there are predictable names available. If e.g. your volume name is This assumes that you're creating volumes ahead of time rather than dynamically at launch time, and that you can customize the Ignition config before launching. |
I think that in majority of the use-cases instances get launched in AWS with AutoScalingGroups... and using volume ID solution in ignition wouldn't work there right? coreos/init@adb9609 I feel like it will be useful to solve this very common use-case of ASGs. |
Honestly will also appreciate help with any workarounds / pointers too that you think might work? For example, if we include the custom udev rules from coreos/init@adb9609 in our ignition config and how we can then use them to mount disks with ignition... |
The available workaround is to handle the affected disks completely outside of Ignition, by writing a systemd unit that does whatever needs to be done with the disk. Ignition can't write udev rules that affect Ignition, because a) Ignition only writes to the root filesystem, not to the initramfs environment, and b) files are written only after disks have been formatted and mounted. |
This is for now documented at https://github.com/openshift/os/blob/master/docs/faq.md#q-how-do-i-configure-a-secondary-block-device-via-ignitionmc-if-the-name-varies-on-each-node. We should probably lift that into the FCOS docs too. |
on aws the only predictable way of mapping a secondary volume without any extra scripting was using the most of the instances have it available at an example config would look like the following
|
We should able to fix this now that the needed packages are in Fedora: Edit: This needs Python. |
Python is needed for https://github.com/amazonlinux/amazon-ec2-utils/blob/main/ebsnvme-id, which could be a Rust binary or a Bash script. |
Describe the enhancement
Would be superb to support additional attached devices ( EBS in AWS ) via instance metadata. See https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-instance-store-volumes for more info.
Thanks
System details
Additional information
no
The text was updated successfully, but these errors were encountered: