Description of problem: Add the option to plug/unplug a disk that is connected to a VM through: api/vms/{vm_id}/diskattachments/{disk_id} Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Tal - not sure if this is just documented in the REST documentation already or requires a specific treatment, but flagging as requires-doctext? just to be on the safe side. If it's redundant, feel free to set - instead.
Hi Tal, I went through all our test plan for this test. There's only a case that fails for the new API. According to the case, changing the interface of a paused vm (in this case, because the connection from the host to the storage domain was blocked via iptables) should succeed, but it fails with: <fault> <detail> [Cannot edit Virtual Disk. At least one of the VMs is not down.] </detail> <reason>Operation Failed</reason> </fault> do we have our test cases wrong or it should actually work? Rest of the cases work, so I only need to understand this issue before mark it as verified.
Hey Carlos, I don't think this should succeed, if I remember correctly an interface can only be changed if a VM is down. Can you please verify with a 3.6 setup just to be 100% sure?
Hi Tal, I tested on 3.6 and you remember correctly, as with 4.0 changing the interface doesn't work if the vm is in status paused (only when is down). I thought that was a change in features that the new disk attachments had. Anyway, I'll update our automation tests. Setting this bug to verify.