New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnsmasq-dhcp - ignored #8158
Comments
Additional info: Tue 31 Oct 2023 08:32:15 AM UTC Setting up dnsmasq |
I also start having issues with one of two shared networks here, my VR does no longer assing IP addresses. Restarting the network including cleanup (replacing the VR) did not help. Maybe it's the same issue (if not, I will open a new one). In my case, the DHCP requests reach the VR, but are actively declined, for whatever reason. My logs contain lines like @ccycv can you check whether the requests really are ignored or rather declined? try running e.g. Also I can see the DHCP requests on the VR (with |
I just updated by mistake a router and now I also have this issues in a
different region.
Check the content of /etc/dnsmasq.d/cloud.conf, and compare with your
interfaces, inside your router.
Regards,
Cristian
…On Tue, Oct 31, 2023, 14:46 Martin Emrich ***@***.***> wrote:
I also start having issues with one of two shared networks here, my VR
does no longer assing IP addresses. Restarting the network including
cleanup (replacing the VR) did not help. Maybe it's the same issue (if not,
I will open a new one).
In my case, the DHCP requests reach the VR, but are actively declined, for
whatever reason. My logs contain lines like not using configured address
xx.yy.zz.aa because it was previously declinet).
@ccycv <https://github.com/ccycv> can you check whether the requests
really are ignored or rather declined? try running e.g. dhclient eth0 -v
on a client, check if there are DHCPDECLINE messages.
Also I can see the DHCP requests on the VR (with tcpdump -i eth0 ether
src <client-vm-mac-address<).
—
Reply to this email directly, view it on GitHub
<#8158 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFR53GNEP56PUUUPLP7BLQTYCDXJLAVCNFSM6AAAAAA6WBHA7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBXGE2TAOJYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My /etc/dnsmasq.d/cloud.conf of the working and non-working router are identical (apart from the network address of course) |
@ccycv @MartinEmrich is this still an issue for you? |
@DaanHoogland Something was changed in the new version; I have this issue with 3 separate CloudStack environments after the upgrade to 4.18.1. All the routers with a shared network that have more than one Guest IP range are affected. So when I check the /etc/dnsmasq.d/cloud.conf, the config includes only one Guest IP range. For now, I configured manually on each, but after router rebuild/cleanup, I must do it again. So, what for data do you need? |
Hmm IIRC in the end it was a second VM which had the same IP address for whatever reason. So I guess the VR already assigned the IP to that machine, and thus declined the second request from this machine (different MAC not in the table). After deleting that rogue VM, the issue did not reappear for me. So most probably not the same as @ccycv's issue at all. |
ok, please create a new issue when you have a clear picture, @MartinEmrich ? |
a detailed description of what is the environment that causes it. So far what I understand:
the part "multiple CIDR in different zones. " I am not quite sure of. How did you configure this @ccycv ? |
So, on any shared network you can add multiple guest cidr. This is not a
new setup, it has already many years, and upgraded from 4.15...
I have shared network with multiple guest ranges/cidr. Only the shared
networks are affected.
Regards,
Cristian
…On Fri, Jan 12, 2024, 21:02 dahn ***@***.***> wrote:
@DaanHoogland <https://github.com/DaanHoogland> Something was changed in
the new version; I have this issue with 3 separate CloudStack environments
after the upgrade to 4.18.1. All the routers with a shared network that
have more than one Guest IP range are affected. So when I check the
/etc/dnsmasq.d/cloud.conf, the config includes only one Guest IP range. For
now, I configured manually on each, but after router rebuild/cleanup, I
must do it again.
So, what for data do you need?
a detailed description of what is the environment that causes it. So far
what I understand:
- multiple zones
- a shared network
the part "multiple CIDR in different zones. " I am not quite sure of. How
did you configure this @ccycv <https://github.com/ccycv> ?
—
Reply to this email directly, view it on GitHub
<#8158 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFR53GNX5FTVKMTBX3SCTMLYOGCD7AVCNFSM6AAAAAA6WBHA7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZHAYDMMJYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It is quite easy to reproduce, create shared network, even if the deploy was with basic or advanced networking, and add multiple ranges to shared network, let say 5. Then check cloud.conf from dnsmasq the config/deploy VMs. I also have a cloudstack with 1 zone, basic, and I have the same issue. |
Ah, I got confused about the multiple zones. Thanks, I'll have a go on reproducing it. |
If it worked before, it might be a regression issue. |
Update: I recently tested a new router and started with just one IP class. When I introduced an additional IP class, I noticed the cloud.conf file in the /etc/dnsmasq.d directory had been updated with the new configuration for the new range. However, it replaced the existing configuration instead of adding to it. It seems the process overwrites the cloud.conf file without retaining the previous settings. |
@ccycv |
@weizhouapache It is easy to replicate. Create a shared type; shared network in a CloudStack with advanced settings. And just add an additional Guest IP range, you will see how the cloud.conf is populated. I didn't had this issue in the previous version. This was the configuration with the initial Guest IP range: listen-address=127.0.0.1,181.xx.xxx.178 After I added an additional Guest IP range, it was replaced with the last added one. listen-address=127.0.0.1,181.xx.xxx.245 Before, where there was no issue, there was a config for each class in this cloud.conf; now, no matter how many Guest IP ranges you add, you will have only one. |
@ccycv It worked fine when I tested #5530 (9f5ac89) . maybe some changes after that caused it. |
Has this been fixed now @weizhouapache ? |
@rohityadavcloud |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
The DHCP service on the CloudStack guest router is ignoring DHCP requests for specific IP classes post deployment. Manually adding missing classes to the configuration resolves the issue temporarily.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: