You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "daviftorres (via GitHub)" <gi...@apache.org> on 2026/06/11 21:15:56 UTC

[I] Failed to Move VM to Another Account [cloudstack]

daviftorres opened a new issue, #13406:
URL: https://github.com/apache/cloudstack/issues/13406

   ### problem
   
   Up on stopping an Instance and trying to move it to another account...
   
   <img width="665" height="122" alt="Image" src="https://github.com/user-attachments/assets/a9224af7-abb8-44e9-93f6-b17e43eeba9d" />
   
   ...it does not make clear what caused the failure.
   
   <img width="423" height="190" alt="Image" src="https://github.com/user-attachments/assets/402ca103-d569-4f00-b1d5-5a056b22b62e" />
   
   Even as a Root Admin, there is no explanation of what prevented the move from happening.
   
   By looking at the logs, the message is clear but it is followed by an unhandled exception.
   
   Sanitized fragments of the logs:
   
   <img width="365" height="41" alt="Image" src="https://github.com/user-attachments/assets/82b3aa0c-3589-453a-a7b9-e3f7109bc161" /> 
   
   ```
   2026-06-11 20:07:53,953 ERROR [o.a.c.a.c.a.v.AssignVMCmd] (qtp1404565079-58786:[ctx-e08ee8a2, ctx-7b35ebda]) (logid:46523a5c) Failed to move VM [4944]. com.cloud.exception.InvalidParameterValueException: Snapshots exist for volume [ROOT-4944]. Detach volume or remove snapshots for the volume before assigning VM to another user.
   	at com.cloud.vm.UserVmManagerImpl.validateIfVolumesHaveNoSnapshots(UserVmManagerImpl.java:7961)
   	at com.cloud.vm.UserVmManagerImpl.moveVmToUser(UserVmManagerImpl.java:7871)
   ```
   
   <img width="496" height="45" alt="Image" src="https://github.com/user-attachments/assets/2b2a4f6b-0012-439a-bb56-d85927ca970e" /> 
   
   ```
   2026-06-11 19:58:58,841 ERROR [o.a.c.a.c.a.v.AssignVMCmd] (qtp1404565079-58786:[ctx-b7b9a764, ctx-86b9f79a]) (logid:1096b7f6) Failed to move VM [4944]. com.cloud.exception.InvalidParameterValueException: Remove any Port Forwarding rules for VM [VM instance {"id":4944,"instanceName":"i-73-4944-VM","state":"Stopped","type":"User","uuid":"*"}] before assigning it to another user.
   	at com.cloud.vm.UserVmManagerImpl.validateIfVmHasNoRules(UserVmManagerImpl.java:7934)
   	at com.cloud.vm.UserVmManagerImpl.moveVmToUser(UserVmManagerImpl.java:7868)
   ```
   
   ### versions
   
   ACS 4.22.0.1
   
   ### The steps to reproduce the bug
   
   1.
   2.
   3.
   ...
   
   
   ### What to do about it?
   
   _No response_


-- 
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-unsubscribe@cloudstack.apache.org.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "davift (via GitHub)" <gi...@apache.org>.
davift commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5063993228

   Dear @DaanHoogland, I do not fully understand what those changes to the Java code do, but reading it in English, it seems to be on the right path.


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5056001200

   @davift , have a look if this works for you: #13675 


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "daviftorres (via GitHub)" <gi...@apache.org>.
daviftorres commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5069989264

   > would you be able to test, [@davift](https://github.com/davift) ?
   
   I do not think i have the skills to build and run the Java code myselft. Is there a build with this change? The test environment I have available.


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "davift (via GitHub)" <gi...@apache.org>.
davift commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-4987719919

   > Also, revisiting this, an operator might want the root cause to be obscure to the end-user. The error give job id (431) and vm id (4944) to search the logs with. What do you think [@daviftorres](https://github.com/daviftorres) ?
   
   hey @DaanHoogland , I understand the cinceran of sharing to much with the user, but if the message lacks clarity it may cause more confusion and frustration... what would be the problem in saying that there are snapshots or port forwarding that prevents it from migrating? Did I miss the point?


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5017254656

   @davift , I'm not sure if these are all possible reasons. 


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5070764268

   There are several solutions to that, one of them is read guidelines on the [doc](https://docs.cloudstack.apache.org/en/4.19.1.2/developersguide/developer_guide.html), [hackerbook](https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#cloudstack-development-101) or [(c)wiki](https://cwiki.apache.org/confluence/spaces/CLOUDSTACK/pages/30149438/How+to+build+CloudStack)
   
   the other one is contact me on the cloudstack slack and we’ll find a solution ;)


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-5069872064

   would you be able to test, @davift ?


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] Failed to Move VM to Another Account [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13406:
URL: https://github.com/apache/cloudstack/issues/13406#issuecomment-4727955654

   @daviftorres , I am marking this as a bug but I am not sure whether it is or it is a lack of feature with bad diagnostics. Do you know if this works in older versions?


-- 
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-unsubscribe@cloudstack.apache.org

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