virt/vmware not suport VirtualSriovEthernetCard

Bug #1779781 reported by yuqian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
yuqian
OpenStack Compute (nova)
Triaged
Low
Unassigned

Bug Description

Description
===========
In nova/virt/vmwareapi/vm_util.py:

Through the code, this type of "VirtualSriov\
EthernetCard" network card can be managed.
But in fact, "VirtualSriovEthernetCard" can
not be achieved through the current code
architecture.

Steps to reproduce
==================
In horizon:
* Choose a image that you need to launch;
* Update the metadata of this image:
  hw_vif_model: VirtualSriovEthernetCard
  (hw_vif_model in `VMware Driver Options`)
* Create a VM from this image;
* At this time, the background of nova will
  report an error.

Actual result
=============
 ”VirtualSriovEthernetCard“ is actually a
 physical NIC, unlike other virtual NICs
 that can directly configure properties.

 The sriovbacking attribute must be configured
 in its spec, which contains information about
 vf and pf. This information needs to be
 obtained through the vsphere client.

 The vf/pf information included 'system_id'
 which is needs to be get after vm_vmotion is
 created. But in current code architecture,
 this is impossible to achieve

Environment
===========
1.Version:
  Not related to the version;
2.Hypervisor:
  compute_driver: vmwareapi.VMwareVCDriver;
3.Storage:
  Not related to the storage.
4.Networking:
  core_plugin: vmware_nsx.plugin.NsxDvsPlugin;

Logs & Configs
==============
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall [req-31efa6ac-de11-4352-bec6-49c75a0a847a 72b0403e87184504bfaec9bcff45109c e387c7a4f9fc4e1aa5be07c7e1bfba0e - default default] in fixed duration looping call: VimFaultException: Invalid configuration for device '0'.
Faults: ['InvalidDeviceSpec']
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall File "/usr/lib/python2.7/site-packages/oslo_vmware/common/loopingcall.py", line 75, in _inner
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall self.f(*self.args, **self.kw)
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall File "/usr/lib/python2.7/site-packages/oslo_vmware/api.py", line 452, in _poll_task
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall raise task_ex
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall VimFaultException: Invalid configuration for device '0'.
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall Faults: ['InvalidDeviceSpec']
2018-07-02 19:10:41.827 9772 ERROR oslo_vmware.common.loopingcall

Solution
==============
 According to the logic of the code, this type
 of network card is available, but in fact it is
 confusing here. According to the current code
 architecture, the problem cannot be fixed. I
 suggest to delete the corresponding code snippet
 and add comments to remind users.
 In the future, if necessary, support this type
 of network card by adding BP.

Here upon is my cordial suggest! :)

Tags: vmware
yuqian (roger-yu)
Changed in nova:
assignee: nobody → yuqian (roger-yu)
yuqian (roger-yu)
Changed in glance:
assignee: nobody → yuqian (roger-yu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/579820

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/579828

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.opendev.org/579828

Changed in nova:
status: In Progress → New
assignee: yuqian (roger-yu) → nobody
Matt Riedemann (mriedem)
tags: added: vmware
Changed in nova:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.opendev.org/c/openstack/glance/+/579820
Committed: https://opendev.org/openstack/glance/commit/475193b11dcda3b8c82a6bdd3faa54607d2b3272
Submitter: "Zuul (22348)"
Branch: master

commit 475193b11dcda3b8c82a6bdd3faa54607d2b3272
Author: yuqian <yu.qian@99cloud.net>
Date: Tue Jul 3 15:21:01 2018 +0800

    vmware does't support VirtualSriovEthernetCard

    Compute-driver: vmwareapi.VMwareVCDriver does not support
    VirtualSriovEthernetCard

    Change-Id: I1d4b0dee3c70454c0d595cb4a69606990b96b35a
    Partial-Bug: #1779781

Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

$ git tag --contains 475193b11dcda3b8c82a6bdd3faa54607d2b3272
26.0.0
26.0.0.0b2
26.0.0.0b3
26.0.0.0rc1

I don't think another patch is needed, so let's mark this as "fix released".

Changed in glance:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.