You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Damodar Reddy T (JIRA)" <ji...@apache.org> on 2014/07/22 11:12:39 UTC

[jira] [Created] (CLOUDSTACK-7153) addNicToVirtualMachine not BaseAsyncCreate but creates an entity

Damodar Reddy T created CLOUDSTACK-7153:
-------------------------------------------

             Summary: addNicToVirtualMachine not BaseAsyncCreate but creates an entity
                 Key: CLOUDSTACK-7153
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7153
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.4.0
            Reporter: Damodar Reddy T
            Assignee: Damodar Reddy T
             Fix For: 4.5.0


addNicToVirtualMachine not BaseAsyncCreate but creates an entity.
We need them to be BaseAsyncCreate so that Eventbus while publishing the completed events can put in the entity id. Right now there is a generic logic where after create function when the id is created its pushed into the context so that Eventbus can use it to publish the created UUID. If its not baseAsyncCreate you will have to go into each api and put the id in the context.
Currently following is the generic code had put in ApiServer.java. We will have to do specifically into your api. Do this only if there is a hard reason not to make it baseasyncCreate
Class entityClass = EventTypes.getEntityClassForEvent(createCmd.getEventType());
if (entityClass != null)
ctx.putContextParameter(entityClass.getName(), objectId);



--
This message was sent by Atlassian JIRA
(v6.2#6252)