~allenap/maas/tests-clean-reactor

Viewing all changes in revision 3616.

  • Committer: MAAS Lander
  • Author(s): Mike Pontillo
  • Date: 2015-03-06 20:29:08 UTC
  • mfrom: (3608.3.6 vmware-node-names)
  • Revision ID: maas_lander-20150306202908-h7vswlbx7jir2suf
[r=mpontillo,rvb][bug=][author=mpontillo] Automatically add hostnames when probe-and-enlist runs for vSphere.

This commit will use the name configured in vSphere for the hostname of the VM. In order to allow this, it adds an optional 'hostname' parameter to create_node(), and (if provided) passes it into the node creation form.

Also updated the create_node() test to also pass in that parameter.

MAAS will automatically add the DNS suffix, as applicable.

Note that this commit DOES NOT provide a way to turn this functionality off. If a vSphere VM is named with an invalid hostname, the node will fail to be added. We should determine if a use case exists for NOT using the VM names as the hostnames.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: