ubnetdef / genesis

Next generation competition deployment and management
https://comp-genesis.readthedocs.io
MIT License
0 stars 0 forks source link

VMware NIC Fixer #12

Closed jtdroste closed 6 years ago

jtdroste commented 6 years ago

Issue: #5

This will check all created VMs, and ensure the NIC is connected. Often, this is from VMware not re-attaching the NIC after customization due to an error. In practice, the network config has always been set correctly, it just fails on the final re-attach NIC step.

jtdroste commented 6 years ago

LGTM, tested on a VM already created that required a change (startConnected)

[DEBUG](genesis.deployment.vmware): Connecting to vSphere instance: cdr-vcenter1.cse.buffalo.edu
[INFO](genesis.deployment.vmware): The following VM required NIC changes: UBNetDef/vm/Lockdown/Lockdown v4/Team 1/Router
[DEBUG](genesis.deployment.vmware): Waiting for 1 tasks to complete
[DEBUG](genesis.deployment.vmware): Tasks completed!
[DEBUG](genesis.deployment.vmware): Disconnecting from: cdr-vcenter1.cse.buffalo.edu