-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
knife vsphere vm clone command creates its own vlan standard port group in vCenter, instead of joining the specified --cvlan distrubuted port group #418
Comments
Since it's giving a Is the VLAN name correct? Is it on a distributed switch? Are there maybe multiple VLANs with that name? If you can find rescue
# not connected to a distibuted switch? to this: rescue Exception => e
puts "Couldn't find backing info for the VLAN. I got #{e} instead" that'll at least tell us why we're getting there. |
Hi Sean, |
Hi Swal,
|
That's weird. Maybe try |
Our Infra is currently under a bit of maintenance kind of thing. So I couldnt check anything as of now. Will get back on this a bit later |
Hi I am trying the similar cmd for VM Clone and instead of changing the vlan a new vlan is getting created under dvSwitch3. Is the above issue resolved? looking for solution to this problem. |
Hi, not that I know of. I wasn't able to reproduce the problem. If you want to try adding that debugging output mentioned above, it might help me figure out why it's doing that. |
Hi Sea,
To avoid this error we splitted the VM build operation and it was easy because we have an orchestrator doing all these steps.
So the error during power on is something coming from Chef or it's the vCenter issue. |
Thanks for the update. What you're seeing is coming from vsphere. I have a feeling that Crazy idea here, does it work if you pick a MAC address outside the vmware OID? The only other occurrence of that error message I see in Google comes from a python project where that was one solution. This may be more for curiosity as I don't recommend using a made up MAC, but if it works, maybe I can figure out their eventual solution. |
Not exactly. Once the machine is built , I am deleting the old network adapters and replacing them with a new network adapter. It was at this point I specify my VLAN along with my Mac address. This step works fine when the VLAN operation is carried out separately and only becomes a problem when passing both Mac and VLAN using knife vsphere command. |
Versions:
Platform Details
Scenario:
I am trying to spin a vm using the following command
knife vsphere vm clone testVM --dest-folder Chef_Test --template TEST_TMPT --start --cvlan vlan01 --datastore my_datastore --cspec winspec
The above command spins the vm with my customization template options but instead of joining the vlan01 Distributed Port Group(dvSwitch3), Chef creates a completely new vlan01 Standard Network Port Group for itself on the vCenter and adds the vm there.
So as means of this the VM is joined to a completely different Vlan that never existed in the vCenter itself. This causes the VM network adapter settings to stay disconnected and the network connections are failed in short.
Please paste the command and output (run with
-VV
). Don't forget to X out any passwords or sensitive information:Expected Result:
Vm has to build with custom templates and get added to the distributed vlan passed using --cvlan
Actual Result:
Vm builded but it creates its own VLAN instead of joining an existing one
The text was updated successfully, but these errors were encountered: