New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CA-391859: Failed to stop varstord-guard #5578
Conversation
Test done:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was confused by this change initially, but then I saw the loop that reverses SERVICES
:/
Yes, I should mention that in the comments to clarify that 😸 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was confused by this change initially, but then I saw the loop that reverses SERVICES :/
needs aList.rev
😄
This would be useful for master too |
scripts/xe-toolstack-restart
Outdated
@@ -30,7 +30,7 @@ if [ $POOLCONF == "master" ]; then MPATHALERT="mpathalert"; else MPATHALERT=""; | |||
SERVICES="perfmon v6d xenopsd xenopsd-xc xenopsd-xenlight | |||
xenopsd-simulator xenopsd-libvirt xcp-rrdd-iostat xcp-rrdd-squeezed | |||
xcp-rrdd-xenpm xcp-rrdd-gpumon xcp-rrdd xcp-networkd squeezed forkexecd | |||
$MPATHALERT xapi-storage-script xapi-clusterd varstored-guard message-switch" | |||
$MPATHALERT xapi-storage-script xapi-clusterd message-switch varstored-guard" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put message-switch to the very beginning? Does message-switch have any dependencies of its own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect all the toolstack daemons to depend on it, so it should be shut down last
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let's make that change, and target the master branch.
e2f9aa5
to
1e39bb7
Compare
varstord-guard has following configuration in the service file After=message-switch.service syslog.target This means varstored-guard needs to be stopped before message-switch, otherwise, it will hung and finally be killed by systemd during xe-toolstack-restart Move message-switch to the begining of the list to shutdown last as all other daemons depend on it Note: the list order is reversed by `for svc in $SERVICES` Signed-off-by: Lin Liu <lin.liu@citrix.com>
1e39bb7
to
e699b39
Compare
git diff
Manual test on XS8 and XS9. |
varstord-guard has following configuration in the service file
After=message-switch.service syslog.target
This means varstored-guard needs to be stopped before message-switch, otherwise, it will hung and finally be killed by systemd during xe-toolstack-restart