Skip to content

Commit e092529

Browse files
authored
systemvm: Ensure cloud service reboots after failure (#2916)
This fixes an issue for systemvms (CPVM and SSVM) on VMware, as eth0 is not programmed (link-local) the networking.service fails to start which is a dependency for cloud-postinit service. When cloud-postinit service fails to start/run, it fails to start the agent (cloud) process. This fixes the smoketest failures we saw in case of VMware 6.5 with 4.11. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 47c9c1c commit e092529

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

systemvm/debian/etc/systemd/system/cloud-postinit.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Description=CloudStack post-patching init script
33
After=cloud-early-config.service network.target local-fs.target
44
Before=ssh.service
5-
Requires=networking.service
65

76
[Install]
87
WantedBy=multi-user.target

systemvm/debian/etc/systemd/system/cloud.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ WantedBy=multi-user.target
99
Type=simple
1010
WorkingDirectory=/usr/local/cloud/systemvm
1111
ExecStart=/usr/local/cloud/systemvm/_run.sh
12-
Restart=always
13-
RestartSec=5
12+
Restart=on-failure

0 commit comments

Comments
 (0)