cloud-init dependency for open-vm-tools service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
open-vm-tools (Debian) |
Fix Released
|
Unknown
|
|||
open-vm-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Had a private chat conversation with Scott Moser (@smoser). As per his instructions, logging this bug. We need to add 'cloud-init' dependency for 'open-vm-tools' service.
This is how 'Guest Customization' works for the 'VMware' managed guests.
1. open-vm-tools service comes up and populates a 'customization' configuration file.
2. cloud-init service starts and waits for the 'customization config' file, reads it and applies the customization.
(1) should start before (2). Else, (2) will just block itself and not find the config file. Everything was working fine. But due to recent 'systemd' changes done to 'cloud-init', 'cloud-init' service starts early in the boot process before 'open-vm-tools' service. Due to this, no customization actually happens.
Need to add the 'cloud-init' dependency for 'open-vm-tools' service so that (1) always happens before (2).
Logging a bug.
Thanks
Sankar.
affects: | cloud-init → open-vm-tools |
affects: | open-vm-tools → open-vm-tools (Ubuntu) |
Changed in open-vm-tools (Debian): | |
status: | Unknown → New |
Changed in open-vm-tools (Debian): | |
status: | New → Fix Released |
Adding the following two lines to 'open-vm-tools' service unit file fixes the issue.
DefaultDependen cies=no cloud-init- local.service
Before=
Here is the total content of 'open-vm- tools.service' file
""" open-vm- tools.sourcefor ge.net/ about.php lization= vmware cies=no cloud-init- local.service
[Unit]
Description=Service for virtual machines hosted on VMware
Documentation=http://
ConditionVirtua
DefaultDependen
Before=
[Service] /usr/bin/ vmtoolsd
ExecStart=
TimeoutStopSec=5
[Install] multi-user. target
WantedBy=
"""