2014-10-06 20:37:56 |
Armando Migliaccio |
description |
WIth DVR enabled, performing a 'neutron router-gateway-clear' creates a router namespace and a binding on every compute node.
root@Linux:~# neutron router-create router1
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| distributed | True |
| external_gateway_info | |
| id | f31b9373-2946-48d8-b6d2-50596162febd |
| name | router1 |
| routes | |
| status | ACTIVE |
| tenant_id | 2b009be2540a458eaed8cf7d651fc68c |
+-----------------------+--------------------------------------+
root@Linux:~# neutron l3-agent-list-hosting-router f31b9373-2946-48d8-b6d2-50596162febd
root@Linux:~# neutron router-gateway-clear f31b9373-2946-48d8-b6d2-50596162febd
Removed gateway from router f31b9373-2946-48d8-b6d2-50596162febd
root@Linux:~# neutron l3-agent-list-hosting-router f31b9373-2946-48d8-b6d2-50596162febd
+--------------------------------------+--------------------------------------+----------------+-------+
| id | host | admin_state_up | alive |
+--------------------------------------+--------------------------------------+----------------+-------+
| 07615fcd-a9b3-4081-91e8-f0189a19a7f0 | overcloud-novacompute3-4aec3ezflrbp | True | :-) |
| 096fb891-a330-47d8-b215-6e6111763961 | overcloud-novacompute11-tb4nbhopurh3 | True | :-) |
| 11c6e8da-06f6-4546-a4bc-5604c51d4027 | overcloud-novacompute16-73uyrqna65cv | True | :-) |
| 2b1f019c-0996-4bb3-83ac-10f2282d7e04 | overcloud-novacompute17-bwxlkqfqmcq2 | True | :-) |
| 30f22724-267e-452b-b20f-37b517d9fb3b | overcloud-novacompute13-v7wnrei5vcfl | True | :-) |
| 40cf7636-b639-4597-8fea-2e55a3caf168 | overcloud-novacompute21-3hnnn2o675kv | True | :-) |
| 42437ccf-0462-4eb9-824c-4799f43b5af9 | overcloud-novacompute0-4livrqcyum64 | True | :-) |
| 573002a3-ef18-4f09-9d44-ebdb726e586a | overcloud-novacompute5-gxw6y4tcwta5 | True | :-) |
| 60e730e2-9ea3-444b-806a-177440fc37fd | overcloud-novacompute19-3caohck3xtpm | True | :-) |
| 6f8a3d30-e7a3-4110-b7a0-4631ca5e6389 | overcloud-novacompute12-uqpqd3soidmb | True | :-) |
| 796cf9ea-ff66-4615-9e24-5d65e11195a7 | overcloud-novacompute20-2xj2chsys4ux | True | :-) |
| 7a6a0342-b6e8-461f-b691-5913883dd5b1 | overcloud-novacompute6-5x7azyiif3h6 | True | :-) |
| 7d6ebb2a-8e33-436e-a7ea-0a23dcbc26ab | overcloud-novacompute10-cuv6kw35ijvq | True | :-) |
| 9444f292-2d9c-4b26-abf5-10c64c9713c5 | overcloud-novacompute15-si3luwq2wear | True | :-) |
| 98a5b703-504a-43fe-975c-430fb42ca61f | overcloud-novacompute18-5yo7fwdu3tgi | True | :-) |
| 998f7067-75d8-44b9-a651-8d1f1acca062 | overcloud-novacompute8-j5fo4tv2ssye | True | :-) |
| 9ec538c4-60b6-4606-9571-d108764607d3 | overcloud-novacompute9-vcvfpdyybn34 | True | :-) |
| b9fc298b-8e16-4d57-adea-5fde05c80065 | overcloud-novacompute1-spsmzbnh5gwl | True | :-) |
| c5a0aa20-714a-406f-bdcd-e464b4dfd5ef | overcloud-novacompute7-tuj4iztu6fkp | True | :-) |
| c978b1df-b092-43a1-9e2e-ebfd5cd66036 | overcloud-novacompute14-qzrhkxdr76wa | True | :-) |
| d644d186-67ee-4ac3-a225-66eef8de2b6c | overcloud-novacompute22-3gh5njls4osi | True | :-) |
| f9381ac1-5605-448e-8916-9900b26218bb | overcloud-novacompute2-wyzyfitbpq3i | True | :-) |
+--------------------------------------+--------------------------------------+----------------+-------+ |
1) Create a router: neutron router-create test
2) Expect no router bindings with:
neutron l3-agent-list-hosting-router
3) Clear the gateway: neutron router-gateway-clear test
4) Expect no router bindings with:
neutron l3-agent-list-hosting-router
This time the command shows that the router is bound to an agent(s).
In the DVR case, this is particularly bad, as the binding may cause namespace creations on the hosts running the L3 agents. |
|