Race with local file systems can make open-vm-tools fail to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
open-vm-tools (Debian) |
Fix Released
|
Unknown
|
|||
open-vm-tools (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Since the change in [1] open-vm-
Not so much due to the
Before=
But much more by
DefaultDependen
That can trigger an issue that looks like
root@ubuntuguest:~# systemctl status -l open-vm-
● open-vm-
Loaded: loaded (/lib/systemd/
Active: failed (Result: resources)
As it is right now open-vm-tools can race with the other early start and then fail.
In detail one can find a message like:
open-
This is due to privtaeTmp=yes which is also set needing a writable /var/tmp [2]
To ensure this works PrivateTmp would have to be removed (not good) or some after dependencies added that make this work reliably.
I added
After=local-
which made it work for me in 3/3 tests.
I' like to have an ack by the cloud-init Team that this does not totally kill the originally intended Before=
I think it does not as local-fs can complete before cloud-init-local, then open-vm-tools can initialize and finally cloud-init-local can pick up the data.
To summarize:
# cloud-init-local #
DefaultDependen
Wants=network-
After=systemd-
Before=
Before=
Before=
Before=
Conflicts=
RequiresMountsF
# open-vm-tools #
DefaultDependen
Before=
Proposed is to add to the latter:
After=local-
[1]: https:/
[2]: https:/
CVE References
Changed in open-vm-tools (Debian): | |
status: | Unknown → Incomplete |
Changed in open-vm-tools (Debian): | |
status: | Incomplete → Fix Released |
no longer affects: | systemd (Ubuntu Artful) |
Changed in open-vm-tools (Ubuntu Xenial): | |
status: | Invalid → Triaged |
Changed in open-vm-tools (Ubuntu Artful): | |
status: | New → Triaged |
Changed in open-vm-tools (Ubuntu): | |
status: | Fix Released → Invalid |
Note: IMHO a consequence of the bad fix (in Debian) to bug 1667831