Comment 16 for bug 1746455

Revision history for this message
Calvin Hartwell (calvinh) wrote : Re: [Bug 1746455] Re: cloud-init vSphere cloud provider DHCP unique hostname issue

Hi Ashley,

Version 6.5.X was used for this deployment. What are you using to provide
DHCP and DNS for your guest host?

Cheers,

- Calvin

On Thu, Feb 15, 2018 at 9:19 PM, Ashley Lai <email address hidden>
wrote:

> I just ran the CDK on vsphere and can't reproduce the issue.
>
> juju version: 2.3.3-xenial-amd64
> VMware-ESXi-6.0.0-build-3620759
>
> @Calvin what version of ESXi are you running?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1746455
>
> Title:
> cloud-init vSphere cloud provider DHCP unique hostname issue
>
> Status in cloud-init:
> Incomplete
>
> Bug description:
> We've had an issue recently when provisioning workloads on vSphere.
> Here is what happens:
>
> 1) Set vSphere as the cloud provider in juju (bootstrap)
>
> 2) Deploy workload on vSphere, in our case, Canonical Kubernetes (CDK)
>
> 3) Machines are deployed using VMDK, but when they boot the initial
> hostname is Ubuntu (for all machines) until juju changes it during
> deployment.
>
> 4) DHCP gives each machine a lease, but the DNS entries are all messed
> up because of identical hostnames.
>
> 5) If the machines are rebooted they will receive the correct DNS
> entries. Note that juju will set the correct hostname eventually, but
> not when the initial DHCP lease is given to the host.
>
>
> Basically cloud-init is not giving newly provisioned machines on vSphere
> their correct hostname before the DHCP lease is given, meaning that every
> instance during DHCP has the hostname 'ubuntu' which messes up the entries
> on the DNS server.
>
> Related Bugs:
>
> * https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1600766
> * https://github.com/juju-solutions/bundle-canonical-
> kubernetes/issues/480
> * https://github.com/juju-solutions/bundle-canonical-
> kubernetes/issues/171
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cloud-init/+bug/1746455/+subscriptions
>
> Launchpad-Notification-Type: bug
> Launchpad-Bug: product=cloud-init; status=Incomplete; importance=High;
> <email address hidden>;
> Launchpad-Bug-Tags: cdo-qa-blocker cloud-init cpe-onsite dhcp juju k8s
> vsphere
> Launchpad-Bug-Information-Type: Public
> Launchpad-Bug-Private: no
> Launchpad-Bug-Security-Vulnerability: no
> Launchpad-Bug-Commenters: alai calvinh davidpbritton jameinel smoser
> thumper
> Launchpad-Bug-Reporter: Calvin Hartwell (calvinh)
> Launchpad-Bug-Modifier: Ashley Lai (alai)
> Launchpad-Message-Rationale: Subscriber
> Launchpad-Message-For: calvinh
>

--
E: <email address hidden>
W: http://calvinhartwell.com
T: (+44) 07534801542