bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

Can't full access to internet from instance , maybe problem dns ! #129

Closed rubber-ant closed 10 years ago

rubber-ant commented 10 years ago

So do you suggest to upgrade all nodes ubuntu with : deb http://archive.gplhost.com/debian grizzly main deb http://archive.gplhost.com/debian grizzly-backports main

at the moment I have

openvswitch-switch | 1.4.0-1ubuntu1.5 | http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages openvswitch-switch | 1.4.0-1ubuntu1 | http://gb.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages openvswitch | 1.4.0-1ubuntu1 | http://gb.archive.ubuntu.com/ubuntu/ precise/universe Sources openvswitch | 1.4.0-1ubuntu1.5 | http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe Sources

I have 2 compute / 1 net / 1 cont:

I can ping vm each other, I can ssh from outside , inside the vm I can ping google and bbc but I can't do apt-get update from example a vm with ubuntu cloud image or not able to surf from a vm instace with ubuntu desktop . so I think is a problem with DNs .

grep dns /var/log/syslog loki is my net node ! from net node : infinity Sep 24 14:32:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:32:43 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:32:43 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:33:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:33:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:33:37 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:33:37 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:34:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:34:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:34:21 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:34:21 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:35:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:35:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:35:05 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:35:05 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:35:51 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:35:51 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:36:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:36:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:36:39 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:36:39 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:37:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:37:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:37:29 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:37:29 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:38:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:38:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:38:16 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:38:16 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:39:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:39:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:39:07 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:39:07 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:39:58 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:39:58 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:40:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:40:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:40:54 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:40:54 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:41:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:41:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:41:45 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:41:45 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:42:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:42:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:42:29 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:42:29 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:43:03 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:43:03 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:43:21 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:43:21 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:44:04 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:44:04 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:44:04 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:44:04 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:44:56 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:44:56 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:45:04 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:45:04 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:45:45 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:45:45 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:46:04 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:46:04 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:46:34 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:46:34 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4 Sep 24 14:47:04 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a Sep 24 14:47:04 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.3 fa:16:3e:32:fa:5a 50-50-1-3 Sep 24 14:47:17 loki dnsmasq-dhcp[19298]: DHCPREQUEST(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf Sep 24 14:47:17 loki dnsmasq-dhcp[19298]: DHCPACK(tap689b75b7-f5) 50.50.1.4 fa:16:3e:cb:f7:cf 50-50-1-4

also quantum port-list +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+ | 01c154df-4573-4c7f-a276-9965eb2cdd37 | | fa:16:3e:cb:f7:cf | {"subnet_id": "3f2c9eef-62fb-4698-9887-a7cc0ff5f361", "ip_address": "50.50.1.4"} | | 0dc95fec-89c0-405b-895b-ec2362fa5392 | | fa:16:3e:4e:22:e8 | {"subnet_id": "ea685e5e-103c-4649-8984-3c283f7d6f97", "ip_address": "192.168.221.103"} | | 12c93ea2-d1af-4f86-b7de-587f5153856e | | fa:16:3e:32:fa:5a | {"subnet_id": "3f2c9eef-62fb-4698-9887-a7cc0ff5f361", "ip_address": "50.50.1.3"} | | 659af233-a77a-49fe-b607-79f4586faf14 | | fa:16:3e:cf:b3:53 | {"subnet_id": "3f2c9eef-62fb-4698-9887-a7cc0ff5f361", "ip_address": "50.50.1.1"} | | 689b75b7-f5e8-4b9b-8518-c73ad54b9b7e | | fa:16:3e:10:21:7b | {"subnet_id": "3f2c9eef-62fb-4698-9887-a7cc0ff5f361", "ip_address": "50.50.1.2"} | | 83bd8240-a1f4-4ce3-9e4d-f9e1c1eacea9 | | fa:16:3e:22:19:2a | {"subnet_id": "ea685e5e-103c-4649-8984-3c283f7d6f97", "ip_address": "192.168.221.104"} | | a0c04933-4a58-4176-81d3-4329550bbeda | | fa:16:3e:46:8b:45 | {"subnet_id": "ea685e5e-103c-4649-8984-3c283f7d6f97", "ip_address": "192.168.221.102"} | | f65bd825-63f5-48d9-b6ec-9638edb183e2 | | fa:16:3e:cb:98:01 | {"subnet_id": "ea685e5e-103c-4649-8984-3c283f7d6f97", "ip_address": "192.168.221.105"} | +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------+

so internal net 50.50.1.0/24 and ext 192.168.221.100/24 when I do arp -an|grep fa:16:3e:cb:f7:cf ? (50.50.1.3) at fa:16:3e:32:fa:5a [ether] on qbr12c93ea2-d1 sometime is working but not everytime but this never work ping 50.50.1.3 -I qbr12c93ea2-d1

but from my netwok node : ip netns qrouter-9f7482ce-a0a7-45ed-b978-37dbf2dd3bc5 qdhcp-f92614a6-bbd0-404c-a59b-86eed7428298 ip netns exec qrouter-9f7482ce-a0a7-45ed-b978-37dbf2dd3bc5 ping 50.50.1.3 PING 50.50.1.4 (50.50.1.4) 56(84) bytes of data. 64 bytes from 50.50.1.3: icmp_req=1 ttl=64 time=22.0 ms 64 bytes from 50.50.1.3: icmp_req=2 ttl=64 time=0.353 ms

from compute 1 :ovs-vsctl show 43f78e6a-5a48-4baa-9986-9d9a526fb534 Bridge br-int Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qvo01c154df-45" tag: 1 Interface "qvo01c154df-45" Port br-int Interface br-int type: internal Bridge br-tun Port br-tun Interface br-tun type: internal Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.232"} Port "gre-1" Interface "gre-1" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.230"} ovs_version: "1.4.0+build0"

from compute 2 : ovs-vsctl show 82a85a82-b20e-4b5b-9dc3-1d61b2f20f4a Bridge br-tun Port br-tun Interface br-tun type: internal Port "gre-3" Interface "gre-3" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.233"} Port "gre-1" Interface "gre-1" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.230"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Bridge br-int Port "qvo12c93ea2-d1" tag: 1 Interface "qvo12c93ea2-d1" Port "qvo4d9c511c-a3" tag: 4095 Interface "qvo4d9c511c-a3" Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port br-int Interface br-int type: internal ovs_version: "1.4.0+build0"

from net node : ovs-vsctl show 8f5dd9f1-77ec-4bec-a72f-06dde7fe5218 Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-3" Interface "gre-3" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.233"} Port "gre-2" Interface "gre-2" type: gre options: {in_key=flow, out_key=flow, remote_ip="10.0.5.232"} Port br-tun Interface br-tun type: internal Bridge br-ex Port "qg-a0c04933-4a" Interface "qg-a0c04933-4a" type: internal Port "eth1" Interface "eth1" Port br-ex Interface br-ex type: internal Bridge br-int Port "tap689b75b7-f5" tag: 1 Interface "tap689b75b7-f5" type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qr-659af233-a7" tag: 1 Interface "qr-659af233-a7" type: internal Port br-int Interface br-int type: internal ovs_version: "1.4.0+build0"

I have notice that : all cat /var/log/quantum/openvswitch-agent.log is clean but just the node that I restart the service "quantum-plugin-openvswitch-agent"and the other two node : get some error :

ERROR [quantum.agent.linux.ovs_lib] Unable to execute ['ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-3']. Exception: Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--timeout=2', 'add-port', 'br-tun', 'gre-3'] Exit code: 1 Stdout: '' Stderr: 'ovs-vsctl: cannot create a port named gre-3 because a port named gre-3 already exists on bridge br-tun\n'

then depend wherre I restart the service I get gre-1 or gre-2

what else I need to check ?

rubber-ant commented 10 years ago

find the problem http://techbackground.blogspot.co.uk/2013/06/path-mtu-discovery-and-gre.html

rubber-ant commented 10 years ago

fixed: sudo -s

touch /etc/quantum/dnsmasq.conf copy and paste "dhcp-option-force=26,1454 log-facility = /var/log/quantum/dnsmasq.log log-dhcp"

chown root:quantum /etc/quantum/dnsmasq.conf

add this line : dnsmasq_config_file = /etc/quantum/dnsmasq.conf

to /etc/quantum/dhcp_agent.ini

service quantum-dhcp-agent restart

rubber-ant commented 10 years ago

@mseknibilel you should add that to the multiple node guide

rubber-ant commented 10 years ago

this doesn’t have effect to cirros3.1 because it has a bug but it's working with ubuntu, fedora, debian..