cant ping instance(local and floating) but router does fine

asked 2015-03-24 16:06:41 -0600

Shirker gravatar image

I followed step by step http://docs.openstack.org/juno/install-guide/install/yum/content/ (http://docs.openstack.org/juno/instal...) Im having

  1. Controller
  2. Compute
  3. Network node

My external net is 192.168.1.0/24. Interface enp5s0 on network node is added to ex-br. I have created a router, which is having assigned IP 192.168.1.67 (external). Virtual local net is 172.0.0.0

I have added a route on compute node to 172.0.0.0 via 192.168.1.67 and now im able to ping 172.0.0.1

But here is the problem comes: If am I creating instance with ext-net - it wont be created. Fails with error 'no valid host found' If Im creating instance with local net only, it goes through, but the IP is not being assigned to machine. In console its all fine:

+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks                         |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| 1f3c5e10-244f-4da6-a4ea-52b3aa76df20 | demo-instance1 | ACTIVE | -          | Running     | demo-net=172.0.0.2, 192.168.1.68 |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+

But when I login into VM, there is no any IP assigned. Even if I will add to eth0 IP 172.0.0.2, I'm not able to ping the local gateway

Im a bit frustrated with this issue. I tried to look into logs at network node, and I dont really see any WARNINGs or ERRORs

BTW, all machines are Centos 7, selinux is off. Neutron looks great too:

[root@controller ~]# neutron agent-list

+--------------------------------------+--------------------+--------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host               | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------------------+-------+----------------+---------------------------+
| 09ac9fa3-083c-48.. | Metadata agent     | node02.localdomain | :-)   | True           | neutron-metadata-agent    |
| 4a4ff3b8-b0b7-49.. | DHCP agent         | node02.localdomain | :-)   | True           | neutron-dhcp-agent        |
| 795e1c54-c958-43.. | Open vSwitch agent | node01.localdomain | :-)   | True           | neutron-openvswitch-agent |
| a42a3cab-8fc4-48.. | L3 agent           | node02.localdomain | :-)   | True           | neutron-l3-agent          |
| f2af8046-0c64-48.. | Open vSwitch agent | node02.localdomain | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+--------------------+-------+----------------+---------------------------+

I've tried nova-network and it just worked great. But neutron is demanded...

edit retag flag offensive close merge delete

Comments

  1. Verify dnsmasq is running for your private subnet && activate dnsmasq logging
    1. ip netns | grep private-net-id will give you corresponding qdhcp-namespace - qdhcp-xxxxxxxxxx
    2. ip netns exec qdhcp-xxxxxxxxxx ifconfig
dbaxps gravatar imagedbaxps ( 2015-03-25 00:56:45 -0600 )edit

As mentioned above, make sure dhcp is working and also can you explain the issue with external network i.e are you using admin account to create public n/w?

SGPJ gravatar imageSGPJ ( 2015-03-25 01:17:46 -0600 )edit

Yes, I use only admin, even to create instance. For some reason under user account neutron is not listing private net

Shirker gravatar imageShirker ( 2015-03-25 02:42:45 -0600 )edit

After executing ip netns exec qdhcp-xxxxxxxxxx ifconfig it gives me: tap10f2d3fe-13: flags=4163<up,broadcast,running,multicast> mtu 1500 inet 172.0.0.3 netmask 255.255.255.0 broadcast 172.0.0.255

but ip 172.0.0.3 is not being assigned to any VM or routers. My demo VM IP is 172.0.0.2

Shirker gravatar imageShirker ( 2015-03-25 02:46:14 -0600 )edit

What is tag value of tap10f2d3fe-13 on br-int ?

dbaxps gravatar imagedbaxps ( 2015-03-25 04:43:13 -0600 )edit