cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Add a permission for force stopping a vm

Open BartJM opened this issue 3 years ago • 2 comments

ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
API
CLOUDSTACK VERSION
N/A
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

We would like the ability to prevent users to use forced=true when calling the stopVirtualMachine API.

This is wanted to prevent a scenario where a vm is running twice due to an issued forced stop by a user. This occurs when a force stop is sent to a vm, but the agent cannot handle the stop command (disabled/alert/other). The force stop will just administratively set the vm down, while it is still running. when starting the vm again CS will start on another host since the original is in disabled/alert state.

STEPS TO REPRODUCE
  • Start a vm on a host.
  • Disable cloudstack-agent on the host
  • Force stop the vm
  • Start the vm

BartJM avatar Aug 10 '22 16:08 BartJM

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Aug 10 '22 16:08 boring-cyborg[bot]

Sounds like yet another global setting to tune the behaviour and something in the UI to detect this.

rohityadavcloud avatar Aug 17 '22 13:08 rohityadavcloud