equinix / terraform-equinix-metal-anthos-on-vsphere

[Deprecated] Automated Anthos Installation via Terraform for Equinix Metal with vSphere
https://registry.terraform.io/modules/equinix/anthos-on-vsphere/metal/latest
Apache License 2.0
62 stars 41 forks source link

vlans may fail to be added to ports after network type conversion #106

Closed displague closed 2 weeks ago

displague commented 3 years ago

I captured the following log output while attempting to provision this module with the following non-default, Packet device, settings:

esxi_size       = "c3.medium.x86"
router_size     = "c2.medium.x86"
esxi_host_count = "1"
facility        = "dfw2"
null_resource.apply_esx_network_config[0] (remote-exec): Trying to connect to ESX Host . . .
null_resource.apply_esx_network_config[0] (remote-exec): Connected to ESX Host !
null_resource.apply_esx_network_config[0] (remote-exec): Removing vNic: vmk0
null_resource.apply_esx_network_config[0] (remote-exec): Removing vNic: vmk1
null_resource.apply_esx_network_config[0] (remote-exec): Removing Port Group: VM Network
null_resource.apply_esx_network_config[0] (remote-exec): Removing Port Group: Private Network
null_resource.apply_esx_network_config[0] (remote-exec): Removing Port Group: Management Network
null_resource.apply_esx_network_config[0] (remote-exec): Removing vSwitch: vSwitch0
null_resource.apply_esx_network_config[0] (remote-exec): Updating vSwitch Uplinks...
null_resource.apply_esx_network_config[0] (remote-exec): Trying to connect to ESX Host . . .
null_resource.apply_esx_network_config[0] (remote-exec): Connected to ESX Host !
null_resource.apply_esx_network_config[0] (remote-exec): Found correct vSwitch.
null_resource.apply_esx_network_config[0] (remote-exec): Found bond0 port id
null_resource.apply_esx_network_config[0] (remote-exec): Found eth0 port id, but...
null_resource.apply_esx_network_config[0] (remote-exec): This is not the port you're looking for...
null_resource.apply_esx_network_config[0] (remote-exec): Found eth1 port id
null_resource.apply_esx_network_config[0] (remote-exec): Removing vLan 1220 from unbonded port
null_resource.apply_esx_network_config[0]: Still creating... [10s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Removing vLan 1230 from unbonded port
null_resource.apply_esx_network_config[0]: Still creating... [20s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Removing vLan 1221 from unbonded port
null_resource.apply_esx_network_config[0]: Still creating... [30s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [40s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Removing vLan 1222 from unbonded port
null_resource.apply_esx_network_config[0]: Still creating... [50s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Removing vLan 1228 from unbonded port
null_resource.apply_esx_network_config[0]: Still creating... [1m0s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [1m10s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Rebonding Ports...
null_resource.apply_esx_network_config[0]: Still creating... [1m20s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [1m30s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Adding vLan 1220 to bond
null_resource.apply_esx_network_config[0]: Still creating... [1m40s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [1m50s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [2m0s elapsed]
null_resource.apply_esx_network_config[0]: Still creating... [2m10s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Adding vLan 1230 to bond
null_resource.apply_esx_network_config[0]: Still creating... [2m20s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Adding vLan 1221 to bond
null_resource.apply_esx_network_config[0]: Still creating... [2m30s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Adding vLan 1222 to bond
null_resource.apply_esx_network_config[0]: Still creating... [2m40s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Traceback (most recent call last):
null_resource.apply_esx_network_config[0] (remote-exec):   File "/root/update_uplinks.py", line 64, in <module>
null_resource.apply_esx_network_config[0] (remote-exec):     main()
null_resource.apply_esx_network_config[0] (remote-exec):   File "/root/update_uplinks.py", line 60, in main
null_resource.apply_esx_network_config[0] (remote-exec):     host_network_system.UpdateVirtualSwitch(vswitchName=options.vswitch, spec=vss_spec)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/local/lib/python3.6/dist-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda>
null_resource.apply_esx_network_config[0] (remote-exec):     self.f(*(self.args + (obj,) + args), **kwargs)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/local/lib/python3.6/dist-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod
null_resource.apply_esx_network_config[0] (remote-exec):     return self._stub.InvokeMethod(self, info, args)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/local/lib/python3.6/dist-packages/pyVmomi/SoapAdapter.py", line 1351, in InvokeMethod
null_resource.apply_esx_network_config[0] (remote-exec):     resp = conn.getresponse()
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/http/client.py", line 1356, in getresponse
null_resource.apply_esx_network_config[0] (remote-exec):     response.begin()
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/http/client.py", line 307, in begin
null_resource.apply_esx_network_config[0] (remote-exec):     version, status, reason = self._read_status()
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/http/client.py", line 268, in _read_status
null_resource.apply_esx_network_config[0] (remote-exec):     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/socket.py", line 586, in readinto
null_resource.apply_esx_network_config[0] (remote-exec):     return self._sock.recv_into(b)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/ssl.py", line 1012, in recv_into
null_resource.apply_esx_network_config[0] (remote-exec):     return self.read(nbytes, buffer)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/ssl.py", line 874, in read
null_resource.apply_esx_network_config[0] (remote-exec):     return self._sslobj.read(len, buffer)
null_resource.apply_esx_network_config[0] (remote-exec):   File "/usr/lib/python3.6/ssl.py", line 631, in read
null_resource.apply_esx_network_config[0] (remote-exec):     v = self._sslobj.read(len, buffer)
null_resource.apply_esx_network_config[0] (remote-exec): ConnectionResetError: [Errno 104] Connection reset by peer
null_resource.apply_esx_network_config[0]: Still creating... [2m50s elapsed]
null_resource.apply_esx_network_config[0] (remote-exec): Adding vLan 1228 to bond