-
Notifications
You must be signed in to change notification settings - Fork 522
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
systemd: generate stable machine IDS for ARM KVM guests #1506
systemd: generate stable machine IDS for ARM KVM guests #1506
Conversation
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.
Not sure if it is normal to add your "Signed-off-by" to the pre-existing patches?
@webern I didn't remove the previous signed offs, and since I modified the sequence in the patches, I think it would be ok? |
Yeah not sure about patch etiquette but I'm sure others have experience there. Something's going on with CI: I think this may be the error
Edit: it's across all PRs. |
925c795
to
49c17f9
Compare
|
Systemd fails to detect the dmi vendor for ARM EC2 instances, and uses | ||
the random machine id generator instead of a consistent ID after each | ||
boot. To fix the problem, this commit adds "Amazon EC2" key to the dmi | ||
vendor table, and maps it to `VIRTUALIZATION_KVM`, so that a consitent |
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.
typo:
vendor table, and maps it to `VIRTUALIZATION_KVM`, so that a consitent | |
vendor table, and maps it to `VIRTUALIZATION_KVM`, so that a consistent |
49c17f9
to
ae653fa
Compare
|
ae653fa
to
309b285
Compare
|
Systemd doesn't recognize Amazon EC2 as a valid dmi vendor. The vendor is used to detect the virtualization type, which then is used to generate the machine ID. Since no dmi vendor is detected, systemd defaults to use the random machine ID generator, which results in a different machine ID after each boot. This patch extends the list of valid dmi vendors, and adds `Amazon EC2` as a new vendor.
309b285
to
d1bf60c
Compare
|
Issue number:
#1493
Description of changes:
Systemd doesn't recognize Amazon EC2 as a valid dmi vendor. The vendor is used to detect the virtualization type, which then is used to generate the machine ID. Since no dmi vendor is detected, systemd defaults to use the random machine ID generator, which results in a different machine ID after each boot. This patch extends the list of valid dmi vendors, and adds
Amazon EC2
as a new vendor.Testing done:
In k8s 1.19, ecs and dev aarch64/x86_64:
systemctl status
to check that no units were failingjournalctl --list-boots
shows two entriescurl http://localhost
within the pod/task/containersystemd.log_level
kernel parameter asdebug
to validate the correct virtualization type was selected for both XEN and KVM:ECS
aarch64 (t4g.medium)
x86_64
XEN (c4.large)
KVM (m5.xlarge)
k8s 1.19
aarch64
x86_64
XEN (c4.large)
KVM (m5.xlarge)
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.