<div dir="ltr">Hello:<div><br></div><div>You need to specify two config files: the neutron.conf and the ML2 plugin one; in this case /etc/neutron/plugins/ml2/ml2_conf.ini. Other installers create a ML2 plugin config file per backend but this is not necessary.</div><div><br></div><div>Regards.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 30, 2020 at 8:29 AM Slawek Kaplonski <<a href="mailto:skaplons@redhat.com">skaplons@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Dnia środa, 30 grudnia 2020 01:07:42 CET Gabriel Omar Gamero Montenegro pisze:<br>
> Dear all,<br>
> <br>
> I'm following the OpenStack guide for<br>
>  the implementation of SR-IOV mechanism driver.<br>
> I'm planning to incorporate this driver to<br>
>  my current OpenStack deployment (Queens).<br>
> <br>
> Config SR-IOV Guide:<br>
> <a href="https://docs.openstack.org/neutron/queens/admin/config-sriov.html" rel="noreferrer" target="_blank">https://docs.openstack.org/neutron/queens/admin/config-sriov.html</a><br>
> <br>
> At point 2, section "Configure neutron-server (Controller)"<br>
>  they said that I have to add the 'plugin.ini' file<br>
>   as a parameter to the neutron-server service.<br>
> To do this they require to<br>
>  <<edit the appropriate initialization script to configure the<br>
>   neutron-server service to load the plugin configuration file>>:<br>
> --config-file /etc/neutron/neutron.conf<br>
> --config-file /etc/neutron/plugin.ini<br>
> <br>
> I'd like to know a few things:<br>
> <br>
> (1) Which plugin.ini file are talking about?<br>
<br>
That is IMO good question. I see this file for the first time now :)<br>
Looking at the commit [1] and commits which this patch reference to I think <br>
that this may be some old leftover which should be cleaned.<br>
But maybe Rodolfo will know more as he s our SR-IOV expert in the team.<br>
<br>
> (2) How to set up the neutron-server initialization script<br>
>  to add the plugin.ini file?<br>
>   I understand that this varies between OS distro<br>
>    (I'm currently using Ubuntu 16.04 LTS server)<br>
> <br>
> Here are some things I tried...<br>
> <br>
> I got the following results executing this command:<br>
> <br>
> systemctl status neutron-server.service<br>
> ● neutron-server.service - OpenStack Neutron Server<br>
>    Loaded: loaded (/lib/systemd/system/neutron-server.service;<br>
>     enabled; vendor preset: enabled)<br>
>    Active: active (running) since Tue 2020-12-29 18:13:50 -05<br>
>  Main PID: 38590 (neutron-server)<br>
>     Tasks: 44<br>
>    Memory: 738.8M<br>
>       CPU: 29.322s<br>
>    CGroup: /system.slice/neutron-server.service<br>
>            ├─38590 /usr/bin/python2 /usr/bin/neutron-server<br>
>             --config-file=/etc/neutron/neutron.conf<br>
>              --config-file=/etc/neutron/plugins/ml2/ml2_conf.ini<br>
>               --log-file=/var/log/neutron/neutron-server.log<br>
> ...<br>
> <br>
> I see 2 things:<br>
> <br>
> (i) When neutron-server is exectured,<br>
>  the following parameters are passed:<br>
> --config-file=/etc/neutron/neutron.conf<br>
> --config-file=/etc/neutron/plugins/ml2/ml2_conf.ini<br>
> --log-file=/var/log/neutron/neutron-server.log<br>
> <br>
> (ii) The file '/lib/systemd/system/neutron-server.service'<br>
>  is loaded and it has the following content:<br>
> ...<br>
> ExecStart=/etc/init.d/neutron-server systemd-start<br>
> ...<br>
> <br>
> This indicates me that it's executing<br>
>  '/etc/init.d/neutron-server' script.<br>
> So I suppose this is the file indicated to add the parameters<br>
>  of the SR-IOV OpenStack documentation,<br>
>   but I have no idea where to put them.<br>
> <br>
> For Red-Hat distros I found this documentation<br>
>  with the following configuration:<br>
> <a href="https://access.redhat.com/documentation/en-us/" rel="noreferrer" target="_blank">https://access.redhat.com/documentation/en-us/</a><br>
> red_hat_enterprise_linux_openstack_platform/7/html/networking_guide<br>
> /sr-iov-support-for-virtual-networking<br>
> <br>
> vi /usr/lib/systemd/system/neutron-server.service<br>
> ...<br>
> ExecStart=/usr/bin/neutron-server<br>
>  --config-file /usr/share/neutron/neutron-dist.conf<br>
>   --config-file /etc/neutron/neutron.conf<br>
>    --config-file /etc/neutron/plugin.ini<br>
>     --config-file /etc/neutron/plugins/ml2/ml2_conf_sriov.ini<br>
>      --log-file /var/log/neutron/server.log<br>
> <br>
> Thanks in advance,<br>
> Gabriel Gamero<br>
<br>
[1] <a href="https://github.com/openstack/neutron/commit/" rel="noreferrer" target="_blank">https://github.com/openstack/neutron/commit/</a><br>
c4e76908ae0d8c1e5bcb7f839df5e22094805299<br>
<br>
-- <br>
Slawek Kaplonski<br>
Principal Software Engineer<br>
Red Hat</blockquote></div>