bernardodemarco commented on PR #9725:
URL: https://github.com/apache/cloudstack/pull/9725#issuecomment-2573005984

   > Yes, no problem. I'll update the verification to only allow the migration 
to be performed when the VM is Running, Stopped or Shutdown.
   
   @DaanHoogland, @rohityadavcloud, @JoaoJandre I've just applied the changes.
   
   ```bash
   root@cloudstack:~# grep -a 'logid:bf08211b' 
/var/log/cloudstack/management/management-server.log 
   2025-01-06 12:13:48,480 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-7:ctx-8253b178 job-141) (logid:bf08211b) Executing 
AsyncJobVO: {id:141, userId: 2, accountId: 2, instanceType: Volume, instanceId: 
21, cmd: 
org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin, 
cmdInfo: 
{"response":"json","ctxUserId":"2","sessionkey":"07_Zt7hC_aogIMgiM2EDW7Hs0xk","volumeid":"8dfa4a5e-2e0f-4c57-ad1e-2a19b6a3c6b9","httpmethod":"GET","ctxStartEventId":"273","ctxDetails":"{\"interface
 
com.cloud.storage.Volume\":\"8dfa4a5e-2e0f-4c57-ad1e-2a19b6a3c6b9\",\"interface 
com.cloud.storage.StoragePool\":\"a0566c34-a49d-31bc-865f-3b57806131d6\"}","ctxAccountId":"2","livemigrate":"false","cmdEventType":"VOLUME.MIGRATE","storageid":"a0566c34-a49d-31bc-865f-3b57806131d6"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 227341783673585, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null, removed: null}
   2025-01-06 12:13:48,488 DEBUG [c.c.s.VolumeApiServiceImpl] 
(API-Job-Executor-7:ctx-8253b178 job-141 ctx-fe58e892) (logid:bf08211b) Unable 
to migrate volume: [ROOT-19] Id: [21] because the VM: [i-2-19-VM] Id: 
[9228084c-7e2f-4e08-b40d-99a96c2ec23a] is in state [Stopping], which is not 
supported for migration.
   2025-01-06 12:13:48,493 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-7:ctx-8253b178 job-141) (logid:bf08211b) Unexpected exception 
while executing 
org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin
   2025-01-06 12:13:48,496 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-7:ctx-8253b178 job-141) (logid:bf08211b) Complete async 
job-141, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Volume
 migration is not allowed when the VM is in the Stopping state. Supported 
states are: [Stopped, Running, Shutdown]."}
   ```
   
   ![Screenshot from 2025-01-06 
09-14-02](https://github.com/user-attachments/assets/0563f91a-f348-4979-bdee-47947ac2608a)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to