← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1892961] Re: set different VirtualDevice.key

 

** Changed in: nova/train
       Status: Fix Committed => 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:
  Fix Released
Status in OpenStack Compute (nova) train series:
  Fix Released
Status in OpenStack Compute (nova) ussuri series:
  Fix Committed
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


References