Commit 8cf154d
Sateesh Chodapuneedi
CLOUDSTACK-5661 [VMware] DetachIsoCmd succeeds even though cdrom is locked by VM as cdrom is mounted
DetachISO is succeeding even though detach opeartion is failing as cdrom is locked by VM as it was mounted inside VM.
Detect if cdrom is locked or not. If locked fail detach operation and warn user to unmount before detaching the iso/cdrom device.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>1 parent ad5d607 commit 8cf154d
3 files changed
Lines changed: 18 additions & 3 deletions
File tree
- plugins/hypervisors/vmware/src/com/cloud
- hypervisor/vmware/resource
- storage/resource
- vmware-base/src/com/cloud/hypervisor/vmware/mo
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4946 | 4946 | | |
4947 | 4947 | | |
4948 | 4948 | | |
4949 | | - | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
4950 | 4953 | | |
4951 | 4954 | | |
4952 | 4955 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
1299 | | - | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1300 | 1302 | | |
1301 | 1303 | | |
1302 | 1304 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | | - | |
| 2401 | + | |
2402 | 2402 | | |
2403 | 2403 | | |
2404 | 2404 | | |
2405 | 2405 | | |
| 2406 | + | |
| 2407 | + | |
2406 | 2408 | | |
2407 | 2409 | | |
2408 | 2410 | | |
| |||
2413 | 2415 | | |
2414 | 2416 | | |
2415 | 2417 | | |
| 2418 | + | |
2416 | 2419 | | |
2417 | 2420 | | |
2418 | 2421 | | |
| |||
2479 | 2482 | | |
2480 | 2483 | | |
2481 | 2484 | | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2482 | 2492 | | |
2483 | 2493 | | |
2484 | 2494 | | |
| |||
0 commit comments