SadiJr commented on PR #7213:
URL: https://github.com/apache/cloudstack/pull/7213#issuecomment-1686775981

   > @SadiJr
   > 
   > Could you please provide a sample snippet of the new improved logs so that 
i can verify it.
   
   @kiranchavala sorry for the delay to answer you, sure I can provide some 
samples:
   
   ```log
   2023-08-10 18:14:15,032 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Executing 
AsyncJobVO: {id:7209, userId: 2, accountId: 2, instanceType: None, instanceId: 
null, cmd: 
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd, cmdInfo: 
{"details[0].cpuNumber":"1","details[0].cpuSpeed":"1000","forced":"true","httpmethod":"GET","clusterid":"d169dc67-e57d-4376-83ac-2e26d4b5c8f9","ctxAccountId":"2","details[0].memory":"512","cmdEventType":"VM.IMPORT","nicnetworklist[0].network":"6e3d7483-c583-4161-b338-2ebf726fe6d9","serviceofferingid":"8975aefa-1ad2-4164-a628-a173e30da928","response":"json","ctxUserId":"2","displayname":"aaaaa","name":"i-2-855-VM","ctxStartEventId":"16014","nicnetworklist[0].nic":"Network
 adapter 2","ctxDetails":"{\"interface 
com.cloud.offering.ServiceOffering\":\"8975aefa-1ad2-4164-a628-a173e30da928\",\"interface
 com.cloud.org.Cluster\":\"d169dc67-e57d-4376-83ac-2e26d4b5c8f9\"}"}, 
cmdVersion: 0, st
 atus: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 
90520742621639, completeMsid: null, lastUpdated: null, lastPolled: null, 
created: null, removed: null}
   2023-08-10 18:14:15,047 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) 
Access granted to Account 
{"accountName":"admin","domainId":1,"id":2,"uuid":"9b06bb06-8b8f-11ed-92e4-525400b571c7"}
 to Service offering 
{"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}. by 
AffinityGroupAccessChecker
   2023-08-10 18:14:15,049 TRACE [o.a.c.a.c.a.v.ImportUnmanagedInstanceCmd] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) nic, 
'Network adapter 2', goes on net, '6e3d7483-c583-4161-b338-2ebf726fe6d9'
   2023-08-10 18:14:15,137 DEBUG [c.c.h.v.r.VmwareResource] 
(DirectAgent-68:ctx-63177ba8) (logid:30cc0e5d) Executing resource command 
GetUnmanagedInstancesCommand: [].
   2023-08-10 18:14:15,145 DEBUG [c.c.h.v.m.HostMO] 
(DirectAgent-68:ctx-63177ba8 172.16.71.201, job-7209, cmd: 
GetUnmanagedInstancesCommand) (logid:30cc0e5d) find VM hypervisor name: 
i-2-855-VM on host
   2023-08-10 18:14:15,145 INFO  [c.c.h.v.m.HostMO] 
(DirectAgent-68:ctx-63177ba8 172.16.71.201, job-7209, cmd: 
GetUnmanagedInstancesCommand) (logid:30cc0e5d) VM hypervisor name: i-2-855-VM 
not found in host cache
   2023-08-10 18:14:15,146 DEBUG [c.c.h.v.m.HostMO] 
(DirectAgent-68:ctx-63177ba8 172.16.71.201, job-7209, cmd: 
GetUnmanagedInstancesCommand) (logid:30cc0e5d) load VM cache on host
   2023-08-10 18:14:15,275 INFO  [c.c.h.v.r.VmwareResource] 
(DirectAgent-68:ctx-63177ba8 172.16.71.201, job-7209, cmd: 
GetUnmanagedInstancesCommand) (logid:30cc0e5d) i-2-855-VM Hard disk 1 
20,971,520 KB 774-3001 20971520 ide
   2023-08-10 18:14:15,286 ERROR [c.c.h.v.r.VmwareResource] 
(DirectAgent-68:ctx-63177ba8 172.16.71.201, job-7209, cmd: 
GetUnmanagedInstancesCommand) (logid:30cc0e5d) com.vmware.vim25.VirtualE1000 
com.vmware.vim25.VirtualEthernetCardNetworkBackingInfo 02:00:48:1e:00:05
   2023-08-10 18:14:15,302 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-68:ctx-63177ba8) (logid:30cc0e5d) Seq 14-1854920096523231189: 
Response Received: 
   2023-08-10 18:14:15,302 DEBUG [c.c.a.t.Request] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) Seq 
14-1854920096523231189: Received:  { Ans: , MgmtId: 90520742621639, via: 
14(172.16.71.201), Ver: v1, Flags: 10, { GetUnmanagedInstancesAnswer } }
   2023-08-10 18:14:15,302 DEBUG [c.c.a.m.AgentManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) 
Details from executing class com.cloud.agent.api.GetUnmanagedInstancesCommand: 
   2023-08-10 18:14:15,323 DEBUG [o.a.c.v.UnmanagedVMsManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) 
Trying to import VM 
[{"name":"i-2-855-VM","internalCSName":"i-2-855-VM","powerState":"PowerOn","cpuCores":1,"cpuCoresPerSocket":1,"memory":512,"cpuSpeed":0,"operatingSystemId":"ubuntu64Guest","operatingSystem":"Ubuntu
 Linux (64-bit)","disks":[{"diskId":"774-3001","label":"Hard disk 
1","capacity":21474836480,"fileBaseName":"ROOT-855","imagePath":"[15169ba7ad773fa794538a2c56f514e5]
 
i-2-855-VM/ROOT-855.vmdk","controller":"ide","controllerUnit":0,"position":1,"chainInfo":"{\"diskDeviceBusName\":\"ide0:1\",\"diskChain\":[\"[15169ba7ad773fa794538a2c56f514e5]
 i-2-855-VM/ROOT-855.vmdk\",\"[15169ba7ad773fa794538a2c56f514e5] 
9131f0ab947935578b4495625288ed0f/9131f0ab947935578b4495625288ed0f.vmdk\"]}","datastoreName":"15169ba7ad773fa794538a2c56f514e5","datastoreHost":"192.168.122.250","datastorePath":"/mnt/primary/vmware","datastoreType":"NFS"}],"nics":[{"n
 icId":"Network adapter 
2","adapterType":"E1000","macAddress":"02:00:48:1e:00:05","network":"cloud.guest.302.200.1-vSwitch0","vlan":302,"pciSlot":"com.vmware.vim25.VirtualDevicePciBusSlotInfo@443641b5"}]}]
 with name ["i-2-855-VM"], in zone [Zone {"id": "2", "name": "zone-01", "uuid": 
"d37205b9-ee1f-409a-acfe-dc27f8c2c323"}], cluster [Cluster {id: "2", name: 
"172.16.71.220/floripa-01/cluster-01", uuid: 
"d169dc67-e57d-4376-83ac-2e26d4b5c8f9"}], and host [Host 
{"id":14,"name":"172.16.71.201","type":"Routing","uuid":"24d2fea6-a81a-4e7b-a658-c20cf1c40ccc"}],
 using template [Template 
{"format":"ISO","id":213,"uniqueName":"system-default-vm-import-dummy-template.iso"}],
 service offering [Service offering 
{"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}.], disks 
map [{}], NICs map [{"Network adapter 2":345}] and details 
[{"cpuNumber":"1","memory":"512","cpuSpeed":"1000"}].
   2023-08-10 18:14:15,325 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) 
Access granted to Account 
{"accountName":"admin","domainId":1,"id":2,"uuid":"9b06bb06-8b8f-11ed-92e4-525400b571c7"}
 to Service offering 
{"id":37,"name":"cus","uuid":"8975aefa-1ad2-4164-a628-a173e30da928"}. by 
AffinityGroupAccessChecker
   2023-08-10 18:14:15,330 ERROR [o.a.c.v.UnmanagedVMsManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209 ctx-c401e4e0) (logid:30cc0e5d) 
Failed to import Unmanaged VM [i-2-855-VM] because the service offering 
[8975aefa-1ad2-4164-a628-a173e30da928] is not compatible due to [Invalid memory 
value, specify a value between 1024 and 69632].
   2023-08-10 18:14:15,335 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Complete async 
job-7209, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed
 to import Unmanaged VM [i-2-855-VM] because the service offering 
[8975aefa-1ad2-4164-a628-a173e30da928] is not compatible due to [Invalid memory 
value, specify a value between 1024 and 69632]."}
   2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Publish async 
job-7209 complete on message bus
   2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Wake up jobs 
related to job-7209
   2023-08-10 18:14:15,337 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Update db status 
for job-7209
   2023-08-10 18:14:15,338 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Wake up jobs 
joined with job-7209 and disjoin all subjobs created from job- 7209
   2023-08-10 18:14:15,343 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Done executing 
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd for 
job-7209
   2023-08-10 18:14:15,343 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-32:ctx-e05a48cd job-7209) (logid:30cc0e5d) Remove job-7209 
from job monitoring
   ```
   
   Please tell me if you need more information.


-- 
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]

Reply via email to