-
Notifications
You must be signed in to change notification settings - Fork 115
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
use '= gethostname();' instead of "<hostname>" #174
Conversation
Hey andyliuliming! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
…place. and this is the default dhcp config in ubuntu now.
@andyliuliming Hi Andy, @cppforlife , @mxplusb , @dpb587 , @Amit-PivotalLabs and I spoke about this today, one question, for the gethostname() setting , the implication is that this sets the hostname in DHCP in azure and makes the worker node hostname resolvable in azure DNS? So, yes, we are sending very old config syntax dating back to Lucid Ubuntu in dhclient.conf here with the We're thinking the hostname is typically the bosh agent ID (a GUID) which was never originally intended to be exposed via DNS. Dynamic hostname setting via DHCP seems like it can lead to a security problem where other VMs could request/overwrite existing hostnames. Do you know if Azure secures this? I'm vaguely remembering that Azure will register this under We'd also like to testing the bosh agent behavior on a Xenial stemcell, if it's still using the old Lucid-era Ubuntu syntax for dhclient.conf / if this fix applies to that as well. One other idea was to try to set the CFCR azure kubelet --hostname-override to a BOSH DNS name for the worker node via |
@svrc-pivotal Hi Stuart, cat /etc/resolv.conf I tested the change on the trusty and the xenial stemcells on azure, with the patch, the cfcr deployment would be successful, and all the conformance tests passed. And yes, use the spec ip as the hostname-override does not work. |
tracker story here |
Hey @andyliuliming, we brought these changes in, compiled a new agent and xenial stemcell and tried a few simple deployments on GCP. Unfortunately, we weren't able to successfully deploy, and instead saw that the instances would time out during deployment. During further investigation, we were not even able to SSH onto the machines and investigate logs or the state of the system. We are wondering, what steps did you take to test this on Trusty/Xenial on Azure? |
@jrussett |
took at a look at the GCP stemcell build stages may be the cause why it do not works on gcp. |
rethinking about the behaviour change, to save the impact to other cloud providers, will change to add one option to send the dhcp with default off. will update the PR later. thanks. |
f765a9d
to
67ff84c
Compare
@jrussett @cdutra thanks for your patience. stemcell's PR is here: cloudfoundry/bosh-linux-stemcell-builder#58 |
Hi @andyliuliming, After reviewing your updated PR, we don't think that making this work only for We're not sure if our initial test had some other issue or if the original PR Could you please re-submit your original change (where we unconditionally have Thanks, |
@luan done. re-submit the original change :) |
this is the default dhcp config in ubuntu now.
and it works in both azure and other place.