cloudstack/server
Anurag Awasthi b24dc2027c FIX4: Allow ready volumes to be attached to VMs that have never been started once (#71)
With this patch apache/cloudstack@b766bf7 we started tracking disks in attaching state so that other attach request can fail gracefully. However this missed the case where disks were in allocated state but attach was requested.

For the use case where users want to attach disk in allocated state but not ready, we need to have allocated-attaching transition as well. We must take care of returning to the original state - allocated or ready - when attach request has completed.

For the use case of unstarted vm's the disk must proceed as follows - "Allocated" -> Attaching -> Allocated. When VM is started, the disk is "created" and pool is assigned. For the use case of started VMs it's more trivial and disk proceeds as follows - Ready -> Attaching -> Ready.

Test this by creating a VM with "startvm=false", create a disk and try attaching it in allocated state. It would give an exception on latest 4.11 but will be fixed on this patch.
2019-04-23 13:10:09 +05:30
..
conf Remove extraneous log directory and add catalina.out log rotation 2016-05-12 08:41:39 +01:00
resources CLOUDSTACK-10132: Extend support for management servers LB for agents (#2469) 2018-03-15 16:34:03 +05:30
scripts License header updates for the server folder. 2012-08-03 09:41:27 -04:00
src FIX4: Allow ready volumes to be attached to VMs that have never been started once (#71) 2019-04-23 13:10:09 +05:30
test server: Prevent corner case for infinite PrepareForMaintenance (#3095) 2019-04-16 22:15:52 +05:30
pom.xml Updating pom.xml version numbers for release 4.11.2.0 2018-11-13 09:24:27 +00:00