(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
(openstack) bgp speaker list ------- ------- ------- ------- ----+-- ------- ----+-- ------- -+----- ------- + ------- ------- ------- ------- ----+-- ------- ----+-- ------- -+----- ------- + 2bc6-422b- 9ff1-ae6c396f48 2c | bgpspeaker | 123 | 4 | ------- ------- ------- ------- ----+-- ------- ----+-- ------- -+----- ------- + ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+ ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+ 1e6a-48cb- abe0-652809cd6b f8 | controller0 | True | :-) | b5a2-4673- 84d2-a26aa09199 fc | controller1 | True | :-) | ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+
+------
| ID | Name | Local AS | IP Version |
+------
| 165c1eac-
+------
(openstack) bgp dragent list
+------
| ID | Host | State | Alive |
+------
| 937e9726-
| dd10802c-
+------
(openstack) bgp speaker show dragents 165c1eac- 2bc6-422b- 9ff1-ae6c396f48 2c
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-02e2e4e737 a9
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-652809cd6b f8 165c1eac- 2bc6-422b- 9ff1-ae6c396f48 2c b5a2-4673- 84d2-a26aa09199 fc 165c1eac- 2bc6-422b- 9ff1-ae6c396f48 2c 2bc6-422b- 9ff1-ae6c396f48 2c ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+ ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+ 1e6a-48cb- abe0-652809cd6b f8 | controller0 | True | :-) | b5a2-4673- 84d2-a26aa09199 fc | controller1 | True | :-) | ------- ------- ------- ------- ----+-- ------- ----+-- -----+- ------+
(openstack) bgp dragent add speaker dd10802c-
(openstack) bgp speaker show dragents 165c1eac-
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-
| dd10802c-
+------
So, now I have one speaker scheduled to both controllers as you said this is standard deployment. bgp_dragent. I can see error below :
Then, if I go to one of controllers and just call docker stop neutron_
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.agentschedul ers_db [req-be677f3a- c39a-4f43- 82a2-cf2184e041 2d - - - - -] Rescheduling bgp_speaker 165c1eac- 2bc6-422b- 9ff1-ae6c396f48 2c from agent 937e9726- 1e6a-48cb- abe0-652809cd6b f8 because the agent did not report to the server in the last 150 seconds. db.agentschedul ers_db [req-be677f3a- c39a-4f43- 82a2-cf2184e041 2d - - - - -] Exception encountered during bgp_speaker rescheduling.: AttributeError: 'StaticScheduler' object has no attribute 'schedule' db.agentschedul ers_db Traceback (most recent call last): db.agentschedul ers_db File "/var/lib/ kolla/venv/ lib/python3. 9/site- packages/ neutron/ db/agentschedul ers_db. py", line 172, in reschedule_ resources_ from_down_ agents db.agentschedul ers_db reschedule_ resource( context, binding_ resource_ id) db.agentschedul ers_db File "/var/lib/ kolla/venv/ lib/python3. 9/site- packages/ neutron_ dynamic_ routing/ db/bgp_ dragentschedule r_db.py" , line 168, in reschedule_ bgp_speaker db.agentschedul ers_db self.schedule_ bgp_speaker( context, bgp_speaker) db.agentschedul ers_db File "/var/lib/ kolla/venv/ lib/python3. 9/site- packages/ neutron_ dynamic_ routing/ db/bgp_ dragentschedule r_db.py" , line 99, in schedule_ bgp_speaker db.agentschedul ers_db agents = self.bgp_ drscheduler. schedule( self, context, db.agentschedul ers_db AttributeError: 'StaticScheduler' object has no attribute 'schedule' db.agentschedul ers_db
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.
2022-06-29 13:33:48.419 35 ERROR neutron.