set different VirtualDevice.key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Yingji Sun | ||
Stein |
Fix Released
|
Undecided
|
Elod Illes | ||
Train |
Fix Released
|
Undecided
|
Yingji Sun | ||
Ussuri |
Fix Released
|
Undecided
|
Yingji Sun | ||
Victoria |
Fix Released
|
Undecided
|
Yingji Sun |
Bug Description
When creating an instance with multiple nics on vsphere 7, such as,
Create server using ports: "networks": [{"port": "1ff1fd0e-
it will report error as below.
2020-02-03 22:56:02.654 13279 ERROR nova.compute.
The root cause is that starting from vsphere 7, VirtualDevice.key cannot be the same any more.
Original the request to vcenter is
--> deviceChange = (vim.vm.
--> (vim.vm.
--> operation = "add",
--> device = (vim.vm.
--> key = -47,
--> backing = (vim.vm.
--> opaqueNetworkId = "9c0d11f9-
--> opaqueNetworkType = "nsx.LogicalSwitch"
--> },
--> connectable = (vim.vm.
--> startConnected = true,
--> allowGuestControl = true,
--> connected = true,
--> },
--> addressType = "manual",
--> macAddress = "fa:16:
--> wakeOnLanEnabled = true,
--> externalId = "1ff1fd0e-
--> },
--> },
--> (vim.vm.
--> operation = "add",
--> device = (vim.vm.
--> key = -47,
--> backing = (vim.vm.
--> opaqueNetworkId = "00b14b88-
--> opaqueNetworkType = "nsx.LogicalSwitch"
--> },
--> connectable = (vim.vm.
--> startConnected = true,
--> allowGuestControl = true,
--> connected = true,
--> },
--> addressType = "manual",
--> macAddress = "fa:16:
--> wakeOnLanEnabled = true,
--> externalId = "87aee6b2-
--> },
--> },
We need to change 'key' to different values.
Changed in nova: | |
assignee: | nobody → Yingji Sun (yingjisun) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → In Progress |
Reviewed: https:/ /review. opendev. org/713565 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a5d153a4c64 f6947531823c0df 91be5cbc491977
Committed: https:/
Submitter: Zuul
Branch: master
commit a5d153a4c64f694 7531823c0df91be 5cbc491977
Author: yingjisun <email address hidden>
Date: Wed Feb 26 21:31:41 2020 +0800
Set different VirtualDevice.key
In vSphere 7.0, the VirtualDevice.key cannot be the same any more.
So set different values to VirtualDevice.key
Change-Id: I574ed88729d2f0 760ea4065cc0e54 2eea8d20cc2
Closes-Bug: #1892961