vmware-archive / photon-controller

Photon Controller
Other
26 stars 3 forks source link

VM not found during detach disk #122

Open medvedzver opened 7 years ago

medvedzver commented 7 years ago

Hi!

It's photon 1.1. I can't detach disk because it's not found. VM is not found also.

photon disk show 3ee90f95-849d-4e25-b8ff-7f05abb5f93f
Disk ID:  3ee90f95-849d-4e25-b8ff-7f05abb5f93f
  Name:        disk-for-vm-8c591b10-c851-44a5-8723-d6645f9ebb34
  Kind:        persistent-disk
  Flavor:      bosh-persistent
  CapacityGB:  20
  State:       ATTACHED
  Datastore:   58d305e9-94a4fb63-e201-000c29b0f253
  Tags:        []
  VMs:         [8c591b10-c851-44a5-8723-d6645f9ebb34]

photon vm list
ID                                    Name     State
8c591b10-c851-44a5-8723-d6645f9ebb34  bosh-vm  STARTED
aefbc0b9-8399-4a4e-90c2-1e1789ee70e7  bosh-vm  STARTED

photon vm show 8c591b10-c851-44a5-8723-d6645f9ebb34
2017/05/16 09:09:57 photon: Task '6b0559de-75c9-4470-9a5c-89ff0011fa17' is in error state: {@step=={"sequence"=>"0","state"=>"ERROR","errors"=>[photon: { HTTP status: '0', code: 'InternalError', message: 'Request #0b33e8fa-caaf-4c1b-b0ac-0ad5cb267f31 failed due to an internal error: com.vmware.photon.controller.api.frontend.exceptions.external.VmNotFoundException: VM 8c591b10-c851-44a5-8723-d6645f9ebb34 not found', data: 'map[]' }],"warnings"=>[],"operation"=>"GET_NETWORKS","startedTime"=>"1494555890149","queuedTime"=>"1494555890124","endTime"=>"1494555890193","options"=>map[8c591b10-c851-44a5-8723-d6645f9ebb34:vm]}}
API Errors: [photon: { HTTP status: '0', code: 'InternalError', message: 'Request #0b33e8fa-caaf-4c1b-b0ac-0ad5cb267f31 failed due to an internal error: com.vmware.photon.controller.api.frontend.exceptions.external.VmNotFoundException: VM 8c591b10-c851-44a5-8723-d6645f9ebb34 not found', data: 'map[]' }]

photon disk list
ID                                    Name                                              State
3ee90f95-849d-4e25-b8ff-7f05abb5f93f  disk-for-vm-8c591b10-c851-44a5-8723-d6645f9ebb34  ATTACHED
4f62bfe1-1551-40e3-b5c5-3072006bf0ee  disk-for-vm-aefbc0b9-8399-4a4e-90c2-1e1789ee70e7  ATTACHED

Total: 2
ATTACHED: 2

photon vm detach-disk -d 3ee90f95-849d-4e25-b8ff-7f05abb5f93f 8c591b10-c851-44a5-8723-d6645f9ebb34
2017/05/16 09:16:23 photon: Task '936b2af7-b651-4c04-ac57-94c0823e07a1' is in error state: {@step=={"sequence"=>"0","state"=>"ERROR","errors"=>[photon: { HTTP status: '0', code: 'InternalError', message: 'Request #90ccd42e-1cca-42c9-8a1b-653cdbe3ead0 failed due to an internal error: Unexpected result: DISK_NOT_FOUND', data: 'map[]' }],"warnings"=>[],"operation"=>"DETACH_DISK","startedTime"=>"1494556275972","queuedTime"=>"1494556275966","endTime"=>"1494556275996","options"=>map[3ee90f95-849d-4e25-b8ff-7f05abb5f93f:persistent-disk 8c591b10-c851-44a5-8723-d6645f9ebb34:vm]}}
API Errors: [photon: { HTTP status: '0', code: 'InternalError', message: 'Request #90ccd42e-1cca-42c9-8a1b-653cdbe3ead0 failed due to an internal error: Unexpected result: DISK_NOT_FOUND', data: 'map[]' }]

Have a good day!