<div dir="ltr">I have below plugins loaded in neutron.conf<div><br></div><div>core_plugin = ml2<br>service_plugins = ovn-router, qos, segments, port_forwarding<br></div><div><br></div><div>and below extension drivers ml2_conf.ini</div><div><br></div><div>mechanism_drivers = ovn<br>extension_drivers = port_security, qos<br></div><div><br></div><div>Ammad</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 2, 2021 at 1:09 PM Ammad Syed <<a href="mailto:syedammad83@gmail.com">syedammad83@gmail.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"><div dir="ltr">Hi Slawek,<div><br></div><div>I don't see any output with below command.</div><div><br></div><div>neutron ext-list | grep stateful-security-group<br></div><div><br></div><div>I have checked logs and found below in neutron-server.log.</div><div><br></div><div># grep stateful-security-group neutron-server.log</div><div><br></div><div>2021-11-02 13:02:20.846 998 DEBUG neutron.api.extensions [req-b022ced2-f365-4ab9-9f61-25e915231e02 - - - - -] Ext name="Stateful security group" alias="stateful-security-group" description="Indicates if the security group is stateful or not" updated="2019-11-26T09:00:00-00:00" _check_extension /usr/lib/python3/dist-packages/neutron/api/extensions.py:416<br>2021-11-02 13:02:20.846 998 INFO neutron.api.extensions [req-b022ced2-f365-4ab9-9f61-25e915231e02 - - - - -] Extension stateful-security-group not supported by any of loaded plugins<br></div><div><br></div><div>Do I need to do any change in neutron server configuration?</div><div><br></div><div>Ammad</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 2, 2021 at 1:04 PM Slawek Kaplonski <<a href="mailto:skaplons@redhat.com" target="_blank">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>
On wtorek, 2 listopada 2021 08:51:04 CET Ammad Syed wrote:<br>
> Hi,<br>
> <br>
> I have upgraded my lab to latest xena release and ovn 21.09 and ovs 2.16. I<br>
> am trying to create stateless security group. But its getting failed with<br>
> below error message.<br>
> <br>
> # openstack security group  create --stateless sec02-stateless<br>
> Error while executing command: BadRequestException: 400, Unrecognized<br>
> attribute(s) 'stateful'<br>
> <br>
> I see below logs in neutron server logs.<br>
> <br>
> 2021-11-02 12:47:41.921 1346 DEBUG neutron.wsgi [-] (1346) accepted<br>
> ('172.16.40.45', 41272) server<br>
> /usr/lib/python3/dist-packages/eventlet/wsgi.py:992<br>
> 2021-11-02 12:47:42.166 1346 DEBUG neutron.api.v2.base<br>
> [req-b6a37fff-090f-4754-9df7-6e4314ed9481 19844bf62a7b498eb443508ef150e9b8<br>
> 98687873a146418eaeeb54a01693669f - default default] Request body:<br>
> {'security_group': {'name': 'sec02-stateless', 'stateful': False,<br>
> 'description': 'sec02-stateless'}} prepare_request_body<br>
> /usr/lib/python3/dist-packages/neutron/api/v2/base.py:729<br>
> 2021-11-02 12:47:42.167 1346 WARNING neutron.api.v2.base<br>
> [req-b6a37fff-090f-4754-9df7-6e4314ed9481 19844bf62a7b498eb443508ef150e9b8<br>
> 98687873a146418eaeeb54a01693669f - default default] An exception happened<br>
> while processing the request body. The exception message is [Unrecognized<br>
> attribute(s) 'stateful'].: webob.exc.HTTPBadRequest: Unrecognized<br>
> attribute(s) 'stateful'<br>
> 2021-11-02 12:47:42.167 1346 INFO neutron.api.v2.resource<br>
> [req-b6a37fff-090f-4754-9df7-6e4314ed9481 19844bf62a7b498eb443508ef150e9b8<br>
> 98687873a146418eaeeb54a01693669f - default default] create failed (client<br>
> error): Unrecognized attribute(s) 'stateful'<br>
> 2021-11-02 12:47:42.168 1346 INFO neutron.wsgi<br>
> [req-b6a37fff-090f-4754-9df7-6e4314ed9481 19844bf62a7b498eb443508ef150e9b8<br>
> 98687873a146418eaeeb54a01693669f - default default] 172.16.40.45 "POST<br>
> /v2.0/security-groups HTTP/1.1" status: 400  len: 317 time: 0.2455938<br>
> <br>
> Any advice on how to fix it ?<br>
> <br>
> Ammad<br>
<br>
Do You have 'stateful-security-group' API extension enabled? You can check it <br>
with command<br>
<br>
    neutron ext-list<br>
<br>
If it's not loaded, You can check in the neutron-server logs while it wasn't <br>
loaded properly.<br>
<br>
-- <br>
Slawek Kaplonski<br>
Principal Software Engineer<br>
Red Hat</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<div><br></div><div><br></div><div>Syed Ammad Ali</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Regards,<div><br></div><div><br></div><div>Syed Ammad Ali</div></div>