nvazquez commented on PR #7712:
URL: https://github.com/apache/cloudstack/pull/7712#issuecomment-1752219838
Hi @itsayushpandey I've tried importing an unmanaged instance but I get a
different failure this time: (tested on 2xKVM Oracle Linux 8 env)
````
2023-10-09 00:48:44,601 DEBUG [c.c.a.ApiServlet]
(qtp649329985-21:ctx-7841d8c0) (logid:cf53b68b) ===START=== 172.30.205.3 --
GET
name=i-2-5-VM&clusterid=7efee018-9300-4b01-b9be-e6eaffbb74c5&displayname=import&serviceofferingid=7138dcd2-e85b-47b4-8c4a-2f5684b0779a&hostname=import&templateid=00605e48-6639-11ee-80ce-1e00b100022f&nicnetworklist[0].nic=0&nicnetworklist[0].network=92533133-1361-4bf7-a109-31ea6456b961&nicipaddresslist[0].nic=0&nicipaddresslist[0].ip4Address=auto&command=importUnmanagedInstance&response=json
...
2023-10-09 00:48:44,628 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:526d3077) Add job-40 into job
monitoring
2023-10-09 00:48:44,631 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(qtp649329985-21:ctx-7841d8c0 ctx-d6e0c682) (logid:cf53b68b) submit async
job-40, details: AsyncJobVO: {id:40, userId: 2, accountId: 2, instanceType:
None, instanceId: null, cmd:
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd, cmdInfo:
{"httpmethod":"GET","clusterid":"7efee018-9300-4b01-b9be-e6eaffbb74c5","templateid":"00605e48-6639-11ee-80ce-1e00b100022f","nicipaddresslist[0].ip4Address":"auto","ctxAccountId":"2","cmdEventType":"VM.IMPORT","hostname":"import","nicipaddresslist[0].nic":"0","nicnetworklist[0].network":"92533133-1361-4bf7-a109-31ea6456b961","serviceofferingid":"7138dcd2-e85b-47b4-8c4a-2f5684b0779a","response":"json","ctxUserId":"2","displayname":"import","name":"i-2-5-VM","ctxStartEventId":"115","nicnetworklist[0].nic":"0","ctxDetails":"{\"interface
com.cloud.org.Cluster\":\"7efee018-9300-4b01-b9be-e6eaffbb74c5\",\"interface
com.cloud.offering.ServiceOffering\":\"7138dcd2-e85b-47b
4-8c4a-2f5684b0779a\",\"interface
com.cloud.template.VirtualMachineTemplate\":\"00605e48-6639-11ee-80ce-1e00b100022f\"}"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 32988318401071, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null, removed: null}
2023-10-09 00:48:44,632 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Executing
AsyncJobVO: {id:40, userId: 2, accountId: 2, instanceType: None, instanceId:
null, cmd:
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd, cmdInfo:
{"httpmethod":"GET","clusterid":"7efee018-9300-4b01-b9be-e6eaffbb74c5","templateid":"00605e48-6639-11ee-80ce-1e00b100022f","nicipaddresslist[0].ip4Address":"auto","ctxAccountId":"2","cmdEventType":"VM.IMPORT","hostname":"import","nicipaddresslist[0].nic":"0","nicnetworklist[0].network":"92533133-1361-4bf7-a109-31ea6456b961","serviceofferingid":"7138dcd2-e85b-47b4-8c4a-2f5684b0779a","response":"json","ctxUserId":"2","displayname":"import","name":"i-2-5-VM","ctxStartEventId":"115","nicnetworklist[0].nic":"0","ctxDetails":"{\"interface
com.cloud.org.Cluster\":\"7efee018-9300-4b01-b9be-e6eaffbb74c5\",\"interface
com.cloud.offering.ServiceOffering\":\"7138dcd2-e85b-47b4-8c4a-2f5684b0779a\",
\"interface
com.cloud.template.VirtualMachineTemplate\":\"00605e48-6639-11ee-80ce-1e00b100022f\"}"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 32988318401071, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null, removed: null}
2023-10-09 00:48:44,632 DEBUG [c.c.a.ApiServlet]
(qtp649329985-21:ctx-7841d8c0 ctx-d6e0c682) (logid:cf53b68b) ===END===
172.30.205.3 -- GET
name=i-2-5-VM&clusterid=7efee018-9300-4b01-b9be-e6eaffbb74c5&displayname=import&serviceofferingid=7138dcd2-e85b-47b4-8c4a-2f5684b0779a&hostname=import&templateid=00605e48-6639-11ee-80ce-1e00b100022f&nicnetworklist[0].nic=0&nicnetworklist[0].network=92533133-1361-4bf7-a109-31ea6456b961&nicipaddresslist[0].nic=0&nicipaddresslist[0].ip4Address=auto&command=importUnmanagedInstance&response=json
2023-10-09 00:48:44,646 DEBUG [c.c.u.AccountManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40 ctx-536981c6) (logid:db87c82e) Access
granted to Account
[{"accountName":"admin","id":2,"uuid":"29a6621b-6639-11ee-80ce-1e00b100022f"}]
to Service offering {"id":1,"name":"Small
Instance","uuid":"7138dcd2-e85b-47b4-8c4a-2f5684b0779a"}. by
AffinityGroupAccessChecker
2023-10-09 00:48:44,648 TRACE [o.a.c.a.c.a.v.ImportUnmanagedInstanceCmd]
(API-Job-Executor-31:ctx-96ee2279 job-40 ctx-536981c6) (logid:db87c82e) nic,
'0', goes on net, '92533133-1361-4bf7-a109-31ea6456b961'
2023-10-09 00:48:44,651 TRACE [o.a.c.a.c.a.v.ImportUnmanagedInstanceCmd]
(API-Job-Executor-31:ctx-96ee2279 job-40 ctx-536981c6) (logid:db87c82e) nic,
'0', gets ip, 'auto'
2023-10-09 00:48:44,653 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Complete async
job-40, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed
to find unmanaged vm with name: i-2-5-VM in cluster:
7efee018-9300-4b01-b9be-e6eaffbb74c5"}
2023-10-09 00:48:44,654 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Publish async job-40
complete on message bus
2023-10-09 00:48:44,654 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Wake up jobs related
to job-40
2023-10-09 00:48:44,654 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Update db status for
job-40
2023-10-09 00:48:44,655 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Wake up jobs joined
with job-40 and disjoin all subjobs created from job- 40
2023-10-09 00:48:44,659 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-31:ctx-96ee2279 job-40) (logid:db87c82e) Done executing
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd for job-40
````
Can you please check?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]