Bug 2178005

Summary: No support for vnic_type = vdpa for " openstack port create " command
Product: Red Hat OpenStack Reporter: Vijayalakshmi Candappa <vcandapp>
Component: python-neutronclientAssignee: Arnau Verdaguer <averdagu>
Status: CLOSED WONTFIX QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17.1 (Wallaby)CC: apevec, averdagu, chrisw, hakhande, scohen, smooney
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-22 16:50:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vijayalakshmi Candappa 2023-03-14 08:20:21 UTC
Description of problem:
As per the OSP 17.0 release doc [1], the vDPA feature is supported as Tech Preview and "openstack port create" command can be done with new type "vdpa"

But vdpa NIC type is not allowed in current OSP17.1 puddles

[1] https://access.redhat.com/documentation/cn/red_hat_openstack_platform/17.0/html/creating_and_managing_instances/proc_creating-an-instance-with-a-vdpa-interface_osp

openstack port create --network vdpa_net1 --vnic-type=vdpa vdpa_direct_port1

openstack port create: error: argument --vnic-type: invalid choice: 'vdpa' (choose from 'direct', 'direct-physical', 'macvtap', 'normal', 'baremetal', 'virtio-forwarder')


Version-Release number of selected component (if applicable):
RHOS-17.1-RHEL-9-20230216.n.1, RHOS-17.1-RHEL-9-20230301.n.1 and latest 17.1+9.2 puddle

How reproducible:
Always

Steps to Reproduce:
1. Follow deployment steps as mentioned in doc [1] above
2. After overcloud deployment, create a VM
3. openstack port create --network vdpa_net1 --vnic-type=vdpa vdpa_direct_port1

Actual results:
'openstack port create' fails

Expected results:
Port create should support vnic_type 'vdpa'


Additional info:
Additonal details are there in https://bugzilla.redhat.com/show_bug.cgi?id=1873409

Comment 3 smooney 2023-03-22 16:50:54 UTC
This was intentional we only support it in OpenStack client 
We also deced not to backprot the osc change originally and recommend that pypi version be used.

based on the conversation with Haresh Khandelwal on slack i created a backport which we have now merged.
https://code.engineering.redhat.com/gerrit/c/python-openstackclient/+/441006