Skip to content

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

Open
@vladimirpetrov

Description

@vladimirpetrov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions