Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSearchdomain crashes DHCP server #868
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@mlsorensen could you please take a look? Thanks! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vladikr
Apr 4, 2018
Member
I think we should trust the pod's configuration more. If it worked for the pod it should work for the VM as well. In any case, we should skip an "incorrect" domain, but not crash.
Here is a nice approach to follow I think ... https://golang.org/src/net/dnsconfig_unix.go L86 .
|
I think we should trust the pod's configuration more. If it worked for the pod it should work for the VM as well. In any case, we should skip an "incorrect" domain, but not crash. Here is a nice approach to follow I think ... https://golang.org/src/net/dnsconfig_unix.go L86 . |
fabiand
assigned
vladikr
Apr 5, 2018
fabiand
added
topic/network
priority/critical-urgent
labels
Apr 5, 2018
fabiand
added this to the
v1.0 milestone
Apr 5, 2018
fabiand
added
the
area/launcher
label
Apr 5, 2018
fabiand
changed the title from
When trying to schedule VM, failing to run DHCP
to
Searchdomain crashes DHCP server
Apr 5, 2018
fabiand
added
the
kind/bug
label
Apr 5, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mlsorensen
Apr 5, 2018
Contributor
"openstacklocal' is indeed an invalid domain per RFC. How do we want to handle this?
|
"openstacklocal' is indeed an invalid domain per RFC. How do we want to handle this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lukas-bednar
Apr 5, 2018
Member
I would go in the way which @vladikr mentioned above.
In any case, we should skip an "incorrect" domain, but not crash.
|
I would go in the way which @vladikr mentioned above.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mlsorensen
Apr 5, 2018
Contributor
That would end us up with incorrect config. One would assume that if it is in the resolv.conf in the pod it needs to be in the VM as well, to match functionality.
I think perhaps the domain validation should be loosened to allow partial domains like this. 'com' on its own is not a valid domain, but it IS a valid search domain as searching assumes it will be prepended with something.
|
That would end us up with incorrect config. One would assume that if it is in the resolv.conf in the pod it needs to be in the VM as well, to match functionality. I think perhaps the domain validation should be loosened to allow partial domains like this. 'com' on its own is not a valid domain, but it IS a valid search domain as searching assumes it will be prepended with something. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mlsorensen
Apr 5, 2018
Contributor
Please review the commit and see if it's sufficient. I can add a passthrough to skip domains that are not valid if that's the consensus. I do think that it should react the same way to bad data in resolv.conf as it would if it hit a nil IP. In this case it didn't invisibly provide the user with a vaguely misconfigured VM to troubleshoot, and printed the problem clearly in the launcher log. That's what I would want.
|
Please review the commit and see if it's sufficient. I can add a passthrough to skip domains that are not valid if that's the consensus. I do think that it should react the same way to bad data in resolv.conf as it would if it hit a nil IP. In this case it didn't invisibly provide the user with a vaguely misconfigured VM to troubleshoot, and printed the problem clearly in the launcher log. That's what I would want. |
davidvossel
closed this
in
21a52ae
Apr 6, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@mlsorensen Thanks, your fix solved my problem! |
lukas-bednar commentedApr 4, 2018
I am running latest KubeVirt on just released OpenShift 3.9, and when creating VM
The virt-launcher is failing on following issue:
This
openstacklocaldomain is in/etc/resolv.conflikeThis OpenShift node is running as a VM inside of OpenStack cluster, and these values were generated by NetworkManager.
I will be happy for any suggestions!
Thanks,
Lukas.