Bionic/Focal VMs get the same machine-id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Charm |
Fix Released
|
Low
|
Adam Dyess | ||
Canonical Livepatch Client |
Won't Fix
|
Undecided
|
Unassigned | ||
MAAS |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Redeployed VMs with B,F don't get new machine-id's. This is causing an issue where a machine that has been registered in livepatch and then redeployed can't be re-registered in livepatch because the machine-id already exists.
To reproduce:
1) compose 3 VMs on a MAAS KVM host
2) Deploy one of each of X,B,F on the new VMs
3) cat /etc/machine-id on each new machine and take note of the result
4) Release the machine
5) Redeploy the machine with the same release
4) cat /etc/machine-id on each machine after it has been redeployed. note that the machine-id for Xenial should have changed, however the machine-id for Bionic and Focal is the same.
Other related bugs for more reference:
https:/
https:/
Related branches
- James Hebden (community): Approve
- David O Neill (community): Needs Fixing
- Domas Monkus: Pending requested
- Alvaro Uria: Pending requested
-
Diff: 325 lines (+130/-18)10 files modifiedMakefile (+2/-1)
src/layer.yaml (+1/-0)
src/reactive/canonical_livepatch.py (+44/-17)
src/tests/functional/tests/bundles/bionic.yaml (+5/-0)
src/tests/functional/tests/bundles/xenial.yaml (+5/-0)
src/tests/functional/tests/test_canonical_livepatch.py (+12/-0)
src/tests/unit/conftest.py (+7/-0)
src/tests/unit/requirements.txt (+4/-0)
src/tests/unit/tests/test_canonical_livepatch.py (+44/-0)
src/tox.ini (+6/-0)
tags: | added: sts |
tags: | added: cdo-qa foundations-engine |
tags: | added: field-medium |
Changed in canonical-livepatch-client: | |
status: | Won't Fix → Confirmed |
Changed in charm-canonical-livepatch: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Adam Dyess (addyess) |
Changed in charm-canonical-livepatch: | |
status: | In Progress → Fix Released |
Changed in canonical-livepatch-client: | |
status: | Confirmed → Fix Released |
status: | Fix Released → Won't Fix |
The images contain a blank /etc/machine-id. According to [1] the machine-id should be automatically generated at boot by systemd on first boot.
[1] https:/ /www.freedeskto p.org/software/ systemd/ man/machine- id.html