Adding A 2nd Network Node - Non-HA

asked 2014-10-14 14:47:42 -0500

Nastooh gravatar image

Seems that I cannot enable dhcp server on a newly added neutron node. Added 2nd neutron node to a multi-node configuration, on it defined a new subnet and router, and connected the router to an external network. The conf files on both neutron nodes are identical, other than nova_metadata_ip. Here are the few diagnostics that I’ve performed:
1- On the newly added network node:

root@node11:/var/log/neutron# ip netns
qrouter-59615cc2-d6f9-422d-8770-2e8613619795
qdhcp-405b87c7-52e5-4630-b9a5-b869b3c5f899
qdhcp-724959a9-6676-4978-82a4-7dfa2bd93f05
qdhcp-5bd7a20e-91c7-4855-9c2b-19693e6d42ba
where qrouter and qdhcp-405b87c7-52e5-4630-b9a5-b869b3c5f899 are the newly added router and internal subnet. (The rest are the existing internal subnet and the external subnet.)

2- From an external machine can ping the external gateway on the new router.
3- From the newly added network node can ping the dhcp server address, via dhcp namespace, i.e.,

ip netns exec qdhcp-405b87c7-52e5-4630-b9a5-b869b3c5f899 ping 192.168.20.3
PING 192.168.20.3 (192.168.20.3) 56(84) bytes of data.
64 bytes from 192.168.20.3: icmp_seq=1 ttl=64 time=0.039 ms

4- From the newly added network node cannot ping the internal gateway address, via dhcp namespace, i.e.,

ip netns exec qdhcp-405b87c7-52e5-4630-b9a5-b869b3c5f899 ping 192.168.20.1

5- From the newly added network node cannot ping the dhcp server address, via router namespace, i.e.,

ip netns exec qrouter-59615cc2-d6f9-422d-8770-2e8613619795 ping 192.168.20.3

6- From the newly added network node can ping the internal gateway address, via router namespace, i.e.,

ip netns exec qrouter-59615cc2-d6f9-422d-8770-2e8613619795 ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
64 bytes from 192.168.20.1: icmp_seq=1 ttl=64 time=0.042 ms

7- root@node11:/var/log/neutron# neutron agent-list

+--------------------------------------+--------------------+--------+-------+----------------+
| id                                   | agent_type         | host   | alive | admin_state_up |
+--------------------------------------+--------------------+--------+-------+----------------+
| 030d908f-7592-4535-b91e-8384f4585c43 | Metadata agent     | node11 | :-)   | True           |
| 063b0df1-5001-4400-8656-e09bd20ace61 | Open vSwitch agent | node11 | :-)   | True           |
| 07e7193f-cfe2-4906-ae0a-28b5cf766fe2 | Open vSwitch agent | node8  | :-)   | True           |
| 28208cd9-fb87-4d5f-977f-b1abc1939dd0 | Open vSwitch agent | node9  | :-)   | True           |
| 324d7b53-e172-4f08-99bd-3ae7fa01c3f6 | Loadbalancer agent | node1  | :-)   | True           |
| 3f62849d-dfb5-4375-8818-8397bbe7f68e | Loadbalancer agent | node11 | :-)   | True           |
| 4960e89a-b1ce-44c1-a2b2-3e086ea9621b | L3 agent           | node11 | :-)   | True           |
| 4d402f31-ea27-4807-9272-32cb2776def1 | DHCP agent         | node11 | :-)   | True           |
| 5879a8b4-81c0-4b9b-8f90-71ddba0c33c4 | L3 agent           | node1  | :-)   | True           |
| 6e4d602c-e7a2-41dc-a74e-55d9613557aa | Metering agent     | node1  | :-)   | True           |
| 74430ee0-d76a-4ee8-869d-0d4cca918362 | DHCP agent         | node1  | :-)   | True           |
| d8606859-e845-453f-ac93-f1c0fd064cb3 | Open vSwitch agent | node5  | :-)   | True           |
| dddc6c25-1f5c-4b9c-b45d-da09cdba8f0b | Metering agent     | node11 | :-)   | True           |
| debc84a8-1dbd-4467-8002-6422ab6cf4b8 | Open vSwitch agent | node1  | :-)   | True           |
| f7541a53-ded6-4b83-a697-6a91670e3a5e | Metadata agent     | node1  | :-)   | True           |
+--------------------------------------+--------------------+--------+-------+----------------+

8- dhcp log indicates that internal gateway is not reachable:

…
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent     raise RuntimeError(m)
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent RuntimeError: 
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-405b87c7-52e5-4630-b9a5-b869b3c5f899', 'ip', 'route', 'replace', 'default', 'via', '192.168.20.1', 'dev', 'ns-0111aa65-38']
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent Exit code: 2
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent Stdout: ''
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: Network is unreachable\n'
2014-10-14 19:32:46.517 7896 TRACE neutron.agent.dhcp_agent 
2014-10-14 19:32:52.213 7896 ERROR neutron.agent ...
(more)
edit retag flag offensive close merge delete