[Openstack-operators] [Ask OpenStack] "no ping to instance on compute node"
Yaron Illouz
yaroni at radcom.com
Sun Mar 8 10:11:50 UTC 2015
My Router is "Myrouter"
[root at localhost ~(keystone_admin)]# neutron router-list
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
| id | name |
external_gateway_info
| distributed | ha |
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
| 2720614a-05c7-4b16-9eb5-799e9a8e7060 | Myrouter | {"network_id":
"d3aa8562-836c-4d6e-90ee-3426f1424b73", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"2a8b41da-a9b6-4156-b1e0-9c2af7948b58", "ip_address": "172.16.7.120"}]}
| False | False |
| e57a1047-2ae2-42e5-ab50-ec995ff1e913 | router1 | {"network_id":
"cc339bfc-a634-4d49-86e2-1f081bc4ffdf", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"63710304-4d54-4e7c-b2ca-0a99c3c69f86", "ip_address": "172.24.4.226"}]}
| False | False |
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
neutron router-show 2720614a-05c7-4b16-9eb5-799e9a8e7060
| Field | Value
| admin_state_up | True
| distributed | False
| external_gateway_info | {"network_id":
"d3aa8562-836c-4d6e-90ee-3426f1424b73", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"2a8b41da-a9b6-4156-b1e0-9c2af7948b58", "ip_address": "172.16.7.120"}]}
| ha | False
| id | 2720614a-05c7-4b16-9eb5-799e9a8e7060
| name | Myrouter
| routes |
| status | ACTIVE
| tenant_id | d8d051738a4c48cc9f1baa0f160e0f3a
________________________________
From: communitymngr at openstack.org [mailto:communitymngr at openstack.org]
Sent: Sunday, March 08, 2015 12:04 PM
To: Yaron Illouz
Subject: [Ask OpenStack] "no ping to instance on compute node"
dbaxps <https://ask.openstack.org/en/users/2513/dbaxps/> posted a
comment
<https://ask.openstack.org/en/question/62252/no-ping-to-instance-on-comp
ute-node/?comment=62442#comment-62442>
Commented by dbaxps:
Could post commands , for
1. Creating Neutron Router.
2. Setting up gateway to external network
3. Setting up interface to private network
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
Edit:
I do have net.ipv4.ip_forward=1 in controller and compute node
How do you set with GATEWAY=<router node="" ip=""> ?
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 |
My Router is "Myrouter"
[root at localhost ~(keystone_admin)]# neutron router-list
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
| id | name |
external_gateway_info
| distributed | ha |
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
| 2720614a-05c7-4b16-9eb5-799e9a8e7060 | Myrouter | {"network_id":
"d3aa8562-836c-4d6e-90ee-3426f1424b73", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"2a8b41da-a9b6-4156-b1e0-9c2af7948b58", "ip_address": "172.16.7.120"}]}
| False | False |
| e57a1047-2ae2-42e5-ab50-ec995ff1e913 | router1 | {"network_id":
"cc339bfc-a634-4d49-86e2-1f081bc4ffdf", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"63710304-4d54-4e7c-b2ca-0a99c3c69f86", "ip_address": "172.24.4.226"}]}
| False | False |
+--------------------------------------+----------+---------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------+-------------+-------+
neutron router-show 2720614a-05c7-4b16-9eb5-799e9a8e7060
| Field | Value
| admin_state_up | True
| distributed | False
| external_gateway_info | {"network_id":
"d3aa8562-836c-4d6e-90ee-3426f1424b73", "enable_snat": true,
"external_fixed_ips": [{"subnet_id":
"2a8b41da-a9b6-4156-b1e0-9c2af7948b58", "ip_address": "172.16.7.120"}]}
| ha | False
| id | 2720614a-05c7-4b16-9eb5-799e9a8e7060
| name | Myrouter
| routes |
| status | ACTIVE
| tenant_id | d8d051738a4c48cc9f1baa0f160e0f3a
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/25b0e8e5/attachment-0001.html>
More information about the OpenStack-operators
mailing list