kiranchavala opened a new issue, #9192: URL: https://github.com/apache/cloudstack/issues/9192
ISSUE TYPE BUG Component Name Volume, CLOUDSTACK VERSION Cloudstack version 4.18, 4.19 SUMMARY Allow migration of encrypted volumes between 2 data store clusters Steps to reproduce the issue. 1. Create a 4.18.0 upstream cloudstack env 2. Add a 2 powerflex datastore cluster 3. Create a disk offering with encryption enabled and storage tag pointing to powerflex env 4. Create data volume based on the disk offering 5. Attach the data volume to the vm 6. Migrate the volume to another powerflex cluster. ( Migration fails)Lab env http://10.0.35.58:8080/client/ logs ``` [root@ol8 ~]# cat /var/log/cloudstack/management/management-server.log |grep -i "logid:1767b00d" 2024-06-07 14:47:57,985 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Executing AsyncJobVO: {id:36, userId: 2, accountId: 2, instanceType: Volume, instanceId: 4, cmd: org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin, cmdInfo: {"response":"json","ctxUserId":"2","volumeid":"7dbe2383-71fb-4e80-b1f7-dfe574734e9f","httpmethod":"GET","ctxStartEventId":"105","ctxDetails":"{\"interface com.cloud.storage.Volume\":\"7dbe2383-71fb-4e80-b1f7-dfe574734e9f\",\"interface com.cloud.storage.StoragePool\":\"2d3a89bf-eef3-453c-9080-7e72b401e130\"}","ctxAccountId":"2","livemigrate":"true","cmdEventType":"VOLUME.MIGRATE","storageid":"2d3a89bf-eef3-453c-9080-7e72b401e130"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 32987697644493, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2024-06-07 14:47:58,011 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Complete async job-36, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"431","errortext":"Migration of encrypted volumes is unsupported"} 2024-06-07 14:47:58,012 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Publish async job-36 complete on message bus 2024-06-07 14:47:58,012 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Wake up jobs related to job-36 2024-06-07 14:47:58,012 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Update db status for job-36 2024-06-07 14:47:58,013 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Wake up jobs joined with job-36 and disjoin all subjobs created from job- 36 2024-06-07 14:47:58,018 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Done executing org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin for job-36 2024-06-07 14:47:58,018 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-28:ctx-b03511dd job-36) (logid:1767b00d) Remove job-36 from job monitoring ``` Detach the volume and migrate ``` [root@ol8 ~]# cat /var/log/cloudstack/management/management-server.log |grep -i "logid:9a0c4900" 2024-06-07 14:56:33,132 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Executing AsyncJobVO: {id:52, userId: 2, accountId: 2, instanceType: Volume, instanceId: 7, cmd: org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin, cmdInfo: {"response":"json","ctxUserId":"2","volumeid":"bde07576-ae3e-426d-8b80-af70c196b920","httpmethod":"GET","ctxStartEventId":"139","ctxDetails":"{\"interface com.cloud.storage.Volume\":\"bde07576-ae3e-426d-8b80-af70c196b920\",\"interface com.cloud.storage.StoragePool\":\"2d3a89bf-eef3-453c-9080-7e72b401e130\"}","ctxAccountId":"2","livemigrate":"false","cmdEventType":"VOLUME.MIGRATE","storageid":"2d3a89bf-eef3-453c-9080-7e72b401e130"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 32987697644493, completeMsid: null, lastUpdated: null, lastPolled: null, created: null, removed: null} 2024-06-07 14:56:33,150 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Complete async job-52, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"431","errortext":"Migration of encrypted volumes is unsupported"} 2024-06-07 14:56:33,151 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Publish async job-52 complete on message bus 2024-06-07 14:56:33,151 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Wake up jobs related to job-52 2024-06-07 14:56:33,151 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Update db status for job-52 2024-06-07 14:56:33,152 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Wake up jobs joined with job-52 and disjoin all subjobs created from job- 52 2024-06-07 14:56:33,155 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Done executing org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin for job-52 2024-06-07 14:56:33,155 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-39:ctx-dc9bab91 job-52) (logid:9a0c4900) Remove job-52 from job monitoring ``` Actual Behaviour Cloudstack is not allowing the migration of encrypted volumes between 2 primary storages based on powerflex Expected Behaviour Cloudstack should allow the migration of encrypted volumes between 2 primary storages based on powerflex -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org