cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Aradhye (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5342) Add NIC to virtual machine fails in KVM
Date Tue, 17 Dec 2013 07:15:09 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13850200#comment-13850200
] 

Gaurav Aradhye commented on CLOUDSTACK-5342:
--------------------------------------------

Observed this error in failing test cases: "Plug Nic failed due to org.libvirt.LibvirtException:
internal error unable to execut
e QEMU command 'device_add': Duplicate ID 'net1' for device","wait":0}}]"


Log:

2013-12-16 22:36:43,708 DEBUG [c.c.a.t.Request] (AgentManager-Handler-14:null) Seq 2-2047288714:
Processing:  { Ans: , MgmtId: 29066118877352, via: 2, Ver: v1,
Flags: 10, [{"com.cloud.agent.api.Answer":{"result":true,"wait":0}}] }
2013-12-16 22:36:43,708 DEBUG [c.c.a.t.Request] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Seq 2-2047288714: Received:  { Ans: , MgmtId: 29066118877352, via: 2
, Ver: v1, Flags: 10, { Answer } }
2013-12-16 22:36:43,710 DEBUG [c.c.n.NetworkModelImpl] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Service SecurityGroup is not supported in the network id=674
2013-12-16 22:36:43,710 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Nic is prepared successfully for vm VM[User|QA-02a39b1
f-9a95-4d4a-b71e-0556802d9b29] in network Ntwk[674|Guest|229]
2013-12-16 22:36:43,714 DEBUG [c.c.v.VirtualMachineManagerImpl] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Plugging nic for vm VM[User|QA-02a39b1f-9a95-4d4a-b7
1e-0556802d9b29] in network Ntwk[674|Guest|229]
2013-12-16 22:36:43,717 DEBUG [c.c.a.t.Request] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Seq 1-641144810: Sending  { Cmd , MgmtId: 29066118877352, via: 1(Rac
k2Host11.lab.vmops.com), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.PlugNicCommand":{"nic":{"deviceId":1,"networkRateMbps":200,"defaultNic":false,"uuid":"da
c139ff-7f39-46d9-90b1-92344be4e07a","ip":"10.1.1.203","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:66:70:00:03","dns1":"8.8.8.8","broadcastType":
"Vlan","type":"Guest","broadcastUri":"vlan://2340","isolationUri":"vlan://2340","isSecurityGroupEnabled":false},"instanceName":"i-548-957-QA","vmType":"User","w
ait":0}}] }
2013-12-16 22:36:44,143 DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:null) Seq 1-641144810:
Processing:  { Ans: , MgmtId: 29066118877352, via: 1, Ver: v1, Fl
ags: 110, [{"com.cloud.agent.api.PlugNicAnswer":{"result":false,"details":" Plug Nic failed
due to org.libvirt.LibvirtException: internal error unable to execut
e QEMU command 'device_add': Duplicate ID 'net1' for device","wait":0}}] }
2013-12-16 22:36:44,143 DEBUG [c.c.a.m.AgentAttache] (AgentManager-Handler-1:null) Seq 1-641144810:
No more commands found
2013-12-16 22:36:44,143 DEBUG [c.c.a.t.Request] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Seq 1-641144810: Received:  { Ans: , MgmtId: 29066118877352, via: 1,
 Ver: v1, Flags: 110, { PlugNicAnswer } }
2013-12-16 22:36:44,144 WARN  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Unable to plug nic for vm i-548-957-QA
2013-12-16 22:36:44,144 WARN  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Failed to plug nic to the vm VM[User|QA-02a39b1f-9a9
5-4d4a-b71e-0556802d9b29] in network Ntwk[674|Guest|229]
2013-12-16 22:36:44,144 DEBUG [c.c.v.VirtualMachineManagerImpl] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Removing nic NicProfile[1874-957-null-10.1.1.203-vla
n://2340 from vm VM[User|QA-02a39b1f-9a95-4d4a-b71e-0556802d9b29] as nic plug failed on the
backend
2013-12-16 22:36:44,148 DEBUG [c.c.n.NetworkModelImpl] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Service SecurityGroup is not supported in the network id=674
2013-12-16 22:36:44,151 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Changing active number of nics for network id=674 on -
1
2013-12-16 22:36:44,156 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Asking VirtualRouter to release NicProfile[1874-957-nu
ll-10.1.1.203-null
2013-12-16 22:36:44,160 DEBUG [c.c.n.NetworkModelImpl] (Job-Executor-23:ctx-52f7826d ctx-4d9cde05)
Service SecurityGroup is not supported in the network id=674
2013-12-16 22:36:44,188 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Removed nic id=1874
2013-12-16 22:36:44,189 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-23:ctx-52f7826d
ctx-4d9cde05) Revoving nic secondary ip entry ...
2013-12-16 22:36:44,189 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-23:ctx-52f7826d)
Unexpected exception while executing org.apache.cloudstack.api.comman
d.user.vm.AddNicToVMCmd
com.cloud.utils.exception.CloudRuntimeException: Unable to add NIC to VM[User|QA-02a39b1f-9a95-4d4a-b71e-0556802d9b29]
        at com.cloud.vm.UserVmManagerImpl.addNicToVirtualMachine(UserVmManagerImpl.java:1047)
        at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy171.addNicToVirtualMachine(Unknown Source)
        at org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd.execute(AddNicToVMCmd.java:110)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
        at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
        at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2013-12-16 22:36:44,191 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-23:ctx-52f7826d)
Complete async job-3721, jobStatus: FAILED, resultCode: 530, resu
lt: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Unable
to add NIC to VM[User|QA-02a39b1f-9a95-4d4a-b71
e-0556802d9b29]"}
2013-12-16 22:36:44,198 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-23:ctx-52f7826d)
Done executing org.apache.cloudstack.api.command.user.vm.AddNicTo
VMCmd for job-3721
2013-12-16 22:36:44,202 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-23:ctx-52f7826d)
Remove job-3721 from job monitoring
2013-12-16 22:36:45,583 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-1:ctx-6c55c9b2) Ping
from 35(200-NetscalerVPXLoadBalancer-10.223.52.6)
2013-12-16 22:36:46,776 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-fd4b43a7) ===START===
 10.223.240.194 -- GET  signature=vUXGmQhBjHoL3FCx07t2yML05pU%3D&ap
iKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=queryAsyncJobResult&response=json&jobid=9bb20f08-4c50-4ee6-a
310-786533b99149
2013-12-16 22:36:46,791 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-fd4b43a7 ctx-863f2f9a
ctx-f8d31a58) ===END===  10.223.240.194 -- GET  signature=vUXGmQhBj
HoL3FCx07t2yML05pU%3D&apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=queryAsyncJobResult&response=json&jo
bid=9bb20f08-4c50-4ee6-a310-786533b99149
2013-12-16 22:36:46,809 DEBUG [c.c.a.ApiServlet] (catalina-exec-15:ctx-157552d7) ===START===
 10.223.240.194 -- GET  apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxf
pP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&id=c202be18-403e-4a8a-9df2-31ab61b7bc1e&state=Disabled&command=updateNetworkOffering&signature=3iR3KVuLLpo2KB
8iXDbJPN6e0xQ%3D&response=json
2013-12-16 22:36:46,856 DEBUG [c.c.a.ApiServlet] (catalina-exec-15:ctx-157552d7 ctx-9be62a32
ctx-45ca9b4c) ===END===  10.223.240.194 -- GET  apiKey=iFe7cNTVuApv
Fr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&id=c202be18-403e-4a8a-9df2-31ab61b7bc1e&state=Disabled&command=updateNetworkOffering&
signature=3iR3KVuLLpo2KB8iXDbJPN6e0xQ%3D&response=json
2013-12-16 22:36:46,860 DEBUG [c.c.a.ApiServlet] (catalina-exec-13:ctx-ffbc452b) ===START===
 10.223.240.194 -- GET  apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxf
pP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&id=fa9af5fb-1b8f-4cec-beaa-3beb0e8b8c8a&state=Disabled&command=updateNetworkOffering&signature=ZmctPajTcc8%2B
orzBsg%2FkfFjIJ9Y%3D&response=json
2013-12-16 22:36:46,896 DEBUG [c.c.a.ApiServlet] (catalina-exec-13:ctx-ffbc452b ctx-cfc0de06
ctx-7f1b5e9e) ===END===  10.223.240.194 -- GET  apiKey=iFe7cNTVuApv
Fr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&id=fa9af5fb-1b8f-4cec-beaa-3beb0e8b8c8a&state=Disabled&command=updateNetworkOffering&
signature=ZmctPajTcc8%2BorzBsg%2FkfFjIJ9Y%3D&response=json
2013-12-16 22:36:46,900 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-e70b6a8a) ===START===
 10.223.240.194 -- GET  signature=nKyuaWZ6Y%2Fwsnl6UZwUEhDCQ%2FLo%3D
&apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=deleteAccount&id=f0c22233-7f41-4e13-bbfb-6a65327d7473&res
ponse=json
2013-12-16 22:36:46,931 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-4:ctx-e70b6a8a
ctx-4bfba511 ctx-d566a4dc) submit async job-3722, details: AsyncJo
bVO {id:3722, userId: 2, accountId: 2, instanceType: Account, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd,
cmdInfo:
{"id":"f0c22233-7f41-4e13-bbfb-6a65327d7473","response":"json","cmdEventType":"ACCOUNT.DELETE","ctxUserId":"2","httpmethod":"GET","ctxAccountId":"2","ctxStartEv
entId":"18450","apiKey":"iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg","signature":"nKyuaWZ6Y/wsnl6UZwUEhDCQ/Lo\u003d"
}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
29066118877352, completeMsid: null, lastUpdated: null, lastPolle
d: null, created: null}
2013-12-16 22:36:46,932 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-e70b6a8a ctx-4bfba511
ctx-d566a4dc) ===END===  10.223.240.194 -- GET  signature=nKyuaWZ6Y%
2Fwsnl6UZwUEhDCQ%2FLo%3D&apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=deleteAccount&id=f0c22233-7f41-4e
13-bbfb-6a65327d7473&response=json
2013-12-16 22:36:46,936 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-541bc22c) ===START===
 10.223.240.194 -- GET  signature=evdXdWYHQPu%2FB2ufZlnLdkqobk0%3D&
apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=queryAsyncJobResult&response=json&jobid=38bb748f-5ed2-46d7
-b140-5c2b5200540b
2013-12-16 22:36:46,949 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-541bc22c ctx-f2e63ffd
ctx-8d0c8eba) ===END===  10.223.240.194 -- GET  signature=evdXdWYHQ
Pu%2FB2ufZlnLdkqobk0%3D&apiKey=iFe7cNTVuApvFr25RP0SvbiqloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg&command=queryAsyncJobResult&response=json&
jobid=38bb748f-5ed2-46d7-b140-5c2b5200540b
2013-12-16 22:36:46,960 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-86:ctx-47b6aeef)
Add job-3722 into job monitoring
2013-12-16 22:36:46,960 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-86:ctx-47b6aeef)
Executing AsyncJobVO {id:3722, userId: 2, accountId: 2, instanceT
ype: Account, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd,
cmdInfo: {"id":"f0c22233-7f41-4e13-bbfb-6a65327d7473","re
sponse":"json","cmdEventType":"ACCOUNT.DELETE","ctxUserId":"2","httpmethod":"GET","ctxAccountId":"2","ctxStartEventId":"18450","apiKey":"iFe7cNTVuApvFr25RP0Svbi
qloIB5qhQyxxfpP-psXwXqTZ75WUvk9D93VgtJkPLrPPSH4tfFmH-h_cTifMsbg","signature":"nKyuaWZ6Y/wsnl6UZwUEhDCQ/Lo\u003d"},
cmdVersion: 0, status: IN_PROGRESS, processSt
atus: 0, resultCode: 0, result: null, initMsid: 29066118877352, completeMsid: null, lastUpdated:
null, lastPolled: null, created: null}
2013-12-16 22:36:47,004 DEBUG [c.c.u.AccountManagerImpl] (Job-Executor-86:ctx-47b6aeef ctx-d566a4dc)
Removed account 548

> Add NIC to virtual machine fails in KVM
> ---------------------------------------
>
>                 Key: CLOUDSTACK-5342
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5342
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Network Controller
>    Affects Versions: 4.3.0
>         Environment: KVM advanced
>            Reporter: Gaurav Aradhye
>            Assignee: Gaurav Aradhye
>            Priority: Blocker
>             Fix For: 4.3.0
>
>
> Add network to VM test cases fail in KVM with following error.
> Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext : u'Unable to add
NIC to VM[User|VM-e9350ee5-bf2e-418c-91d6-1535dcb4d488]'}
> The same test cases execute successfully on XenServer. As per the feature specification
(see https://cwiki.apache.org/confluence/display/CLOUDSTACK/Add+Remove+Networks+to+VMs), "Add
network to VM" feature should be supported on KVM too.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message