Comment 3 for bug 1980235

Revision history for this message
Michal Arbet (michalarbet) wrote :

(openstack) bgp speaker list
+--------------------------------------+-------------+----------+------------+
| ID | Name | Local AS | IP Version |
+--------------------------------------+-------------+----------+------------+
| 165c1eac-2bc6-422b-9ff1-ae6c396f482c | bgpspeaker | 123 | 4 |
+--------------------------------------+-------------+----------+------------+
(openstack) bgp dragent list
+--------------------------------------+-------------+-------+-------+
| ID | Host | State | Alive |
+--------------------------------------+-------------+-------+-------+
| 937e9726-1e6a-48cb-abe0-652809cd6bf8 | controller0 | True | :-) |
| dd10802c-b5a2-4673-84d2-a26aa09199fc | controller1 | True | :-) |
+--------------------------------------+-------------+-------+-------+

(openstack) bgp speaker show dragents 165c1eac-2bc6-422b-9ff1-ae6c396f482c
The 'openstack bgp speaker show dragents' CLI is deprecated and will be removed in the future. Use 'openstack bgp dragent list' CLI instead.

(openstack) bgp speaker show dragents de024f06-f373-4e5f-8c60-02e2e4e737a9
The 'openstack bgp speaker show dragents' CLI is deprecated and will be removed in the future. Use 'openstack bgp dragent list' CLI instead.

(openstack) bgp dragent add speaker 937e9726-1e6a-48cb-abe0-652809cd6bf8 165c1eac-2bc6-422b-9ff1-ae6c396f482c
(openstack) bgp dragent add speaker dd10802c-b5a2-4673-84d2-a26aa09199fc 165c1eac-2bc6-422b-9ff1-ae6c396f482c
(openstack) bgp speaker show dragents 165c1eac-2bc6-422b-9ff1-ae6c396f482c
The 'openstack bgp speaker show dragents' CLI is deprecated and will be removed in the future. Use 'openstack bgp dragent list' CLI instead.
+--------------------------------------+-------------+-------+-------+
| ID | Host | State | Alive |
+--------------------------------------+-------------+-------+-------+
| 937e9726-1e6a-48cb-abe0-652809cd6bf8 | controller0 | True | :-) |
| dd10802c-b5a2-4673-84d2-a26aa09199fc | controller1 | True | :-) |
+--------------------------------------+-------------+-------+-------+

So, now I have one speaker scheduled to both controllers as you said this is standard deployment.
Then, if I go to one of controllers and just call docker stop neutron_bgp_dragent. I can see error below :

So, it doesn't matter if you have N speakers or just one. Behaviour is same:

2022-06-29 13:33:48.366 35 WARNING neutron.db.agentschedulers_db [req-be677f3a-c39a-4f43-82a2-cf2184e0412d - - - - -] Rescheduling bgp_speaker 165c1eac-2bc6-422b-9ff1-ae6c396f482c from agent 937e9726-1e6a-48cb-abe0-652809cd6bf8 because the agent did not report to the server in the last 150 seconds.
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db [req-be677f3a-c39a-4f43-82a2-cf2184e0412d - - - - -] Exception encountered during bgp_speaker rescheduling.: AttributeError: 'StaticScheduler' object has no attribute 'schedule'
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db Traceback (most recent call last):
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db File "/var/lib/kolla/venv/lib/python3.9/site-packages/neutron/db/agentschedulers_db.py", line 172, in reschedule_resources_from_down_agents
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db reschedule_resource(context, binding_resource_id)
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db File "/var/lib/kolla/venv/lib/python3.9/site-packages/neutron_dynamic_routing/db/bgp_dragentscheduler_db.py", line 168, in reschedule_bgp_speaker
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db self.schedule_bgp_speaker(context, bgp_speaker)
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db File "/var/lib/kolla/venv/lib/python3.9/site-packages/neutron_dynamic_routing/db/bgp_dragentscheduler_db.py", line 99, in schedule_bgp_speaker
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db agents = self.bgp_drscheduler.schedule(self, context,
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db AttributeError: 'StaticScheduler' object has no attribute 'schedule'
2022-06-29 13:33:48.419 35 ERROR neutron.db.agentschedulers_db