UKCloud / vcd-healthcheck

This is a collection of scripts intended to be run again a vCloud Director VDC and provide feedback and recommendations for any mis-configured or non-optimal configurations.
Apache License 2.0
2 stars 3 forks source link

Identify when the Hostname is different to the VM name #10

Open tlawrence opened 8 years ago

tlawrence commented 8 years ago

in most deployments the VM hostname hould = the VM name as seen in VCD. This isn't always the case and may be worth reporting here.

robcoward commented 8 years ago

Added to Jira as OS-7

robcoward commented 8 years ago

Unless I'm missing something, I don't see anywhere through the vCloud API that the hostname is reported. The requested hostname in the GuestCustomisation can be queried, but that does not reflect the current hostname.

This could require an additional endpoint in the portal API in order to query the underlying vCenter (I believe that the vm tools reports the hostname back to vCenter).

akumria commented 8 years ago

Even displaying when the hostname != the one in the guestcustomisation would be a handy start,

robcoward commented 8 years ago

@akumria Would checking the VM Name (as viewed in vCloud Director) being different to the requested hostname in the GuestCustomisation section really be that useful ? If any form of automation is being used, I'd expect both to be identical. If the vCloud Director UI is used to manually launch VMs, iirc it automatically sets up the guest customisation to set the hostname to the same as the VM name.

The only use-case I can come up with is if someone is creating VMs manually and manually setting up guest customisation to do something different - we may want to highlight to them that their manual setup may not be advisable.