unable to create gateway for tenant router
I have finally completed my ubuntu openstack installation however i am unable to create an instance because my router cannot ping any IP outside of its assigned floating IP. While trying to create an instance, i got the network error Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed : Network is unreachable
I am able to ping the router from my controller but can't ping 8.8.8.8 or any external fqdn from it. Any ideas how i can assign a gateway to my br-ex interface so i can ping outside of my network?
root@controller:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 183.40.59.192 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.0.0.2 255.255.255.0 UG 0 0 0 tun-man
10.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun-man
10.0.1.0 10.0.1.2 255.255.255.0 UG 0 0 0 tun-tun
10.0.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun-tun
183.40.59.191 183.40.59.192 255.255.255.192 UG 0 0 0 eth0
183.40.59.191 0.0.0.0 255.255.255.192 U 0 0 0 eth0
185.40.152.96 0.0.0.0 255.255.255.240 U 0 0 0 br-ex
root@controller:~# ip netns
qrouter-a99819db-992b-4eb2-bc31-3f85262a0374
root@controller:~# ip netns exec qrouter-a99819db-992b-4eb2-bc31-3f85262a0374 route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
185.40.152.97 0.0.0.0 255.255.255.240 U 0 0 0 qg-7f77242f-2b
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-2bb6dc03-36
root@controller:~# neutron subnet-list
+--------------------------------------+-------------+----------------+--------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-------------+----------------+--------------------------------------------------+
| 1ca0fb84-30ee-477d-9f04-ece76acecb00 | demo-subnet | 192.168.1.0/24 | {"start": "192.168.1.2", "end": "192.168.1.254"} |
+--------------------------------------+-------------+----------------+--------------------------------------------------+
root@controller:~# neutron ext-list
+-----------------------+-----------------------------------------------+
| alias | name |
+-----------------------+-----------------------------------------------+
| ext-gw-mode | Neutron L3 Configurable external gateway mode |
| binding | Port Binding |
| metering | Neutron Metering |
| agent | agent |
| l3_agent_scheduler | L3 Agent Scheduler |
| external-net | Neutron external network |
| quotas | Quota management support |
| l3-ha | HA Router extension |
| fwaas | Firewall service |
| multi-provider | Multi Provider Network |
| vpnaas | VPN service |
| lbaas | LoadBalancing service |
| extraroute | Neutron Extra Route |
| lbaas_agent_scheduler | Loadbalancer Agent Scheduler |
| provider | Provider Network |
| extra_dhcp_opt | Neutron Extra DHCP opts |
| service-type | Neutron Service Type Management |
| security-group | security-group |
| dhcp_agent_scheduler | DHCP Agent Scheduler |
| router | Neutron L3 Router |
| allowed-address-pairs | Allowed Address Pairs |
| dvr | Distributed Virtual Router |
+-----------------------+-----------------------------------------------+
root@controller:~# neutron net-list
+--------------------------------------+--------------------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------------------+-----------------------------------------------------+
| fe93f12d-2eb3-4466-b22f-b0a84933cda0 | public-net | faf5db42-cdaf-47c0-baaa-3b1604985b6f |
| 1cb7dc35-c379-42fd-b27b-1a995d3a89cf | demo-net | 1ca0fb84-30ee-477d-9f04-ece76acecb00 192.168.1.0/24 |
+--------------------------------------+--------------------+-----------------------------------------------------+