Skip to content

Conversation

@BengangY
Copy link
Contributor

Xapi still uses /sbin/service to start attach-static-vdis when boots up for HA. It will fail in XS 9 as /sbin/service has been removed in XS 9.

Replace it with systemctl.

@BengangY BengangY marked this pull request as ready for review October 23, 2025 02:28
try ignore (Helpers.call_script "/sbin/service" [script; "start"])
debug "%s: Attempt to reattach static VDIs" __FUNCTION__ ;
let service = "attach-static-vdis.service" in
try ignore (Xapi_systemctl.start ~wait_until_success:false service)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return type of Xapi_systemctl.start is unit. No need to use ignore.

Xapi still uses `/sbin/service` to start `attach-static-vdis` when boots
up for HA. It will fail in XS 9 as `/sbin/service` has been removed in
XS 9.

Replace it with `systemctl`.

Signed-off-by: Bengang Yuan <bengang.yuan@cloud.com>
@BengangY BengangY force-pushed the private/bengangy/CA-418759 branch from 8b48885 to bcc7709 Compare October 24, 2025 06:42
@BengangY BengangY added this pull request to the merge queue Oct 24, 2025
Merged via the queue into xapi-project:master with commit 0d03639 Oct 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants