Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can see that if CloudStack ever needs to define a new transitional VM state, it will be very hard for hypervisor resource-agent developer to follow, most of sync originated problems happen when developer fails to correctly manage the state cache maintained at resource side.

Since now resource-agent is only required to report raw VM power state, above code logic can become as simple as following

Code Block
    protected HashMap<String, PowerState> sync() {
    	return getVmStates();
    }

2) Serialize VM operations

...