Skip to content

Unable to edit a running instance in Advanced zone with security groups #10719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vladimirpetrov opened this issue Apr 15, 2025 · 0 comments · May be fixed by #10714
Open

Unable to edit a running instance in Advanced zone with security groups #10719

vladimirpetrov opened this issue Apr 15, 2025 · 0 comments · May be fixed by #10714
Labels
Milestone

Comments

@vladimirpetrov
Copy link
Contributor

problem

When an instance is running in Advanced zone with security groups, it cannot be edited vie the UI, only when using API directly.

versions

Found in 4.19.2, when using advanced zone with security groups.

The steps to reproduce the bug

  1. Deploy a VM in advanced zone with security groups
  2. Try to rename it

Result: Request failed (530), here is exception in the management server:

2025-04-15 09:06:04,192 ERROR [c.c.a.ApiServer] (qtp146370526-12:ctx-ec53ebd2 ctx-09ea4db5) (logid:0f9d526b) unhandled exception executing api command: [Ljava.lang.String;@46ee99d8
com.cloud.utils.exception.CloudRuntimeException: Failed to update VM, due to: Virtual machine must be stopped prior to update security groups 
        at org.apache.cloudstack.api.command.user.vm.UpdateVMCmd.execute(UpdateVMCmd.java:287)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:833)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:654)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:349)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:152)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:149)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:108)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)

Image

What to do about it?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants