<div dir="ltr">Hi Igor,<div>The line which is interesting for you: "Extension vpc_extension not supported by any of loaded plugins"</div><div>In core Neutron for ml2 there is a list of supported extension aliases:</div><div><a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200-L239">https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200-L239</a><br></div><div><br></div><div>And there is a similar for l3 also:</div><div><a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/services/l3_router/l3_router_plugin.py#L98-L110">https://opendev.org/openstack/neutron/src/branch/master/neutron/services/l3_router/l3_router_plugin.py#L98-L110</a><br></div><div><br></div><div>Or similarly for QoS:</div><div><a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/services/qos/qos_plugin.py#L76-L90">https://opendev.org/openstack/neutron/src/branch/master/neutron/services/qos/qos_plugin.py#L76-L90</a><br></div><div><br></div><div>So you need a plugin that uses the extension.</div><div><br></div><div>Good luck :-)</div><div>Lajos Katona (lajoskatona)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Igor Zhukov <<a href="mailto:fsb4000@yandex.ru">fsb4000@yandex.ru</a>> ezt írta (időpont: 2022. aug. 23., K, 16:04):<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 again!<br>
<br>
Do you know how to debug ML2 extension drivers?<br>
<br>
I created folder with two python files: vpc/extensions/vpc.py and vpc/plugins/ml2/drivers/vpc.py (also empty __init__.py files)<br>
<br>
I added to neuron.conf<br>
api_extensions_path = /path/to/vpc/extensions<br>
<br>
and I added to ml2_ini.conf<br>
extension_drivers = port_security, vpc.plugins.ml2.drivers.vpc:VpcExtensionDriver<br>
<br>
and my neutron.server.log has:<br>
<br>
INFO neutron.plugins.ml2.managers [-] Configured extension driver names: ['port_security', 'vpc_neutron.plugins.ml2.drivers.vpc:VpcExtensionDriver']<br>
WARNING stevedore.named [-] Could not load vpc_neutron.plugins.ml2.drivers.vpc:VpcExtensionDriver<br>
....<br>
INFO neutron.api.extensions [req-fd226631-b0cd-4ff8-956b-9470e7f26ebe - - - - -] Extension vpc_extension not supported by any of loaded plugins<br>
<br>
How can I find why the extension driver could not be loaded?<br>
<br>
> Hi,The fake_extension is used only in unit tests to test the extension framework, i.e. :<br>
> <a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/tests/unit/plugins/ml2/drivers/ext_test.py#L37" rel="noreferrer" target="_blank">https://opendev.org/openstack/neutron/src/branch/master/neutron/tests/unit/plugins/ml2/drivers/ext_test.py#L37</a><br>
> <br>
> If you would like to write an API extension check neutron-lib/api/definitions/ (and you can find the extensions "counterpart" under neutron/extensions in neutron repository)<br>
> <br>
> You can also check other Networking projects like networking-bgvpn, neutron-dynamic-routing to have examples of API extensions.<br>
> If you have an extension under neutron/extensions and there's somebody who uses it (see [1]) you will see it is loaded in neutron servers logs (something like this: "Loaded extension: address-group") and you can find it in the output of openstack extension list --network<br>
> <br>
> [1]: <a href="https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200" rel="noreferrer" target="_blank">https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L200</a><br>
> <br>
> Best wishes<br>
> Lajos Katona<br>
> <br>
> Igor Zhukov <<a href="mailto:fsb4000@yandex.ru" target="_blank">fsb4000@yandex.ru</a>> ezt írta (időpont: 2022. aug. 22., H, 19:41):<br>
> <br>
>> Hi all!<br>
>><br>
>> Sorry for a complete noob question but I can't figure it out 😿<br>
>><br>
>> So if I want to add Fake ML2 extension what should I do?<br>
>><br>
>> I have neutron server installed and I have the file: <a href="https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/extensions/fake_extension.py" rel="noreferrer" target="_blank">https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/extensions/fake_extension.py</a><br>
>><br>
>> How to configure neutron server, where should I put the file, should I create another files? How can I test that it works?<br>
</blockquote></div>