[Openstack-operators] [Ask OpenStack] "no ping to instance on compute node"

Yaron Illouz yaroni at radcom.com
Sun Mar 8 09:01:06 UTC 2015


I do have net.ipv4.ip_forward=1 in controller and compute node

How do you set  with GATEWAY=<router node="" ip=""> ?

 

As I wrote in my question I did set --gateway 172.16.1.1

 

On controller node 

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface

0.0.0.0         172.16.1.1      0.0.0.0         UG    0      0        0
br-ex

169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0
ens192

169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0
br-ex

172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0
br-ex

 

On compute node 

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface

0.0.0.0         172.16.1.1      0.0.0.0         UG    0      0        0
eno1

169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0
eno1

172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0
eno1

 

[root at localhost ~(keystone_admin)]# neutron net-list

+--------------------------------------+--------------+-----------------
-------------------------------------+

| id                                   | name         | subnets
|

+--------------------------------------+--------------+-----------------
-------------------------------------+

| cc339bfc-a634-4d49-86e2-1f081bc4ffdf | public       |
63710304-4d54-4e7c-b2ca-0a99c3c69f86 172.24.4.224/28 |

| de862bfd-dcc6-496c-9a34-272191a8f32b | InternalNet1 |
f475e1a9-738f-44ec-85fe-130af69777b2 10.67.78.0/24   |

| 19e32c31-8025-4704-956b-05df2b9a2864 | private      |
db7d4b61-49f9-4d34-9ca7-4bccd481ccaf 10.0.0.0/24     |

| d3aa8562-836c-4d6e-90ee-3426f1424b73 | extnet       |
2a8b41da-a9b6-4156-b1e0-9c2af7948b58 172.16.0.0/16   |

+--------------------------------------+--------------+-----------------
-------------------------------------+

 

 

This is the internal net

 

[root at localhost ~(keystone_admin)]# neutron net-show InternalNet1

+---------------------------+--------------------------------------+

| Field                     | Value                                |

+---------------------------+--------------------------------------+

| admin_state_up            | True                                 |

| id                        | de862bfd-dcc6-496c-9a34-272191a8f32b |

| name                      | InternalNet1                         |

| provider:network_type     | vxlan                                |

| provider:physical_network |                                      |

| provider:segmentation_id  | 13                                   |

| router:external           | False                                |

| shared                    | True                                 |

| status                    | ACTIVE                               |

| subnets                   | f475e1a9-738f-44ec-85fe-130af69777b2 |

| tenant_id                 | d8d051738a4c48cc9f1baa0f160e0f3a     |

+---------------------------+--------------------------------------+

[root at localhost ~(keystone_admin)]# neutron subnet-show
f475e1a9-738f-44ec-85fe-130af69777b2

+-------------------+------------------------------------------------+

| Field             | Value                                          |

+-------------------+------------------------------------------------+

| allocation_pools  | {"start": "10.67.78.2", "end": "10.67.78.254"} |

| cidr              | 10.67.78.0/24                                  |

| dns_nameservers   | 172.16.1.121                                   |

| enable_dhcp       | True                                           |

| gateway_ip        | 10.67.78.1                                     |

| host_routes       |                                                |

| id                | f475e1a9-738f-44ec-85fe-130af69777b2           |

| ip_version        | 4                                              |

| ipv6_address_mode |                                                |

| ipv6_ra_mode      |                                                |

| name              | InternalSub1                                   |

| network_id        | de862bfd-dcc6-496c-9a34-272191a8f32b           |

| tenant_id         | d8d051738a4c48cc9f1baa0f160e0f3a               |

+-------------------+------------------------------------------------+

 

 

And this is the external net

 

[root at localhost ~(keystone_admin)]# neutron net-show extnet

+---------------------------+--------------------------------------+

| Field                     | Value                                |

+---------------------------+--------------------------------------+

| admin_state_up            | True                                 |

| id                        | d3aa8562-836c-4d6e-90ee-3426f1424b73 |

| name                      | extnet                               |

| provider:network_type     | vxlan                                |

| provider:physical_network |                                      |

| provider:segmentation_id  | 12                                   |

| router:external           | True                                 |

| shared                    | True                                 |

| status                    | ACTIVE                               |

| subnets                   | 2a8b41da-a9b6-4156-b1e0-9c2af7948b58 |

| tenant_id                 | d8d051738a4c48cc9f1baa0f160e0f3a     |

+---------------------------+--------------------------------------+

[root at localhost ~(keystone_admin)]# neutron subnet-show
2a8b41da-a9b6-4156-b1e0-9c2af7948b58

+-------------------+--------------------------------------------------+

| Field             | Value                                            |

+-------------------+--------------------------------------------------+

| allocation_pools  | {"start": "172.16.7.120", "end": "172.16.7.150"} |

| cidr              | 172.16.0.0/16                                    |

| dns_nameservers   |                                                  |

| enable_dhcp       | True                                             |

| gateway_ip        | 172.16.1.1                                       |

| host_routes       |                                                  |

| id                | 2a8b41da-a9b6-4156-b1e0-9c2af7948b58             |

| ip_version        | 4                                                |

| ipv6_address_mode |                                                  |

| ipv6_ra_mode      |                                                  |

| name              |                                                  |

| network_id        | d3aa8562-836c-4d6e-90ee-3426f1424b73             |

| tenant_id         | d8d051738a4c48cc9f1baa0f160e0f3a                 |

 

________________________________

From: communitymngr at openstack.org [mailto:communitymngr at openstack.org] 
Sent: Wednesday, March 04, 2015 5:58 PM
To: Yaron Illouz
Subject: [Ask OpenStack] "no ping to instance on compute node"

 

 

 

Pavel Kutishchev
<https://ask.openstack.org/en/users/8866/pavel-kutishchev/>  posted a
comment
<https://ask.openstack.org/en/question/62252/no-ping-to-instance-on-comp
ute-node/?comment=62255#comment-62255>  

Commented by Pavel Kutishchev: 

Please show param net.ipv4.ip_forward on router node which located in
/etc/sysctl.conf file it should equals to 1 net.ipv4.ip_forward = 1 Do
you able ping compute node from the host node? Make sure that you've set
up your nodes with GATEWAY=<router node="" ip=""> Check route -n output
of both hosts

In reply to yaroni: no ping to instance on compute node 

Tags: packstack, juno_rdo. 

I installed with packstack on 2 ips (rdo juno)

packstack --install-hosts=ip1,ip2

Than on ip1 created a bridge br-ex, and add it with interface to ovs.
Created a network

neutron net-create extnet --router:external=True

And a subnet

neutron subnet-create extnet --allocation-pool
start=172.16.7.1,end=172.16.7.20  --gateway 172.16.1.1
--enable_dhcp=False  172.16.0.0/16

Than i created manually a local network, a router, and connected the
external and the internal network to the router.
The instance is launched on ip2
I have no ping to the floating ip of the instance. I can connect to the
instance (internal ip) through the router on the controller node

ip netns exec qdhcp-de862bfd-dcc6-496c-9a34-272191a8f32b ssh -i
/sriov.pem cirros at 10.67.78.2

There is no error log in nova compute log and not in the ovs agent log

To change frequency, language and content of these alerts, please visit
your user profile
<https://ask.openstack.org/en/users/9241/yaroni/subscriptions/> . 
If you believe that this message was sent in an error, please email
about it the forum administrator at communitymngr at openstack.org. 

________________________________

Sincerely,
Ask OpenStack Administrator

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150308/a206f756/attachment.html>


More information about the OpenStack-operators mailing list