{"shas":[["4d7ed400c7116095fe292778b027a75694144a26","672d14fef69846058a295765855859aec0325d63@cloud.com","Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)\n\n- Added a new flag 'allocation_state' to zone,pod,cluster and host\n- The possible values for this flag are 'Enabled' or 'Disabled'\n- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.\n- For existing zone,pod,cluster or host, the state is 'Enabled'.\n- All Add/Update/List  commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'\n- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.\n- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.\n- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.\n- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.\nIf this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.\nIf VM cannot be deployed to that host, allocators and deployVM fails without retrying","prachi"],["f2029d725650d90a5d39d36d1117fd507d99f055","672d14fef69846058a295765855859aec0325d63@cloud.com","Zone check in createNetwork for Bug 6873 - disable/enable mode for clusters (and pods and zones and hosts)","prachi"]],"repo":"CloudDotCom/CloudStack","actor":"CloudDotCom","ref":"refs/heads/master","size":2,"head":"f2029d725650d90a5d39d36d1117fd507d99f055","actor_gravatar":"024af2db01a5fb953affc86dbc24a0a1","push_id":27400230}