Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2059588

Summary: OVN Migration failing in Cleanup neutron trunk subports
Product: Red Hat OpenStack Reporter: Jaganathan Palanisamy <jpalanis>
Component: python-networking-ovnAssignee: OSP Team <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16.0 (Train)CC: apevec, averdagu, hakhande, lhh, majopela, scohen
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: 2022-03-01 14:42:56 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 Jaganathan Palanisamy 2022-03-01 12:19:18 UTC
Description of problem:
OvS to OVN migration is failing with error "ovs-vsctl: 'del-port' command requires at least 1 arguments" for NIC partitioning setup with 2 NFV instances which are having 1 dpdk vxlan port and 1 vlan sriov vf port.

Ansible task 'Cleanup neutron trunk subports' failing but we have not created any neutron trunk ports for NFV instances. 

TASK [migration : Cleanup neutron trunk subports] ***************************************************************************************************************************
task path: /home/stack/ovn_migration/playbooks/roles/migration/tasks/cleanup-dataplane.yml:14
Tuesday 01 March 2022  05:27:46 -0500 (0:00:01.041)       0:35:06.681 ********* 
fatal: [overcloud-computeovsdpdksriov-0]: FAILED! => {"changed": true, "cmd": "ovs-vsctl list interface | awk '/name[ ]*: sp[it]-/ { print $3 }' | xargs -n1 ovs-vsctl del-port\n", "delta": "0:00:00.014844", "end": "2022-03-01 10:27:46.767096", "msg": "non-zero return code", "rc": 123, "start": "2022-03-01 10:27:46.752252", "stderr": "ovs-vsctl: 'del-port' command requires at least 1 arguments", "stderr_lines": ["ovs-vsctl: 'del-port' command requires at least 1 arguments"], "stdout": "", "stdout_lines": []}
fatal: [overcloud-computeovsdpdksriov-1]: FAILED! => {"changed": true, "cmd": "ovs-vsctl list interface | awk '/name[ ]*: sp[it]-/ { print $3 }' | xargs -n1 ovs-vsctl del-port\n", "delta": "0:00:00.014775", "end": "2022-03-01 10:27:46.802985", "msg": "non-zero return code", "rc": 123, "start": "2022-03-01 10:27:46.788210", "stderr": "ovs-vsctl: 'del-port' command requires at least 1 arguments", "stderr_lines": ["ovs-vsctl: 'del-port' command requires at least 1 arguments"], "stdout": "", "stdout_lines": []}
fatal: [controller-0]: FAILED! => {"changed": true, "cmd": "ovs-vsctl list interface | awk '/name[ ]*: sp[it]-/ { print $3 }' | xargs -n1 ovs-vsctl del-port\n", "delta": "0:00:00.037408", "end": "2022-03-01 10:27:46.779019", "msg": "non-zero return code", "rc": 123, "start": "2022-03-01 10:27:46.741611", "stderr": "ovs-vsctl: 'del-port' command requires at least 1 arguments", "stderr_lines": ["ovs-vsctl: 'del-port' command requires at least 1 arguments"], "stdout": "", "stdout_lines": []}
fatal: [controller-2]: FAILED! => {"changed": true, "cmd": "ovs-vsctl list interface | awk '/name[ ]*: sp[it]-/ { print $3 }' | xargs -n1 ovs-vsctl del-port\n", "delta": "0:00:00.024752", "end": "2022-03-01 10:27:46.820819", "msg": "non-zero return code", "rc": 123, "start": "2022-03-01 10:27:46.796067", "stderr": "ovs-vsctl: 'del-port' command requires at least 1 arguments", "stderr_lines": ["ovs-vsctl: 'del-port' command requires at least 1 arguments"], "stdout": "", "stdout_lines": []}
fatal: [controller-1]: FAILED! => {"changed": true, "cmd": "ovs-vsctl list interface | awk '/name[ ]*: sp[it]-/ { print $3 }' | xargs -n1 ovs-vsctl del-port\n", "delta": "0:00:00.027672", "end": "2022-03-01 10:27:46.883587", "msg": "non-zero return code", "rc": 123, "start": "2022-03-01 10:27:46.855915", "stderr": "ovs-vsctl: 'del-port' command requires at least 1 arguments", "stderr_lines": ["ovs-vsctl: 'del-port' command requires at least 1 arguments"], "stdout": "", "stdout_lines": []}





Version-Release number of selected component (if applicable):


How reproducible: 
Always reproducible


Steps to Reproduce:
1. Deploy OvS DPDK NIC Partitioning
NIC config:
https://gitlab.cee.redhat.com/jpalanis/nic-part-tht/-/blob/main/osp16_ref/nic-configs/nicpart/computeovsdpdk-nicpartition-bond.yaml

2. Create NFV instances with vxlan dpdk management connectivity and sriov vlan data connectivity.
3. Perform OVN Migration

Actual results:

OVN migration should be successful
Expected results:
Failing OVN migration.

Additional info:

Comment 1 Arnau Verdaguer 2022-03-01 14:42:56 UTC
This bug was reported on 16.1: https://bugzilla.redhat.com/show_bug.cgi?id=2044341
and 16.2: https://bugzilla.redhat.com/show_bug.cgi?id=2051560

This problem was seen when migrating from ovs to ovn without any trunk ports.

*** This bug has been marked as a duplicate of bug 2044341 ***