no ping to instance on compute node
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 ...
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 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
Could post commands , for
@dbaxps i did this part manually. But i edited my answer with the output of neutron router definition
Please , add