[neutron] detecting l3-agent readiness

Slawek Kaplonski skaplons at redhat.com
Tue Mar 14 16:47:27 UTC 2023


Hi,

Dnia poniedziałek, 13 marca 2023 16:35:43 CET Felix Hüttner pisze:
> Hi Mohammed,
> 
> > Subject: [neutron] detecting l3-agent readiness
> >
> > Hi folks,
> >
> > I'm working on improving the stability of rollouts when using Kubernetes as a control plane, specifically around the L3 agent, it seems that I have not found a clear way to detect in the code path where the L3 agent has finished it's initial sync..
> >
> 
> We build such a solution here: https://gitlab.com/yaook/images/neutron-l3-agent/-/blob/devel/files/startup_wait_for_ns.py
> Basically we are checking against the neutron api what routers should be on the node and then validate that all keepalived processes are up and running.

That would work only for HA routers. If You would also have routers which aren't "ha" this method may fail.

> 
> > Am I missing it somewhere or is the architecture built in a way that doesn't really answer that question?
> >
> 
> Adding a option in the neutron api would be a lot nicer. But i guess that also counts for l2 and dhcp agents.
> 
> 
> > Thanks
> > Mohammed
> >
> >
> > --
> > Mohammed Naser
> > VEXXHOST, Inc.
> 
> --
> Felix Huettner
> Diese E Mail enthält möglicherweise vertrauliche Inhalte und ist nur für die Verwertung durch den vorgesehenen Empfänger bestimmt. Sollten Sie nicht der vorgesehene Empfänger sein, setzen Sie den Absender bitte unverzüglich in Kenntnis und löschen diese E Mail. Hinweise zum Datenschutz finden Sie hier<https://www.datenschutz.schwarz>.
> 


-- 
Slawek Kaplonski
Principal Software Engineer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230314/4f193215/attachment.sig>


More information about the openstack-discuss mailing list