[Openstack] Linux-bridge problems
Kevin Tibi
kodokuu at gmail.com
Wed Aug 7 14:42:58 UTC 2013
Vm can ping dhcp and dhcp can't .... just why ><
root at openstack:/home/openstack# ip netns exec
qdhcp-c9125c35-2085-41b4-8317-e530 c321fc0e arp
Address HWtype HWaddress Flags Mask
Iface
50.50.1.3 ether fa:16:3e:e0:19:bd C
ns-ad 956142-dd
log VM :
### /etc/rc.d/init.d/sshd start
/etc/rc3.d/S45cloudsetup: line 66: /etc/rc.d/init.d/sshd: not found
### ifconfig a
eth0 Link encap:Ethernet HWaddr FA:16:3E:E0:19:BD
inet addr:50.50.1.3 Bcast:50.50.1.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fee0:19bd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2978 (2.9 KiB) TX bytes:3396 (3.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
### route n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 50.50.1.1 0.0.0.0 UG 0 0 0 eth0
50.50.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
### cat /etc/resolv.conf
search openstacklocal
nameserver 50.50.1.2
### ping c 5 50.50.1.1
PING 50.50.1.1 (50.50.1.1): 56 data bytes
64 bytes from 50.50.1.1: seq=0 ttl=64 time=0.525 ms
64 bytes from 50.50.1.1: seq=1 ttl=64 time=0.367 ms
64 bytes from 50.50.1.1: seq=2 ttl=64 time=0.310 ms
2013/8/7 Kevin Tibi <kodokuu at gmail.com>
> Thx for help and time.
>
> i check netns =>
>
> root at openstack:/home/openstack# ip netns
> qdhcp-c9125c35-2085-41b4-8317-e530c321fc0e
> qrouter-fb0ba1df-0df0-4e84-9b3f-555826469c23
> -------------------------------------------------------
> ip netns exec qrouter-fb0ba1df-0df0-4e84-9b3f-555826469c23 ping 50.50.1.2
> PING 50.50.1.2 (50.50.1.2) 56(84) bytes of data.
> 64 bytes from 50.50.1.2: icmp_req=1 ttl=64 time=0.206 ms
>
> FAIL PING 50.50.1.3 from qrouter and qdhcp
> ------------------------------------------------
>
> root at openstack:/etc/init.d# cat /etc/quantum/metadata_agent.ini
> [DEFAULT]
> # Show debugging output in log (sets DEBUG log level output)
> # debug = True
>
> # The Quantum user information for accessing the Quantum API.
> auth_url = http://10.10.100.51:35357/v2.0
> auth_region = RegionOne
> admin_tenant_name = service
> admin_user = quantum
> admin_password = service_pass
>
> # IP address used by Nova metadata server
> nova_metadata_ip = 10.10.100.51
>
> # TCP Port used by Nova metadata server
> nova_metadata_port = 8775
>
> metadata_proxy_shared_secret = helloOpenStack
> -----------------------------------
>
>
>
>
> 2013/8/7 Ritesh Nanda <riteshnanda09 at gmail.com>
>
>> Hi ,
>>
>> kevin are you using linux namespaces , if so can you list namespaces
>> using ip netns
>> and then try running ping command in the that namespace.
>> using ip netns exec ping
>>
>> Logs of vms shows it is trying to reach metadata server , to fetch
>> instance specific data
>> Have you mentioned metadeta server in nova.conf and l3-agent.ini , that
>> you want to enable that.
>>
>> mention in l3-agent.ini
>>
>> metadata_ip = <ip of host>
>> metadata_port = 8775
>>
>> Even check you metadata.ini file that the secret key mentioned in nova.conf is also there
>>
>> in metadata.ini file in /etc/quantum directory.
>>
>>
>>
>> On Wed, Aug 7, 2013 at 7:22 PM, Kevin Tibi <kodokuu at gmail.com> wrote:
>>
>>> il delete all bridge and recreate my VM.
>>>
>>> root at openstack:/etc/init.d# brctl show
>>> bridge name bridge id STP enabled interfaces
>>> brqc9125c35-20 8000.9a4c1899375c no
>>> tap016c8989-0e
>>> tapa040e29f-13
>>> tapad956142-dd
>>> ---------------------------------------------
>>> Maybe pb with route config ?
>>> Destination Passerelle Genmask Indic Metric Ref Use
>>> Iface
>>> default fw.obcs.lan 0.0.0.0 UG 0 0 0
>>> eth1
>>> 10.10.100.0 * 255.255.255.0 U 0 0 0
>>> eth0
>>> 10.255.254.0 * 255.255.255.0 U 0 0 0
>>> eth1
>>> ------------------------------------------
>>>
>>> root at openstack:/etc/init.d# ping 50.50.1.1
>>> PING 50.50.1.1 (50.50.1.1) 56(84) bytes of data.
>>> 64 bytes from 50.50.1.1: icmp_req=1 ttl=55 time=113 ms
>>>
>>>
>>> root at openstack:/etc/init.d# ping 50.50.1.2
>>> PING 50.50.1.2 (50.50.1.2) 56(84) bytes of data.
>>> 64 bytes from 50.50.1.2: icmp_req=1 ttl=117 time=114 ms
>>>
>>> FAIL ping 50.50.1.3
>>> -------------------------------------
>>> LOG VM :
>>>
>>> Starting network...
>>> udhcpc (v1.18.5) started
>>> Sending discover...
>>> Sending select for 50.50.1.3...
>>> Lease of 50.50.1.3 obtained, lease time 120
>>> deleting routers
>>> route: SIOCDELRT: No such process
>>> adding dns 50.50.1.2
>>> cloudsetup: checking http://169.254.169.254/20090404/metadata/instanceid
>>> cloudsetup: successful after 1/30 tries: up 2.33. iid=i00000004
>>> wget: server returned error: HTTP/1.1 404 Not Found
>>> failed to get http://169.254.169.254/latest/metadata/publickeys
>>> Starting dropbear sshd: generating rsa key... generating dsa key... OK
>>> ===== cloudfinal: system completely up in 4.03 seconds ====
>>> instanceid: i00000004
>>> publicipv4:
>>> localipv4 : 50.50.1.3
>>> wget: server returned error: HTTP/1.1 404 Not Found
>>> clouduserdata: failed to read user data url: http://169.254.169.254/20090404/userdata
>>> WARN: /etc/rc3.d/S99clouduserdata failed
>>>
>>>
>>>
>>> 2013/8/7 Ritesh Nanda <riteshnanda09 at gmail.com>
>>>
>>>> Hello
>>>>
>>>> Conf files looks perfect can you Delete your bridges and re-create them
>>>> i hope that will fix your problem. Even restart your services.
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Aug 7, 2013 at 6:22 PM, Kevin Tibi <kodokuu at gmail.com> wrote:
>>>>
>>>>> New warning :
>>>>>
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension service-type not supported by any of
>>>>> loaded plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension flavor not supported by any of loaded
>>>>> plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension router-service-type not supported by any
>>>>> of loaded plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension routed-service-insertion not supported
>>>>> by any of loaded plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension security-group not supported by any of
>>>>> loaded plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension lbaas not supported by any of loaded
>>>>> plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.api.extensions] Extension port-security not supported by any of
>>>>> loaded plugins
>>>>> /var/log/quantum/server.log:2013-08-07 14:44:26 WARNING
>>>>> [quantum.scheduler.dhcp_agent_scheduler] DHCP agent
>>>>> 3db077ae-8109-4e2d-9de2-e980376d2d33 is not active
>>>>> /var/log/quantum/server.log:2013-08-07 14:49:16 WARNING
>>>>> [quantum.db.agentschedulers_db] Fail scheduling network {'status':
>>>>> u'ACTIVE', 'subnets': [u'e2c5ff38-3533-4472-812d-7fed7c2a123c'], 'name':
>>>>> u'net_one', 'provider:physical_network': None, 'admin_state_up': True,
>>>>> 'tenant_id': u'22548e607c4848bb9dc589244a3b67e8', 'provider:network_type':
>>>>> 'local', 'router:external': False, 'shared': False, 'id':
>>>>> u'486fec60-0b16-4e57-8b20-2ba20082578c', 'provider:segmentation_id': None}
>>>>>
>>>>>
>>>>>
>>>>> 2013/8/7 Kevin Tibi <kodokuu at gmail.com>
>>>>>
>>>>>> It's my l3-agent.ini
>>>>>>
>>>>>> [DEFAULT]
>>>>>> interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver
>>>>>> external_network_bridge =
>>>>>>
>>>>>> I use quantum because im on grizzly
>>>>>>
>>>>>>
>>>>>> 2013/8/7 Ritesh Nanda <riteshnanda09 at gmail.com>
>>>>>>
>>>>>>> hi,
>>>>>>>
>>>>>>> I did'nt knew your were trying linux-bridge , i just saw the error
>>>>>>> in l3-agent.ini.
>>>>>>> In case of linux bridge have you specified these two parameters in
>>>>>>> l3-agent.ini
>>>>>>>
>>>>>>> *Linux Bridge*
>>>>>>> interface_driver ($NEUTRON_CONF_DIR/l3_agent.ini)
>>>>>>> neutron.agent.linux.interface.BridgeInterfaceDriver external_network_bridge
>>>>>>> ($NEUTRON_CONF_DIR/l3_agent.ini) This field must be empty (or the
>>>>>>> bridge name for the external network).
>>>>>>>
>>>>>>> Can you paste your conf files of quantum.
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Aug 7, 2013 at 5:19 PM, Kevin Tibi <kodokuu at gmail.com>wrote:
>>>>>>>
>>>>>>>> Hi, thank you for the answer,
>>>>>>>>
>>>>>>>> So, for br-ex the tutorial never mentions it so I do not understand
>>>>>>>> why I have this error. I dont use ovs, just linux bridge.
>>>>>>>>
>>>>>>>>
>>>>>>>> 2013/8/7 Ritesh Nanda <riteshnanda09 at gmail.com>
>>>>>>>>
>>>>>>>>> hello kevin ,
>>>>>>>>>
>>>>>>>>> Log shows it is not able to get br-ex interface , did you created
>>>>>>>>> this interface , as we need to create this interface manually by runnig
>>>>>>>>> this command
>>>>>>>>>
>>>>>>>>> sudo ovs-vsctl add-br br-ex
>>>>>>>>> $ sudo ovs-vsctl add-port br-ex <external interface>
>>>>>>>>>
>>>>>>>>> Please verify this interface using ovs-vsctl show , it would show like this
>>>>>>>>>
>>>>>>>>> Bridge br-ex
>>>>>>>>> Port "eth2"(in my case this is the external interface)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Interface "eth2"
>>>>>>>>> Port "qg-e2df07f2-81"
>>>>>>>>> Interface "qg-e2df07f2-81"
>>>>>>>>> type: internal
>>>>>>>>> Port "qg-0ed547e2-8f"
>>>>>>>>> Interface "qg-0ed547e2-8f"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> type: internal
>>>>>>>>> Port br-ex
>>>>>>>>> Interface br-ex
>>>>>>>>> type: internal
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Aug 7, 2013 at 2:35 PM, Kevin Tibi <kodokuu at gmail.com>wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> I have problems with a single node platform.
>>>>>>>>>> I followed this tutorial:
>>>>>>>>>> https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/master/OpenStack_Grizzly_Install_Guide.rst
>>>>>>>>>>
>>>>>>>>>> I can not ping my VMs. I can ping the router and dhcp. As against
>>>>>>>>>> the dhcp can not ping the router and VMS. but Vm can ping DHCP serveur in
>>>>>>>>>> logs.
>>>>>>>>>>
>>>>>>>>>> I think i have a probleme with linux bridge.
>>>>>>>>>>
>>>>>>>>>> Thx,
>>>>>>>>>>
>>>>>>>>>> Kevin.
>>>>>>>>>>
>>>>>>>>>> ----------------------------------
>>>>>>>>>> /var/log/quantum/l3-agent.log:2013-08-06 17:17:49 ERROR
>>>>>>>>>> [quantum.agent.l3_agent] The external network bridge 'br-ex' does not exist
>>>>>>>>>>
>>>>>>>>>> -------------------------------------
>>>>>>>>>> root at openstack:/home/openstack# brctl show
>>>>>>>>>> bridge name bridge id STP enabled interfaces
>>>>>>>>>> brq486fec60-0b 8000.3a6f4e3444d2 no
>>>>>>>>>> tap483bab99-5a
>>>>>>>>>>
>>>>>>>>>> tap9dab335c-ba
>>>>>>>>>>
>>>>>>>>>> ----------------------------
>>>>>>>>>> root at openstack:/home/openstack# ip netns
>>>>>>>>>> qdhcp-486fec60-0b16-4e57-8b20-2ba20082578c
>>>>>>>>>>
>>>>>>>>>> ----------------------------
>>>>>>>>>> log VM :
>>>>>>>>>>
>>>>>>>>>> ### route n
>>>>>>>>>> Kernel IP routing table
>>>>>>>>>> Destination Gateway Genmask Flags Metric Ref Use Iface
>>>>>>>>>> 0.0.0.0 50.50.1.1 0.0.0.0 UG 0 0 0 eth0
>>>>>>>>>> 50.50.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>>>>>>>>>> ### cat /etc/resolv.conf
>>>>>>>>>> search openstacklocal
>>>>>>>>>> nameserver 50.50.1.2
>>>>>>>>>> ### ping c 5 50.50.1.1
>>>>>>>>>> PING 50.50.1.1 (50.50.1.1): 56 data bytes
>>>>>>>>>>
>>>>>>>>>> 50.50.1.1 ping statistics
>>>>>>>>>> 5 packets transmitted, 0 packets received, 100% packet loss
>>>>>>>>>> ### pinging nameservers
>>>>>>>>>> #### ping c 5 50.50.1.2
>>>>>>>>>> PING 50.50.1.2 (50.50.1.2): 56 data bytes
>>>>>>>>>> 64 bytes from 50.50.1.2: seq=0 ttl=64 time=0.358 ms
>>>>>>>>>>
>>>>>>>>>> ===== cloudfinal: system completely up in 126.94 seconds ====
>>>>>>>>>> wget: can't connect to remote host (169.254.169.254): No route to host
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Mailing list:
>>>>>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>>>>>> Post to : openstack at lists.openstack.org
>>>>>>>>>> Unsubscribe :
>>>>>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> * With Regards
>>>>>>>>> *
>>>>>>>>>
>>>>>>>>> * Ritesh Nanda
>>>>>>>>> *
>>>>>>>>>
>>>>>>>>> ***
>>>>>>>>> *
>>>>>>>>> <http://www.ericsson.com/>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> * With Regards
>>>>>>> *
>>>>>>>
>>>>>>> * Ritesh Nanda
>>>>>>> *
>>>>>>>
>>>>>>> ***
>>>>>>> *
>>>>>>> <http://www.ericsson.com/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> * With Regards
>>>> *
>>>>
>>>> * Ritesh Nanda
>>>> *
>>>>
>>>> ***
>>>> *
>>>> <http://www.ericsson.com/>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>>
>> * With Regards
>> *
>>
>> * Ritesh Nanda
>> *
>>
>> ***
>> *
>> <http://www.ericsson.com/>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130807/a5aad0e8/attachment.html>
More information about the Openstack
mailing list