Skip to content
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

Maintenance mode for SR #6215

Closed
olivierlambert opened this issue May 2, 2022 · 0 comments · Fixed by #6308
Closed

Maintenance mode for SR #6215

olivierlambert opened this issue May 2, 2022 · 0 comments · Fixed by #6308

Comments

@olivierlambert
Copy link
Member

olivierlambert commented May 2, 2022

Use case

When we do some maintenance on a shared SR, we need to shutdown all VMs with at least one disk on it and disconnect the PBD. When the maintenance is done, we need to reconnect the PBD and start all related VMs.

That would be nice to get this automated with a single button, like "host maintenance" but for an SR.

Workflow

When the maintenance mode button is clicked in advanced tab of SR:

  1. Collect all VMs having one disk in this SR
  2. Ask user with modal on all affected VMs will be shutdown
  3. Shutdown all affected VMs (warning if it's current XOA!)
  4. Disconnect PBDs

Button got now "Disable maintenance". When clicked:

  1. Reconnect all PBDs
  2. Start all affected VMs

Future versions

It would be great to get this accessible with a simple/REST API. Also, since it's a long async operation, what about having the possibility to set a webhook when it's finished? (that could be used from the NAS perspective)

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 a pull request may close this issue.

1 participant