<div dir="ltr"><div><div>Hi !<br><br></div>Here is the log file. First error occurs at line 117. <br><br></div>Thank you !<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 7 avr. 2021 à 12:04, Slawek Kaplonski <<a href="mailto:skaplons@redhat.com">skaplons@redhat.com</a>> a écrit :<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>
Can You send me full neutron-server log? I will check if there is anything more there.<br>
<br>
Dnia środa, 7 kwietnia 2021 11:48:27 CEST Maxime d'Estienne pisze:<br>
> As Slawek Kaplonski told me, I enabled neutron debugging and I didn't find<br>
> why specific mechanism drivers are refusing to bind ports<br>
> on that host.<br>
> <br>
> I noticed that the VM can get an IP from DHCP, I see a link on the web<br>
> interface (network topology) between my physical network "provider" and the<br>
> VM. But this link disappeared when the VM crashed due to the error.<br>
> <br>
> Here are the previous DEBUG logs, just before the ERROR one.<br>
> <br>
> I don't succeed in getting more informed by these logs.<br>
> (/neutron/server.log)<br>
> <br>
> Thank you a lot for your time !<br>
> Maxime<br>
> <br>
> `2021-04-07 10:10:30.294 25623 DEBUG<br>
> > neutron.pecan_wsgi.hooks.policy_enforcement<br>
> > [req-a995e8eb-fde4-49be-b822-29f7e98b56d4 9c53e456ca2d4d07a4aecbf91c487cae<br>
> > d26b6143299a47e3a77feff04ae8b7a1 - default default] Attributes excluded by<br>
> > policy engine: ['binding:profile', 'binding:host_id', 'binding:vif_type',<br>
> > 'binding:vif_details'] _exclude_attributes_by_policy<br>
> > /usr/lib/python3/dist-packages/neutron/pecan_wsgi/hooks/policy_enforcement.py:256<br>
> ><br>
> > 2021-04-07 10:10:30.995 25626 DEBUG<br>
> > neutron.pecan_wsgi.hooks.policy_enforcement<br>
> > [req-706ad36e-31a1-4e5a-b9f6-17951ccb089a 9c53e456ca2d4d07a4aecbf91c487cae<br>
> > d26b6143299a47e3a77feff04ae8b7a1 - default default] Attributes excluded by<br>
> > policy engine: ['binding:profile', 'binding:host_id', 'binding:vif_type',<br>
> > 'binding:vif_details'] _exclude_attributes_by_policy<br>
> > /usr/lib/python3/dist-packages/neutron/pecan_wsgi/hooks/policy_enforcement.py:256<br>
> ><br>
> > 2021-04-07 10:10:31.105 25626 DEBUG<br>
> > neutron.pecan_wsgi.hooks.policy_enforcement<br>
> > [req-446ed89e-0697-4822-b69b-49b02ad9732d 9c53e456ca2d4d07a4aecbf91c487cae<br>
> > d26b6143299a47e3a77feff04ae8b7a1 - default default] Attributes excluded by<br>
> > policy engine: ['binding:profile', 'binding:host_id', 'binding:vif_type',<br>
> > 'binding:vif_details'] _exclude_attributes_by_policy<br>
> > /usr/lib/python3/dist-packages/neutron/pecan_wsgi/hooks/policy_enforcement.py:256<br>
> ><br>
> > 2021-04-07 10:10:31.328 25623 DEBUG neutron.api.v2.base<br>
> > [req-05e6a5c3-f5b4-45f4-8339-fbfa2a7eed8a b21b8901642c470b8f668965997c7922<br>
> > 0f23d567d2ce4599a1571d8fd5982f9a - default default] Request body: {'port':<br>
> > {'device_id': '6406a1b1-7f0b-4f8e-88dd-81dcded8299d', 'device_owner':<br>
> > 'compute:nova', 'binding:host_id': 'compute1'}} prepare_request_body<br>
> > /usr/lib/python3/dist-packages/neutron/api/v2/base.py:716<br>
> ><br>
> > 2021-04-07 10:10:31.980 25623 DEBUG neutron.plugins.ml2.managers<br>
> > [req-05e6a5c3-f5b4-45f4-8339-fbfa2a7eed8a b21b8901642c470b8f668965997c7922<br>
> > 0f23d567d2ce4599a1571d8fd5982f9a - default default] Attempting to bind port<br>
> > 2e702d95-34df-4b85-9206-75c28bbcb9da on host compute1 for vnic_type normal<br>
> > with profile bind_port<br>
> > /usr/lib/python3/dist-packages/neutron/plugins/ml2/managers.py:747<br>
> ><br>
> > 2021-04-07 10:10:31.981 25623 DEBUG neutron.plugins.ml2.managers<br>
> > [req-05e6a5c3-f5b4-45f4-8339-fbfa2a7eed8a b21b8901642c470b8f668965997c7922<br>
> > 0f23d567d2ce4599a1571d8fd5982f9a - default default] Attempting to bind port<br>
> > 2e702d95-34df-4b85-9206-75c28bbcb9da on host compute1 at level 0 using<br>
> > segments [{'id': 'a35c88a5-2234-4b2f-bab6-a5a17af42d1e', 'network_type':<br>
> > 'flat', 'physical_network': 'provider', 'segmentation_id': None,<br>
> > 'network_id': '45320836-f1a3-4e96-a3d8-59b95d633d1e'}] _bind_port_level<br>
> > /usr/lib/python3/dist-packages/neutron/plugins/ml2/managers.py:768<br>
> ><br>
> > 2021-04-07 10:10:31.981 25623 ERROR neutron.plugins.ml2.managers<br>
> > [req-05e6a5c3-f5b4-45f4-8339-fbfa2a7eed8a b21b8901642c470b8f668965997c7922<br>
> > 0f23d567d2ce4599a1571d8fd5982f9a - default default] Failed to bind port<br>
> > 2e702d95-34df-4b85-9206-75c28bbcb9da on host compute1 for vnic_type normal<br>
> > using segments [{'id': 'a35c88a5-2234-4b2f-bab6-a5a17af42d1e',<br>
> > 'network_type': 'flat', 'physical_network': 'provider', 'segmentation_id':<br>
> > None, 'network_id': '45320836-f1a3-4e96-a3d8-59b95d633d1e'}] `<br>
> ><br>
> ><br>
> Le jeu. 1 avr. 2021 à 21:36, Slawek Kaplonski <<a href="mailto:skaplons@redhat.com" target="_blank">skaplons@redhat.com</a>> a<br>
> écrit :<br>
> <br>
> > Hi,<br>
> ><br>
> > Dnia czwartek, 1 kwietnia 2021 14:44:21 CEST Maxime d'Estienne pisze:<br>
> > > Hello,<br>
> > ><br>
> > > I spent a lot of time troubleshooting my issue, which I described here :<br>
> > ><br>
> > <a href="https://serverfault.com/questions/1058969/cannot-create-an-instance-due-to-failed-binding" rel="noreferrer" target="_blank">https://serverfault.com/questions/1058969/cannot-create-an-instance-due-to-failed-binding</a><br>
> > ><br>
> > > To summarize, when I want to create an instance, binding fails on compute<br>
> > > node, the dhcp agent seems to give an ip to the VM but I have an error.<br>
> ><br>
> > What do You mean exactly? Failed binding of the port in Neutron? In such<br>
> > case<br>
> > nova will not boot vm so it can't get IP from DHCP.<br>
> ><br>
> > ><br>
> > > I don't know where to dig, besides what I have done.<br>
> ><br>
> > Please enable debug logs in neutron-server and look in its logs for the<br>
> > reason<br>
> > why it failed to bind port on specific host.<br>
> > Usually reason is dead L2 agent on host or mismatch in the agent's bridge<br>
> > mappings configuration in the agent.<br>
> ><br>
> > ><br>
> > > Thanks a lot for your help !<br>
> ><br>
> ><br>
> > --<br>
> > Slawek Kaplonski<br>
> > Principal Software Engineer<br>
> > Red Hat<br>
> <br>
<br>
<br>
-- <br>
Slawek Kaplonski<br>
Principal Software Engineer<br>
Red Hat</blockquote></div>