You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/10/28 03:55:05 UTC
[GitHub] [cloudstack] 1450793561 opened a new issue, #6856: Failed to update ip address on vm NIC. Refer to server logs for details
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
```


--
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: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1294781684
@1450793561 the message is that you don't have enough address capacity:
```
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
```
this seems strange given your description/screenshots, but the underlying message is
```
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
```
At least the messaage isn´t clear and something can be improved there, but it seems also there is something wrong with the ip address allocation in your system. Does the user have access rights to the addresses listed? Is the user in a dedicated network, or are those addresses dedicated?
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1296324996
I am not sure what you want @1450793561 , can you please describe your use case in more detail? (the VR being re-created would indeed reprogram it, but a reboot shouldn´t) the DNSses are properties of the zone/datacenter.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] 1450793561 commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
1450793561 commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1296442955
@DaanHoogland
ok,The ip change above has been solved. Now it's a new problem.
I want to change the /etc/resolv.conf file from 10.10.10.162 to 10.10.10.79(dns). After the system restarts, the file is changed to 10.10.10.162. 10.10.10.162 This ip address looks like it belongs to a virtual router.How do I configure it?in DefaultSharedNetworkOfferingWithSGService
The content of the file before the modification is as follows
```
[root@vm-9e183404-7b2b-494d-a1ea-32da77893608 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search cs1cloud.internal
nameserver 10.10.10.162
nameserver 223.5.5.5
[root@vm-9e183404-7b2b-494d-a1ea-32da77893608 ~]#
```
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] 1450793561 commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
1450793561 commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1295719962
I want to configure static ip and my own dns. How do I configure it?in DefaultSharedNetworkOfferingWithSGService
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] 1450793561 commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
1450793561 commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1296442801
@DaanHoogland
ok,The ip change above has been solved. Now it's a new problem.
I want to change the /etc/resolv.conf file from 10.10.10.162 to 10.10.10.79(dns). After the system restarts, the file is changed to 10.10.10.162. 10.10.10.162 This ip address looks like it belongs to a virtual router.How do I configure it?in DefaultSharedNetworkOfferingWithSGService
The content of the file before the modification is as follows
```
[root@vm-9e183404-7b2b-494d-a1ea-32da77893608 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search cs1cloud.internal
nameserver 10.10.10.162
nameserver 223.5.5.5
[root@vm-9e183404-7b2b-494d-a1ea-32da77893608 ~]#
```
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6856:
URL: https://github.com/apache/cloudstack/issues/6856#issuecomment-1296591857
@1450793561 please don´t try to solve multiple problems in on issue ticket.
You are trying to change a global configuration in a VR. It will always be overwritten on any config change in the network. Sounds like you're trying to use a feature that doesn´t exist. The best option you have is to have a configuration system constantly check and update the router. Or, of course, implement it as a new feature in CloudStack.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] 1450793561 closed issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
Posted by GitBox <gi...@apache.org>.
1450793561 closed issue #6856: Failed to update ip address on vm NIC. Refer to server logs for details
URL: https://github.com/apache/cloudstack/issues/6856
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org