Bug 1392634 - TripleO does not configure Neutron to read ml2_conf_sriov.ini when sriovnicswitch mech driver is enabled
Summary: TripleO does not configure Neutron to read ml2_conf_sriov.ini when sriovnicsw...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Yariv
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 23:42 UTC by Benjamin Schmaus
Modified: 2020-02-14 18:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-07 02:37:16 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1633158 0 None None None 2016-11-07 23:42:36 UTC

Description Benjamin Schmaus 2016-11-07 23:42:37 UTC
Description of problem:

In a deploy where:

  NeutronMechanismDrivers: ['openvswitch','sriovnicswitch']

and

  controllerExtraConfig:
    neutron::plugins::ml2::supported_pci_vendor_devs: ['8086:10ed']
    neutron::plugins::ml2::sriov_agent_required: true

are configured, /etc/neutron/plugins/ml2/ml2_conf_sriov.ini is modified, however it is not called by the neutron-server service:

45391 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log

This prevents the configuration from taking effect on the controllers. Prior versions stored the ml2_sriov configuration in ml2_conf.ini and did not display this issue.


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

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Benjamin Schmaus 2016-11-07 23:43:28 UTC
"neutron::plugins::ml2::supported_pci_vendor_devs: ['8086:10ed']" and "neutron::plugins::ml2::agent_required: True" are set in controllerExtraConfig and the corresponding change to /etc/neutron/plugins/ml2/ml2_conf_sriov.ini is made, however that file is not use by neutron-server systemd unit file. unit file needs to be modified or the configuration should be stored in a config file or directory called by neutron-server:

# egrep -v "^$|^#" /etc/neutron/plugins/ml2/ml2_conf_sriov.ini 
[DEFAULT]
[ml2_sriov]
supported_pci_vendor_devs = 8086:10ed
agent_required=True

# cat /usr/lib/systemd/system/neutron-server.service 
[Unit]
Description=OpenStack Neutron Server
After=syslog.target network.target

[Service]
Type=notify
User=neutron
ExecStart=/usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log
PrivateTmp=true
NotifyAccess=all
KillMode=process

[Install]
WantedBy=multi-user.target

Comment 8 Saravanan KR 2017-02-13 05:18:32 UTC
@Brent, Given the fact that the corresponding puppet code has been deprecated in Ocata, I don't think it is a good idea to do an change related to it. https://review.openstack.org/#/c/427607/5/manifests/plugins/ml2.pp

I would just say that, we just update the manual steps doc to create the link or whatever needed for it, given the fact that it is for OSP9. This would be simple and straight forward.


Note You need to log in before you can comment on or make changes to this bug.