what's your enviroment ? while in my enviroment,folowing your steps,it's ok!
when the vm is booted,the router is scheduled on the compute node: [root@controller-kilo ~]# neutron l3-agent-list-hosting-router demo-router +--------------------------------------+------------------------+----------------+-------+----------+ | id | host | admin_state_up | alive | ha_state | +--------------------------------------+------------------------+----------------+-------+----------+ | 0ad9782a-2d73-4cf0-9f5a-8762fe312516 | compute-kilo-1 | True | :-) | | | af482f32-9fd5-43e0-9403-fc49099c5434 | network-kilo.novalocal | True | :-) | | +--------------------------------------+------------------------+----------------+-------+----------+
when the vm is deleted,the router is not scheduled on the compute node:
[root@controller-kilo ~]# neutron l3-agent-list-hosting-router demo-router +--------------------------------------+------------------------+----------------+-------+----------+ | id | host | admin_state_up | alive | ha_state | +--------------------------------------+------------------------+----------------+-------+----------+ | af482f32-9fd5-43e0-9403-fc49099c5434 | network-kilo.novalocal | True | :-) | | +--------------------------------------+------------------------+----------------+-------+----------+
what's your enviroment ? while in my enviroment,folowing your steps,it's ok!
when the vm is booted,the router is scheduled on the compute node: r-kilo ~]# neutron l3-agent- list-hosting- router demo-router ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+ ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+ 2d73-4cf0- 9f5a-8762fe3125 16 | compute-kilo-1 | True | :-) | | 9fd5-43e0- 9403-fc49099c54 34 | network- kilo.novalocal | True | :-) | | ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+
[root@controlle
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 0ad9782a-
| af482f32-
+------
when the vm is deleted,the router is not scheduled on the compute node:
[root@controlle r-kilo ~]# neutron l3-agent- list-hosting- router demo-router ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+ ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+ 9fd5-43e0- 9403-fc49099c54 34 | network- kilo.novalocal | True | :-) | | ------- ------- ------- ------- ----+-- ------- ------- ------- -+----- ------- ----+-- -----+- ------- --+
+------
| id | host | admin_state_up | alive | ha_state |
+------
| af482f32-
+------