vaultlocker spins indefinitely if it starts before dns configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bionic Backports |
Fix Released
|
Undecided
|
Unassigned | ||
vaultlocker |
Fix Released
|
Undecided
|
Edward Hope-Morley | ||
vaultlocker (Ubuntu) |
Fix Released
|
High
|
Edward Hope-Morley | ||
Eoan |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Edward Hope-Morley |
Bug Description
[Impact]
vaultlocker decrypt systemd units start to early in boot process and as a result can't determine the local hostname of the machine they are running on, resulting in failure to retrieve keys from vault.
[Test Case]
This is somewhat tricky to reproduce as its a bit of a race condition - the original bug reporter will help with testing as it was fairly reliable reproduced in the impacted deployment.
[Regression Potential]
Low - the fix (release as the only change in 1.0.6) simple ensures that nss-lookup.target has completed before running the vaultlocker-decrypt units and has been tested using overrides in the impacted deployment.
[Original Bug Report]
On a node that has multiple networks configured and vaultlocker is used for decrypting ceph osds, if vaultlocker starts (specifically vaultlocker-decrypt systemd units) prior to dns being configured, it appears that it will spin forever when the vault url contains hostnames (i.e. not IP addresses). What we see is that there are no crypt- devices and there are per-osd vaultocker processes running that if we strace we see are spinning in select(NULL, NULL, ...) which is socket.
We tried adding After=nss-
[1] https:/
[2] https:/
Changed in vaultlocker (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Edward Hope-Morley (hopem) |
Changed in vaultlocker: | |
status: | In Progress → Fix Released |
Changed in vaultlocker (Ubuntu Focal): | |
status: | In Progress → Fix Released |
status: | Fix Released → Fix Committed |
no longer affects: | vaultlocker (Ubuntu Bionic) |
Changed in vaultlocker (Ubuntu Eoan): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in vaultlocker (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in bionic-backports: | |
status: | New → Fix Released |
https:/ /github. com/openstack- charmers/ vaultlocker/ pull/11