Ask Your Question
0

no ping to instance on compute node

asked 2015-03-04 08:53:04 -0500

yaroni gravatar image

updated 2015-03-08 07:17:52 -0500

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.150,end=172.16.7.170  --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@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

      neutron net-create extnet --router:external=True
    Created a new network:
    +---------------------------+--------------------------------------+
    | Field                     | Value                                |
    +---------------------------+--------------------------------------+
    | admin_state_up            | True                                 |
    | id                        | e3d90cbb-1547-4a97-af81-56655db7cc80 |
    | name                      | extnet                               |
    | provider:network_type     | vxlan                                |
    | provider:physical_network |                                      |
    | provider:segmentation_id  | 12                                   |
    | router:external           | True                                 |
    | shared                    | False                                |
    | status                    | ACTIVE                               |
    | subnets                   |                                      |
    | tenant_id                 | d8d051738a4c48cc9f1baa0f160e0f3a     |
    +---------------------------+--------------------------------------+
    [root@localhost ~(keystone_admin)]# neutron subnet-create extnet --allocation-pool start=172.16.7.150,end=172.16.7.170  --gateway 172.16.1.1 --enable_dhcp=False  172.16.0.0/16
    Created a new subnet:
    +-------------------+--------------------------------------------------+
    | Field             | Value                                            |
    +-------------------+--------------------------------------------------+
    | allocation_pools  | {"start": "172.16.7.150", "end": "172.16.7.170"} |
    | cidr              | 172.16.0.0/16                                    |
    | dns_nameservers   |                                                  |
    | enable_dhcp       | False                                            |
    | gateway_ip        | 172.16.1.1                                       |
    | host_routes       |                                                  |
    | id                | 2342dbe6-f5ba-43dd-a20a-ed91d14d2a5f             |
    | ip_version        | 4                                                |
    | ipv6_address_mode |                                                  |
    | ipv6_ra_mode      |                                                  |
    | name              |                                                  |
    | network_id        | e3d90cbb-1547-4a97-af81-56655db7cc80             |
    | tenant_id         | d8d051738a4c48cc9f1baa0f160e0f3a                 |
    +-------------------+--------------------------------------------------+
    [root@localhost ~(keystone_admin)]# neutron net-create InternalNet1  --gateway 172.16.1.1
    Bad Request (HTTP 400) (Request-ID: req-1bf8f9c3-b28e-43a1-ba44-cd931ee619e7)
    [root@localhost ~(keystone_admin)]# neutron net-create InternalNet1
    Created a new network:
    +---------------------------+--------------------------------------+
    | Field                     | Value                                |
    +---------------------------+--------------------------------------+
    | admin_state_up            | True                                 |
    | id                        | 56239cb3-2018-4407-bd87-c58ee32e9ba6 |
    | name                      | InternalNet1                         |
    | provider:network_type     | vxlan                                |
    | provider:physical_network |                                      |
    | provider:segmentation_id  | 13                                   |
    | router:external           | False                                |
    | shared                    | False                                |
    | status                    | ACTIVE                               |
    | subnets                   |                                      |
    | tenant_id                 | d8d051738a4c48cc9f1baa0f160e0f3a     |
    +---------------------------+--------------------------------------+

fdsf

    [root@localhost ~(keystone_admin)]# neutron net-list
    +--------------------------------------+--------------+------------------------------------------------------+
    | id                                   | name         | subnets                                              |
    +--------------------------------------+--------------+------------------------------------------------------+
    | cc339bfc-a634-4d49-86e2-1f081bc4ffdf | public       | 63710304-4d54-4e7c-b2ca-0a99c3c69f86 172.24 ...
(more)
edit retag flag offensive close merge delete

Comments

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

Pavel Kutishchev gravatar imagePavel Kutishchev ( 2015-03-04 09:42:35 -0500 )edit

@Pavel Kutishchev 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. I edit my post with more details

yaroni gravatar imageyaroni ( 2015-03-08 04:19:19 -0500 )edit

Could post commands , for

1. Creating Neutron Router. 
2. Setting up gateway to external network
3. Setting up interface to private network
dbaxps gravatar imagedbaxps ( 2015-03-08 04:48:37 -0500 )edit

@dbaxps i did this part manually. But i edited my answer with the output of neutron router definition

yaroni gravatar imageyaroni ( 2015-03-08 05:02:20 -0500 )edit

Please , add

1. `ovs-vsctl show` on both nodes
2. `ifconfig` on both nodes
dbaxps gravatar imagedbaxps ( 2015-03-08 05:28:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-08 07:48:00 -0500

dbaxps gravatar image

You may follow prepared answer-file posted here http://bderzhavets.blogspot.com/2014/...
ignoring the rest of article related with multiple cinder backend set up. It will result following config

Controller+Network Node + Compute Node RDO Juno

Feel free update answer-file and install nova-compute on Controller as well

edit flag offensive delete link more

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: 2015-03-04 08:53:04 -0500

Seen: 949 times

Last updated: Mar 08 '15