cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Cannot deploy new vm in isolated network 4.11.3

Open ustcweizhou opened this issue 7 years ago • 5 comments

When I did (1) created an isolated network in 4.11.2.0, and associate some public IPs. (2) upgraded cloudstack to 4.11.3.0, (3) restart network with cleanup to get new virtual router, (4) tried to deploy a new vm but failed

ISSUE TYPE
  • Bug Report
COMPONENT NAME
Virtual router
CLOUDSTACK VERSION
4.11.3.0
CONFIGURATION

isolated network in advanced zone
multiple public IPs in same subnet are used 
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
see the first lines
EXPECTED RESULTS
deploy vm successfully
ACTUAL RESULTS
exception when apply dhcp entry in virtual routers


2019-06-29 19:53:41,316 DEBUG [c.c.a.t.Request] (AgentManager-Handler-15:null) (logid:) Seq 1-6565966781729472809: Processing:  { Ans: , MgmtId: 2486323791686, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.routing.GroupAnswer":{"results":["null - success: Creating file in VR, with ip: 169.254.3.232, file: vm_dhcp_entry.json.4a69380c-ed8f-4df3-a842-ac0634482a82","null - success: Error: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\nError: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\nError: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\nError: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\nError: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\nError: argument \"table\" is wrong: node type value is invalid\n\nRTNETLINK answers: File exists\n"],"result":true,"wait":0}}] }

ustcweizhou avatar Jun 29 '19 20:06 ustcweizhou

@rhtyd I think this is a blocker issue in 4.11.3 It is related to 2f268fbb52203cae96d0cff57c189600abab1390

It works if I revert the following line https://github.com/apache/cloudstack/blob/4.11/systemvm/debian/opt/cloud/bin/cs/CsAddress.py#L521

if self.get_type() in ["public"]:

back to

if self.get_type() in ["public"] and (len(self.iplist) == 1):

ustcweizhou avatar Jun 29 '19 20:06 ustcweizhou

Thanks @ustcweizhou I'll get back to you. Feel free to send a PR.

yadvr avatar Jun 29 '19 20:06 yadvr

@rhtyd I am not sure if it will break something. @richardlawley can you please have a look ?

ustcweizhou avatar Jun 29 '19 20:06 ustcweizhou

@rhtyd I tested again. but cannot reproduce it ,weird. close this issue then.

ustcweizhou avatar Jun 30 '19 07:06 ustcweizhou

Thanks for confirming @ustcweizhou

yadvr avatar Jun 30 '19 11:06 yadvr