1450793561 opened a new issue, #6856:
URL: https://github.com/apache/cloudstack/issues/6856

   An error occurred when changing the vm ip address,Is there any error message 
in the log
   
   Is there any error message in the log
   ----------------------------------------------------------
   ``` 2022-10-28 11:42:56,762 DEBUG [c.c.a.ApiServlet] 
(qtp681094281-20:ctx-c6abcacd) (logid:6f6137c1) ===START===  10.10.130.13 -- 
GET  
nicId=d7a3a110-79f0-4475-8359-ebb41cd8c312&ipaddress=10.10.10.112&command=updateVmNicIp&response=json
   2022-10-28 11:42:56,863 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-11:null) (logid:) SeqA 2-74566: Sending Seq 2-74566:  { 
Ans: , MgmtId: 3189105520456, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2022-10-28 11:42:56,888 DEBUG [c.c.a.ApiServer] 
(qtp681094281-20:ctx-c6abcacd ctx-267ccbf0) (logid:6f6137c1) CIDRs from which 
account 'Acct[2135826d-4dcd-11ed-89f1-02e685806f48-admin] -- Account {"id": 2, 
"name": "admin", "uuid": "2135826d-4dcd-11ed-89f1-02e685806f48"}' is allowed to 
perform API calls: 0.0.0.0/0,::/0
   2022-10-28 11:42:57,108 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:67ea75d5) Add job-271 into job 
monitoring
   2022-10-28 11:42:57,110 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(qtp681094281-20:ctx-c6abcacd ctx-267ccbf0) (logid:6f6137c1) submit async 
job-271, details: AsyncJobVO: {id:271, userId: 2, accountId: 2, instanceType: 
IpAddress, instanceId: null, cmd: 
org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd, cmdInfo: 
{"ipaddress":"10.10.10.112","response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"526","nicId":"d7a3a110-79f0-4475-8359-ebb41cd8c312","ctxDetails":"{\"interface
 
com.cloud.vm.Nic\":\"d7a3a110-79f0-4475-8359-ebb41cd8c312\"}","ctxAccountId":"2","cmdEventType":"NET.IPASSIGN"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 3189105520456, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null, removed: null}
   2022-10-28 11:42:57,113 DEBUG [c.c.a.ApiServlet] 
(qtp681094281-20:ctx-c6abcacd ctx-267ccbf0) (logid:6f6137c1) ===END===  
10.10.130.13 -- GET  
nicId=d7a3a110-79f0-4475-8359-ebb41cd8c312&ipaddress=10.10.10.112&command=updateVmNicIp&response=json
   2022-10-28 11:42:57,113 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:1f117bf8) Executing 
AsyncJobVO: {id:271, userId: 2, accountId: 2, instanceType: IpAddress, 
instanceId: null, cmd: 
org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd, cmdInfo: 
{"ipaddress":"10.10.10.112","response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"526","nicId":"d7a3a110-79f0-4475-8359-ebb41cd8c312","ctxDetails":"{\"interface
 
com.cloud.vm.Nic\":\"d7a3a110-79f0-4475-8359-ebb41cd8c312\"}","ctxAccountId":"2","cmdEventType":"NET.IPASSIGN"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 3189105520456, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null, removed: null}
   2022-10-28 11:42:57,140 DEBUG [c.c.v.UserVmManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271 ctx-fb3e8669) (logid:1f117bf8) Calling 
the ip allocation ...
   2022-10-28 11:42:57,145 DEBUG [c.c.a.ApiServlet] 
(qtp681094281-332:ctx-e52f1810) (logid:00e79a4b) ===START===  10.10.130.13 -- 
GET  
jobId=1f117bf8-15ab-41e1-9884-e2c764caab84&command=queryAsyncJobResult&response=json
   2022-10-28 11:42:57,159 DEBUG [c.c.u.d.T.Transaction] 
(API-Job-Executor-2:ctx-4253846a job-271 ctx-fb3e8669) (logid:1f117bf8) Rolling 
back the transaction: Time = 14 Name =  API-Job-Executor-2; called by 
-TransactionLegacy.rollback:888-TransactionLegacy.removeUpTo:831-TransactionLegacy.close:655-Transaction.execute:38-IpAddressManagerImpl.listAvailablePublicIps:824-IpAddressManagerImpl.fetchNewPublicIp:811-IpAddressManagerImpl.fetchNewPublicIp:803-IpAddressManagerImpl.assignPublicIpAddress:784-IpAddressManagerImpl.allocatePublicIpForGuestNic:2283-UserVmManagerImpl.updateNicIpForVirtualMachine:1708-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:62
   2022-10-28 11:42:57,159 DEBUG [c.c.a.ApiServer] 
(qtp681094281-332:ctx-e52f1810 ctx-0c494d74) (logid:00e79a4b) CIDRs from which 
account 'Acct[2135826d-4dcd-11ed-89f1-02e685806f48-admin] -- Account {"id": 2, 
"name": "admin", "uuid": "2135826d-4dcd-11ed-89f1-02e685806f48"}' is allowed to 
perform API calls: 0.0.0.0/0,::/0
   2022-10-28 11:42:57,161 ERROR [c.c.v.UserVmManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271 ctx-fb3e8669) (logid:1f117bf8) 
Allocating ip to guest nic d7a3a110-79f0-4475-8359-ebb41cd8c312 failed, for 
insufficient address capacity
   2022-10-28 11:42:57,163 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:1f117bf8) Complete async 
job-271, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Failed
 to update ip address on vm NIC. Refer to server logs for details."}
   2022-10-28 11:42:57,166 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:1f117bf8) Publish async 
job-271 complete on message bus
   2022-10-28 11:42:57,166 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:1f117bf8) Wake up jobs related 
to job-271
   2022-10-28 11:42:57,166 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-2:ctx-4253846a job-271) (logid:1f117bf8) Update db status for 
job-271
   
   ```
   
   
![微信图片_20221028115118](https://user-images.githubusercontent.com/31468018/198498462-46ee8170-e42b-4085-b792-9e2ada584b67.jpg)
   
![微信图片_20221028115126](https://user-images.githubusercontent.com/31468018/198498481-0fcea66d-e26d-447b-a76e-fde409dbe939.jpg)
   
   


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