-
Notifications
You must be signed in to change notification settings - Fork 157
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
[rhcos-4.13] overlay.d: create new 30gcp-udev-rules overlay #2336
Conversation
A few things:
|
I would go further and include that information directly as comments at the top of those files. |
I wouldn't - since the files are currently diff-able with what is upstream, but I would include it in the README for the module. i.e. look at what we did for azure: https://github.com/coreos/fedora-coreos-config/blob/testing-devel/overlay.d/README.md#25-azure-udev-rules |
Personally, when copy/pasting stuff like this directly from other places, I want to be really clear that happened and so document it at the top of the file. It doesn't have to be the full context; just a "Copied from $permalink" is enough. Having that provenance be inline is helpful not only to us but in this case also to users perusing those files on the host too. |
I think that's fair. Maybe we can do both? |
Nice commit messages @ravanelli! I think we need to still update the README and also add a line at the top of the copied files mentioning where exactly they were copied from (permalink to github file would be nice). |
Done =) |
The CI still failing, seems we need a backport to rhcos-413 from: b0ffe7c |
# ATTENTION: It is a copy from https://github.com/GoogleCloudPlatform/guest-configs/blob/master/src/lib/udev/google_nvme_id | ||
# This file is synced with the source using the last update: Latest commit 3841945 on Feb 17 2023 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For these let's move this directly under the #!/bin/bash
above and also just use the permalink which is self explanatory:
# ATTENTION: It is a copy from https://github.com/GoogleCloudPlatform/guest-configs/blob/master/src/lib/udev/google_nvme_id | |
# This file is synced with the source using the last update: Latest commit 3841945 on Feb 17 2023 | |
# ATTENTION: This is a copy from https://github.com/GoogleCloudPlatform/guest-configs/blob/18fbc050b135461879e631a5ec2dd2cd7259d8e2/src/lib/udev/google_nvme_id |
Add udev rules and scripts needed from google-guest-configs [1] for disk | ||
configuration in GCP, such as local SSD controllers (nvme and scsi). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's also mention here the open BZ to get this into the RPM and that we can drop this and just include the RPM when the BZ is fixed.
338bdf4
to
38f9eff
Compare
We previously had the 65-gce-disk-naming.rules under the 05core overlay. This commit makes a new overlay.d entry specifically for the GCP rules, in this way we can track it and have a better maintenance Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
- This PR injects/updates the udev rules from google-guest-config package into our overlay (GoogleCloudPlatform/guest-configs@18fbc05). - It works as an workaround for the BZ #2176212. The longer term solution is to add these packages as part of the Fedora/RHEL itself, so we won't need to maintain it, as we can entirely drop it. For this matter the BZ https://bugzilla.redhat.com/show_bug.cgi?id=2182865 was opened requesting a subpackage of google-compute-engine-guest-configs containing only what is needed. For more info: https://bugzilla.redhat.com/show_bug.cgi?id=2176212 https://github.com/GoogleCloudPlatform/guest-configs/tree/master/src/lib/udev Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - The only other thing that might be nice is adding a test for this (only runs on GCP) that validates some of the rules are acting appropriately.
Wait, I just noticed this was targeting |
oh yeah. I thought this was targetting the |
I created a new issue to work on it: |
A my bad, probably opened it first against 413 since the issue was in this branch. |
New PR in #2350 |
For more info:
https://github.com/GoogleCloudPlatform/guest-configs/tree/master/src/lib/udev