You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "levindecaro (via GitHub)" <gi...@apache.org> on 2025/09/06 14:48:19 UTC
[I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
levindecaro opened a new issue, #11592:
URL: https://github.com/apache/cloudstack/issues/11592
### problem
Before the upgrade to version 4.21.0, the DHCP server for VPC Guest Network tier included both the Guest Network Gateway and the DNS server defined in the zone as nameservers. However, after upgrading from version 4.20.1 to 4.21.0, the DHCP server only announces the DNS server defined in the zone. Consequently, all internal DNS resolutions fail due to this change.
in 4.20.1 VPC VR
/etc/dnsmasq.d/cloud.conf
```
dhcp-option=tag:interface-eth0-0,6,10.2.1.1,172.17.2.1
```
in 4.21.0 VPC VR
/etc/dnsmasq.d/cloud.conf
```
dhcp-option=tag:interface-eth0-0,6,172.17.2.1
```
### versions
ACS: 4.20.1
OS: OL9 x86_64
hypervisors: KVM
storage: NFS(SharedMountPoint)
network: vxlan
### The steps to reproduce the bug
1. Create a VPC with "Default VPC offering"
2. Create a guest network with "DefaultIsolatedNetworkOfferingForVpcNetworks" under that VPC
3. launch a VM
4. verify /etc/resolv.conf are missing guest network gateway ip as nameserver
### What to do about it?
_No response_
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "nvazquez (via GitHub)" <gi...@apache.org>.
nvazquez commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3266473086
Thanks @levindecaro @kiranchavala @weizhouapache, we'll work on the fix
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3264790379
Thanks @levindecaro
Able to reproduce the issue
0n 4.20.1
<img width="1123" height="291" alt="Image" src="https://github.com/user-attachments/assets/0339bb44-b4fe-45e9-811a-d54dd8460be8" />
<img width="992" height="305" alt="Image" src="https://github.com/user-attachments/assets/f490c370-393a-4ce4-bd3b-e99d56da76bf" />
On 4.21
<img width="1224" height="546" alt="Image" src="https://github.com/user-attachments/assets/61dd9a0f-34ee-4b91-9158-a36efbc5a6bb" />
<img width="882" height="408" alt="Image" src="https://github.com/user-attachments/assets/3cb1e4f1-1c43-4c4a-9fe1-b75321d644f4" />
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 and 4.22.0 [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-4053429301
this should have been fixed by #12161
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3264810127
it seems to be caused by #9102
https://github.com/apache/cloudstack/blob/3d6ec29c9bb87dafe01ad39e2a1dda9d4e644d6c/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py#L114-L117
the gateway has been removed from DNS list , but the guest IP (same as gateway in VPC) is not added back.
cc @Pearl1594 @nvazquez
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3264882084
@levindecaro
can you make the change below manually in a VR and retry (start a new vm or stop/start an existing vm) ?
```
diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
index e74e801f59d..0f9f4a59374 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py
@@ -110,7 +110,7 @@ class CsDhcp(CsDataBag):
if gn.get_dns() and device:
sline = "dhcp-option=tag:interface-%s-%s,6" % (device, idx)
dns_list = [x for x in gn.get_dns() if x]
- if (self.config.is_vpc() or self.config.is_router()) and ('is_vr_guest_gateway' in gn.data and gn.data['is_vr_guest_gateway']):
+ if (self.config.is_vpc() or self.config.is_router()) and ('is_vr_guest_gateway' in gn.data and not gn.data['is_vr_guest_gateway']):
if gateway in dns_list:
dns_list.remove(gateway)
if gn.data['router_guest_ip'] != ip:
```
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3264809688
thanks @kiranchavala
can you test with regular isolated network ?
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "levindecaro (via GitHub)" <gi...@apache.org>.
levindecaro commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3264826359
> thanks [@kiranchavala](https://github.com/kiranchavala) can you test with regular isolated network ?
regular isolated network is working fine for me.
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 [cloudstack]
Posted by "levindecaro (via GitHub)" <gi...@apache.org>.
levindecaro commented on issue #11592:
URL: https://github.com/apache/cloudstack/issues/11592#issuecomment-3265156541
@weizhouapache
It works perfectly, thank you!
--
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
Re: [I] Missing Guest Network DNS server in VPC network after upgrade 4.21.0 and 4.22.0 [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache closed issue #11592: Missing Guest Network DNS server in VPC network after upgrade 4.21.0 and 4.22.0
URL: https://github.com/apache/cloudstack/issues/11592
--
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