Brief Description
-----------------
sriov vf lower ifname must be unique across entire system
Adding a VF interface to a parent interface results in an exception during worker unlock if other workers in the system have parent sriov interfaces that are also used by other workers
Severity
--------
Minor, workaround exists
Steps to Reproduce
------------------
Install yow-cgcs-r720-3-7 with 20.06
Provision workers so their interface config resembles (like below) this interface naming convention;
ie: where parent sriov interface names are not globally unique across workers
* add a VF interface to the parent sriov interface:
system host-if-add -c pci-sriov compute-1 childvf1 vf sriov0 -N 2 --vf-driver netdevice
* attempt to unlock worker compute-1
Expected Behavior
------------------
worker host should unlock successfully
Actual Behavior
----------------
system host-if-add -c pci-sriov compute-1 childvf1 vf sriov0 -N 2 --vf-driver netdevice
and attempting to unlock compute-1:
[sysadmin@controller-0 ~(keystone_admin)]$ system host-unlock compute-1
Remote error: InvalidParameterValue Multiple entries found for interface sriov0
[u'Traceback (most recent call last):\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/amqp.py", line 437, in _process_data\n **args)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/conductor/manager.py", line 11190, in evaluate_app_reapply\n armada_format=True, armada_chart_info=app.charts, combined=True)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/helm/helm.py", line 49, in _wrapper\n return func(self, *args, **kwargs)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/helm/helm.py", line 643, in generate_helm_application_overrides\n cnamespace)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/helm/helm.py", line 406, in _get_helm_application_overrides\n cnamespace)})\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/helm/helm.py", line 311, in _get_helm_chart_overrides\n cnamespace))\n', u' File "/opt/platform/helm/20.06/stx-openstack/1.0-1-centos-stable-versioned/plugins/k8sapp_openstack_avs/helm/neutron.py", line 29, in get_overrides\n overrides = super(NeutronAVSHelm, self).get_overrides(namespace)\n', u' File "/opt/platform/helm/20.06/stx-openstack/1.0-1-centos-stable-versioned/plugins/k8sapp_openstack/helm/neutron.py", line 45, in get_overrides\n \'hosts\': self._get_per_host_overrides()\n', u' File "/opt/platform/helm/20.06/stx-openstack/1.0-1-centos-stable-versioned/plugins/k8sapp_openstack/helm/neutron.py", line 98, in _get_per_host_overrides\n \'sriov_agent\': self._get_dynamic_sriov_agent_config(host),\n', u' File "/opt/platform/helm/20.06/stx-openstack/1.0-1-centos-stable-versioned/plugins/k8sapp_openstack/helm/neutron.py", line 205, in _get_dynamic_sriov_agent_config\n port_name = self._get_interface_port_name(iface)\n', u' File "/opt/platform/helm/20.06/stx-openstack/1.0-1-centos-stable-versioned/plugins/k8sapp_openstack/helm/neutron.py", line 277, in _get_interface_port_name\n lower_iface = self.dbapi.iinterface_get(iface[\'uses\'][0])\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/objects/__init__.py", line 111, in wrapper\n result = fn(*args, **kwargs)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/db/sqlalchemy/api.py", line 2280, in iinterface_get\n return self._iinterface_get(iinterface_id, ihost)\n', u' File "/usr/lib64/python2.7/site-packages/sysinv/db/sqlalchemy/api.py", line 2274, in _iinterface_get\n err="Multiple entries found for interface %s" % iinterface_id)\n', u'InvalidParameterValue: Multiple entries found for interface sriov0\n'].
[sysadmin@controller-0 ~(keystone_admin)]$
Reproducibility
---------------
100% (3 out of 3)
System Configuration
--------------------
Simplex
wolfpass-15
Branch/Pull Time/Commit
-----------------------
###
### Wind River Cloud Platform
### Release 20.06
###
### Wind River Systems, Inc.
###
Brief Description
-----------------
sriov vf lower ifname must be unique across entire system
Adding a VF interface to a parent interface results in an exception during worker unlock if other workers in the system have parent sriov interfaces that are also used by other workers
Severity
--------
Minor, workaround exists
Steps to Reproduce
------------------
Install yow-cgcs-r720-3-7 with 20.06
Provision workers so their interface config resembles (like below) this interface naming convention;
ie: where parent sriov interface names are not globally unique across workers
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-if-list compute-0 ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+ ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+ 2352-4387- 893b-cedcae5968 97 | cluster0 | platform | ethernet | None | [u'enp5s0f1'] | [] | [] | MTU=9000 | 16ee-4142- b18c-5c7673b5d8 8d | mgmt0 | platform | ethernet | None | [u'eno2'] | [] | [] | MTU=1500 | 4221-4311- 98d9-1184777603 b2 | data0 | data | ethernet | None | [u'enp5s0f0'] | [] | [u'data1'] | MTU=9216, accelerated= True | 3fcb-447e- af3c-e4bb8041d0 6e | pthru0 | pci-passthrough | ethernet | None | [u'enp6s0f0'] | [] | [] | MTU=9216 | 3605-495f- 868a-8bfddbad02 69 | sriov0 | pci-sriov | ethernet | None | [u'enp6s0f1'] | [] | [] | MTU=9216 | 142a-4d95- bd6b-f2e7b3c9c4 92 | data1 | data | vlan | 11 | [] | [u'data0'] | [] | MTU=1600, accelerated= True | ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+ controller- 0 ~(keystone_admin)]$ system host-if-list compute-1 ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------- +------ ------- --+---- ------- ------- ------- --+ ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------- +------ ------- --+---- ------- ------- ------- --+ 3019-422b- b778-dbd6ed3549 23 | data0 | data | ethernet | None | [u'enp5s0f0'] | [] | [u'data1'] | MTU=9216, accelerated= True | f805-4d60- a3a6-8652208d38 2e | sriov1 | pci-sriov | ethernet | None | [u'enp6s0f1'] | [] | [u'childvf1'] | MTU=1500 | c162-4c05- ad8e-72d6c749db 1f | data1 | data | vlan | 11 | [] | [u'data0'] | [] | MTU=1600, accelerated= True | b688-4104- 9fd6-2f0040f9f1 a1 | cluster0 | platform | ethernet | None | [u'enp5s0f1'] | [] | [] | MTU=9000 | 3a36-4ddb- 82c3-cff0246f25 73 | mgmt0 | platform | ethernet | None | [u'eno2'] | [] | [] | MTU=1500 | 10ad-4690- a760-43e1b96d58 2f | childvf1 | pci-sriov | vf | None | [] | [u'sriov1'] | [] | MTU=1500 | 2d0c-4805- a662-e6be9fdaf8 7f | pthru0 | pci-passthrough | ethernet | None | [u'enp6s0f0'] | [] | [] | MTU=9216 | ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------- +------ ------- --+---- ------- ------- ------- --+ controller- 0 ~(keystone_admin)]$ system host-if-list compute-2 ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+ ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+ ec2c-4439- a25c-4f35d84ab2 74 | data0 | data | ethernet | None | [u'enp5s0f0'] | [] | [u'data1'] | MTU=9216, accelerated= True | be89-4dc9- 9a8d-ff8786ee07 25 | cluster0 | platform | ethernet | None | [u'enp5s0f1'] | [] | [] | MTU=9000 | d0d1-43b8- 8208-86451228e7 5b | mgmt0 | platform | ethernet | None | [u'eno2'] | [] | [] | MTU=1500 | 6b1d-4419- ae2b-13e82e0201 52 | pthru0 | pci-passthrough | ethernet | None | [u'enp6s0f0'] | [] | [] | MTU=9216 | 7c04-4e38- 8ff0-3c23be1c78 3f | sriov0 | pci-sriov | ethernet | None | [u'enp6s0f1'] | [] | [] | MTU=9216 | c88a-40f8- 9661-2698aebc16 27 | data1 | data | vlan | 11 | [] | [u'data0'] | [] | MTU=1600, accelerated= True | ------- ------- ------- ------- ----+-- ------- -+----- ------- -----+- ------- --+---- -----+- ------- ------- +------ ------+ ------- ------+ ------- ------- ------- ------+
+------
| uuid | name | class | type | vlan id | ports | uses i/f | used by i/f | attributes |
+------
| 2e2deb35-
| 4c649308-
| 8fcfb649-
| a9d22b05-
| c232d284-
| c38d7ba9-
+------
[sysadmin@
+------
| uuid | name | class | type | vlan id | ports | uses i/f | used by i/f | attributes |
+------
| 1a2ae942-
| 2c15889e-
| 3caace95-
| 75b737da-
| 7cb7c1a8-
| ab6c45c9-
| b134a8e1-
+------
[sysadmin@
+------
| uuid | name | class | type | vlan id | ports | uses i/f | used by i/f | attributes |
+------
| 157c70a0-
| 226cf243-
| 2396b127-
| 609f22a4-
| 67bc6215-
| a70f5f84-
+------
* add a VF interface to the parent sriov interface:
system host-if-add -c pci-sriov compute-1 childvf1 vf sriov0 -N 2 --vf-driver netdevice
* attempt to unlock worker compute-1
Expected Behavior
------------------
worker host should unlock successfully
Actual Behavior
----------------
system host-if-add -c pci-sriov compute-1 childvf1 vf sriov0 -N 2 --vf-driver netdevice
and attempting to unlock compute-1:
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-unlock compute-1 rValue Multiple entries found for interface sriov0 python2. 7/site- packages/ sysinv/ openstack/ common/ rpc/amqp. py", line 437, in _process_data\n **args)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ openstack/ common/ rpc/dispatcher. py", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ manager. py", line 11190, in evaluate_ app_reapply\ n armada_format=True, armada_ chart_info= app.charts, combined=True)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ helm/helm. py", line 49, in _wrapper\n return func(self, *args, **kwargs)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ helm/helm. py", line 643, in generate_ helm_applicatio n_overrides\ n cnamespace)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ helm/helm. py", line 406, in _get_helm_ application_ overrides\ n cnamespace)})\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ helm/helm. py", line 311, in _get_helm_ chart_overrides \n cnamespace))\n', u' File "/opt/platform/ helm/20. 06/stx- openstack/ 1.0-1-centos- stable- versioned/ plugins/ k8sapp_ openstack_ avs/helm/ neutron. py", line 29, in get_overrides\n overrides = super(NeutronAV SHelm, self).get_ overrides( namespace) \n', u' File "/opt/platform/ helm/20. 06/stx- openstack/ 1.0-1-centos- stable- versioned/ plugins/ k8sapp_ openstack/ helm/neutron. py", line 45, in get_overrides\n \'hosts\': self._get_ per_host_ overrides( )\n', u' File "/opt/platform/ helm/20. 06/stx- openstack/ 1.0-1-centos- stable- versioned/ plugins/ k8sapp_ openstack/ helm/neutron. py", line 98, in _get_per_ host_overrides\ n \'sriov_agent\': self._get_ dynamic_ sriov_agent_ config( host),\ n', u' File "/opt/platform/ helm/20. 06/stx- openstack/ 1.0-1-centos- stable- versioned/ plugins/ k8sapp_ openstack/ helm/neutron. py", line 205, in _get_dynamic_ sriov_agent_ config\ n port_name = self._get_ interface_ port_name( iface)\ n', u' File "/opt/platform/ helm/20. 06/stx- openstack/ 1.0-1-centos- stable- versioned/ plugins/ k8sapp_ openstack/ helm/neutron. py", line 277, in _get_interface_ port_name\ n lower_iface = self.dbapi. iinterface_ get(iface[ \'uses\ '][0])\ n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ objects/ __init_ _.py", line 111, in wrapper\n result = fn(*args, **kwargs)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ db/sqlalchemy/ api.py" , line 2280, in iinterface_get\n return self._iinterfac e_get(iinterfac e_id, ihost)\n', u' File "/usr/lib64/ python2. 7/site- packages/ sysinv/ db/sqlalchemy/ api.py" , line 2274, in _iinterface_get\n err="Multiple entries found for interface %s" % iinterface_id)\n', u'InvalidParame terValue: Multiple entries found for interface sriov0\n']. controller- 0 ~(keystone_admin)]$
Remote error: InvalidParamete
[u'Traceback (most recent call last):\n', u' File "/usr/lib64/
[sysadmin@
Reproducibility
---------------
100% (3 out of 3)
System Configuration ------- ------
-------
Simplex
wolfpass-15
Branch/Pull Time/Commit ------- ------- --
-------
###
### Wind River Cloud Platform
### Release 20.06
###
### Wind River Systems, Inc.
###
SW_VERSION="20.06" "2020-06- 17_20-00- 00"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
SRC_BUILD_ID="22"
JOB="WRCP_ 20.06_Build" "yow-cgts4- lx.wrs. com" "2020-06- 17 20:02:06 -0400"
BUILD_BY="jenkins"
BUILD_NUMBER="22"
BUILD_HOST=
BUILD_DATE=
Last Pass
---------
n/a
Timestamp/Logs
--------------
2020-06- 22T18:56: 06.000
Test Activity
-------------
Feature Testing
Workaround
----------
Name parent sriov interfaces to be globally unique