Reviewed: https://review.opendev.org/713565 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a5d153a4c64f6947531823c0df91be5cbc491977 Submitter: Zuul Branch: master
commit a5d153a4c64f6947531823c0df91be5cbc491977 Author: yingjisun <[email protected]> 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: I574ed88729d2f0760ea4065cc0e542eea8d20cc2 Closes-Bug: #1892961 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1892961 Title: set different VirtualDevice.key Status in OpenStack Compute (nova): Fix Released Status in OpenStack Compute (nova) stein series: New Status in OpenStack Compute (nova) train series: New Status in OpenStack Compute (nova) ussuri series: New Status in OpenStack Compute (nova) victoria series: Fix Released Bug description: When creating an instance with multiple nics on vsphere 7, such as, Create server using ports: "networks": [{"port": "1ff1fd0e-a7c1-400d- 8ee4-d8b6c94ed33b"}, {"port": "87aee6b2-c76a-4f10-9eab- a23ff9694b34"}], it will report error as below. 2020-02-03 22:56:02.654 13279 ERROR nova.compute.manager [req- b1ec16f5-e529-4c98-9a4c-4cb8782489d2 a2fa852dc11546dfaf4bb2d9c0460dcf ee69d923dc594779a5775abd2077bea8 - default default] [instance: a80f85ce-2c16-4022-b01e-fb6953243fc0] Instance failed to spawn: VimFaultException: Network interface 'VirtualE1000' uses network 'nsx.LogicalSwitch:3a603a1c-4df4-4b09-afd1-ac9b56979f5e', which is not accessible. 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.device.VirtualDeviceSpec) [ --> (vim.vm.device.VirtualDeviceSpec) { --> operation = "add", --> device = (vim.vm.device.VirtualE1000) { --> key = -47, --> backing = (vim.vm.device.VirtualEthernetCard.OpaqueNetworkBackingInfo) { --> opaqueNetworkId = "9c0d11f9-8388-465f-9a78-988134d44ab7", --> opaqueNetworkType = "nsx.LogicalSwitch" --> }, --> connectable = (vim.vm.device.VirtualDevice.ConnectInfo) { --> startConnected = true, --> allowGuestControl = true, --> connected = true, --> }, --> addressType = "manual", --> macAddress = "fa:16:3e:58:a9:24", --> wakeOnLanEnabled = true, --> externalId = "1ff1fd0e-a7c1-400d-8ee4-d8b6c94ed33b", --> }, --> }, --> (vim.vm.device.VirtualDeviceSpec) { --> operation = "add", --> device = (vim.vm.device.VirtualE1000) { --> key = -47, --> backing = (vim.vm.device.VirtualEthernetCard.OpaqueNetworkBackingInfo) { --> opaqueNetworkId = "00b14b88-4650-40c9-8216-f188b3f865cf", --> opaqueNetworkType = "nsx.LogicalSwitch" --> }, --> connectable = (vim.vm.device.VirtualDevice.ConnectInfo) { --> startConnected = true, --> allowGuestControl = true, --> connected = true, --> }, --> addressType = "manual", --> macAddress = "fa:16:3e:fc:d7:20", --> wakeOnLanEnabled = true, --> externalId = "87aee6b2-c76a-4f10-9eab-a23ff9694b34", --> }, --> }, We need to change 'key' to different values. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1892961/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

