I am trying to get maas to join my esxi deployments to vcenter using data supplied via MAAS and brought in during the metadata gathering (specifically vendor_data.py) . I have troubleshot it far enough to see the reason it is not auto joining is because the
vcenter_registration variable is unset. My question is, how do you set this on the node?
This specific line of code is what I am referring to: https://github.com/maas/maas/blob/master/src/metadataserver/vendor_data.py#L352
I added some extra debugging statements to my code and verified this variable is
I can see in the code it is something that should be a part of each node’s metadata but I don’t see how to add metadata via the GUI or maas CLI.
As a side note I came across this: Esxi autoregistration doesn't work - The issue described in that ticket is a result of the “vcenter.yaml” file not being created which is the same behavior I am experiencing. The yaml file is not being created on my specific system due to the
vcenter_registration being unset, so these might be the same issue.