-
Notifications
You must be signed in to change notification settings - Fork 174
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
Configure VCH DNS server fails to remove non-persistent assigned.dns entries #7775
Comments
This commit changed the power on behavior, maybe a candidate for the regression: |
I have narrowed it down to what I believe is an environmental change. I went back to the same code, test and VC that passed here: TEST_URL=10.158.214.103 And it is now failing, so the only thing I can conclude is something changed with the env between then and now. |
I do not know what could have changed in the environment that would cause this kind of failure though. |
I can easily reproduce this manually:
|
The Line 408 in 9d85a35
As written, the only time there will not be a match for I think the test is supposed to be checking for This speculation would require that vic-machine configure not be blocking until the VCH has re-initialized after power on. If we're only failing on HaaS that would imply the VCH initialization is much faster in that environment vs nimbus. |
Checking the endpointVM tether.debug we have the following eventually:
This happens after DHCP address acquisition which is where the additional nameservers come from |
According to the VIC code comment and logic having DHCP provided DNS server in the list is a legit behavior I think we should keep it there wven though I am disagree with this. Since I may want to use only specific DNS servers not those that might also be provided via DHCP. |
I have changed a behavior of some tether code. We no longer combine manually set DNS and DHCP provided addresses. If DNS is manually set, we only going to use manual settings even if DHCP supplies DNS config. |
Seen here:
https://ci-vic.vmware.com/vmware/vic/18515
https://ci-vic.vmware.com/vmware/vic/18484
https://ci-vic.vmware.com/vmware/vic/18487
This is easily reproducible on our 6.5 HaaS test systems, seems to pass on the 6.7 Nimbus systems.
On further experimentation, power cycling the VCH one more time resolves the issue. The assigned.dns field appears to be a non-persistent VM guestinfo field, so it is not written to the vmx file and it is populated by the portlayer on power on?
The test did change recently here:
5e13301
But all I did was try to cut down on a race condition by waiting longer, which apparently didn't fix it as the original failure is actually the same. This appears be the first instance of this failure:
https://ci-vic.vmware.com/vmware/vic/18416/7
but this error also only shows up in HaaS runs so most of the merges to master prior to that ran on Nimbus.
The text was updated successfully, but these errors were encountered: