Ask Your Question
0

VM can't ping to tenant router gateway

asked 2016-10-06 02:45:26 -0500

Steve Jobs gravatar image

updated 2016-10-07 05:34:14 -0500

Hi,

I've deplyoed openstack KILO in three VMs.

controller Node : eth0: 192.168.122.74
compute Node    : eth0: 192.168.122.168  eth1: 10.0.1.31
network Node    : eth0: 192.168.122.126  eth1: 10.0.1.21  eth2: unnumbered

I followed all the steps with successful result as per : http://docs.openstack.org/kilo/install-guide/install/apt/content/ch_basic_environment.html (http://docs.openstack.org/kilo/instal...)

I'm having an issue that the created VM is not able to ping it's tenant router gateway. Ping to external router works from external network.

root@controller:/home/user# nova service-list

+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-cert        | controller | internal | enabled | up    | 2016-10-05T10:42:34.000000 | -               |
| 2  | nova-consoleauth | controller | internal | enabled | up    | 2016-10-05T10:42:25.000000 | -               |
| 3  | nova-scheduler   | controller | internal | enabled | up    | 2016-10-05T10:42:26.000000 | -               |
| 4  | nova-conductor   | controller | internal | enabled | up    | 2016-10-05T10:42:26.000000 | -               |
| 6  | nova-compute     | compute    | nova     | enabled | up    | 2016-10-05T10:42:29.000000 | -               |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+

root@controller:/home/user# neutron agent-list

+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| id                                   | agent_type         | host    | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| 1819bade-aa9b-4465-a0f3-ce0b233f6334 | Open vSwitch agent | network | :-)   | True           | neutron-openvswitch-agent |
| 2e3489df-3ec7-426e-97db-3d8b62a8d59a | Metadata agent     | network | :-)   | True           | neutron-metadata-agent    |
| 74fad5b9-ae8d-48eb-abb5-9eac20b94b81 | DHCP agent         | network | :-)   | True           | neutron-dhcp-agent        |
| e408958f-fefa-42c1-86fa-1744eedc7b63 | L3 agent           | network | :-)   | True           | neutron-l3-agent          |
| f77f3c24-13c1-4a57-9ef3-45e1241d461e | Open vSwitch agent | compute | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+

root@controller:/home/user# neutron net-list

+--------------------------------------+----------+---------------------------------------------------+
| id                                   | name     | subnets                                           |
+--------------------------------------+----------+---------------------------------------------------+
| cf99345f-4f1d-4ab9-a959-8d5f9db6424c | demo-net | 313b8642-b3d7-49df-af1e-c9e10529fdae 19.16.1.0/24 |
| d31bb7e0-ecf2-4c4c-ab53-6ee9c63a9f5e | ext-net  | 42ba2b5d-3b30-4136-8086-c0103faff475 200.1.0.0/24 |
+--------------------------------------+----------+---------------------------------------------------+

root@controller:/home/user# nova list

+--------------------------------------+----------------+--------+------------+-------------+---------------------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks                        |
+--------------------------------------+----------------+--------+------------+-------------+---------------------------------+
| 5bc3773c-9054-4963-a13d-d13dc65af467 | demo-instance1 | ACTIVE | -          | Running     | demo-net=19.16.1.7, 200.1.0.102 |
+--------------------------------------+----------------+--------+------------+-------------+---------------------------------+

root@controller:/home/user/firefox# nova console-log demo-instance1

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-80-virtual (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #116-Ubuntu SMP Mon Mar 23 17:28:52 UTC 2015 (Ubuntu 3.2.0-80.116-virtual 3.2.68)
[    0.000000] Command line: LABEL=cirros-rootfs ro console=tty1 console=ttyS0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[    0.000000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000001ffe0000 (usable)
[    0.000000]  BIOS-e820: 000000001ffe0000 - 0000000020000000 (reserved)
[    0.000000]  BIOS-e820: 00000000feffc000 - 00000000ff000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.8 present.
[    0.000000] No AGP bridge found
[    0.000000] last_pfn = 0x1ffe0 max_arch_pfn = 0x400000000
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] found SMP MP-table at [ffff8800000f0eb0] f0eb0
[    0.000000] init_memory_mapping: 0000000000000000-000000001ffe0000
[    0.000000] RAMDISK: 1fc72000 - 1ffd0000
[    0.000000] ACPI: RSDP 00000000000f0cb0 00014 (v00 BOCHS )
[    0.000000] ACPI: RSDT 000000001ffe181b 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
[    0.000000] ACPI: FACP 000000001ffe0e48 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 000000001ffe0040 00E08 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
[    0.000000] ACPI: FACS 000000001ffe0000 00040
[    0.000000] ACPI: SSDT 000000001ffe0ebc 008E7 (v01 ...
(more)
edit retag flag offensive close merge delete

Comments

please share nova-compute.log & neutron server logs

Praveen N gravatar imagePraveen N ( 2016-10-07 03:04:34 -0500 )edit

Hi Praveen N. Thanks for reply,

Question is edited with the logs you've aked.

Steve Jobs gravatar imageSteve Jobs ( 2016-10-07 05:35:43 -0500 )edit

3 answers

Sort by » oldest newest most voted
1

answered 2017-10-25 03:23:35 -0500

mrshaggis gravatar image

I have the same problem, using GRE tenant network. I have noticed in my setup that the vif-bind fails. You can see this in server.log, dhcp_agent.log. Basically OVS fails to create the dnsmasq listening process....still not sure why.....did you ever resolve this problem?

edit flag offensive delete link more

Comments

Were you able to resolve it ?If yes can you please tell how you managed to do it

Deepa gravatar imageDeepa ( 2018-11-27 07:24:19 -0500 )edit
0

answered 2018-06-24 04:56:06 -0500

novainfinite gravatar image

updated 2018-09-11 01:12:19 -0500

ip netns should show 3 ports

edit flag offensive delete link more
0

answered 2016-10-06 16:36:55 -0500

VSR gravatar image

updated 2016-10-06 20:44:35 -0500

Looks like the Cirros VM dod not get IP address assigned. Can you login to the instance and check? ifconfig -a arp -a ping from the VM. Ensure DHCP is enabled for the Private network. -VJ.

edit flag offensive delete link more

Comments

Hi, VSR Thanks for reply.

I logged in VM through novnc and checked, but VM doesn't get ant IP, no arp entry present at all. Ping from VM to gateway not working as I raised in a question.

Steve Jobs gravatar imageSteve Jobs ( 2016-10-07 05:39:09 -0500 )edit

Can you please go back and chack if you have enabled DNS service when created the tenant private network?

VSR gravatar imageVSR ( 2016-10-09 16:03:26 -0500 )edit

Yes, This is how I create tenant network.

neutron subnet-create demo-net 19.16.1.0/24 \
--name demo-subnet --dns-nameserver 8.8.4.4 --gateway 19.16.1.1
Steve Jobs gravatar imageSteve Jobs ( 2016-10-11 01:49:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-06 02:43:52 -0500

Seen: 883 times

Last updated: Sep 11 '18