<div dir="ltr">There is no problem for your cluster, it is working well. With nova
docker driver, you need to use namespace to check the network as you
did:<br><br># ip netns exec 89b59bf9f442a0d468d9d4d8c9370c<div id=":31h" class="">53f8e4a3ba4d8affcd6be8b2dde84fff64 ifconfig<br>
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536<br>
inet 127.0.0.1 netmask 255.0.0.0<br>
inet6 ::1 prefixlen 128 scopeid 0x10<host><br>
loop txqueuelen 0 (Local Loopback)<br>
RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
<br>
nsbbe59188-ab: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500<br>
inet 192.168.1.135 netmask 255.255.255.0 broadcast 192.168.1.255<br>
inet6 fe80::f816:3eff:fe1c:46a prefixlen 64 scopeid 0x20<link><br>
ether fa:16:3e:1c:04:6a txqueuelen 1000 (Ethernet)<br>
RX packets 8 bytes 648 (648.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 8 bytes 648 (648.0 B)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br><br></div><div id=":31h" class="">nova docker driver is using following mode to set up the network:<br><a href="https://github.com/stackforge/nova-docker/blob/master/novadocker/virt/docker/driver.py#L419">https://github.com/stackforge/nova-docker/blob/master/novadocker/virt/docker/driver.py#L419</a><br><br></div><div id=":31h" class="">You can try following attached image to set up your network, this logic was used in nova docker driver.<br>
</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-29 13:49 GMT+08:00 Jay Lau <span dir="ltr"><<a href="mailto:jay.lau.513@gmail.com" target="_blank">jay.lau.513@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is no problem for your cluster, it is working well. With nova docker driver, you need to use namespace to check the network as you did:<br><br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2014-12-29 13:15 GMT+08:00 Iván Chavero <span dir="ltr"><<a href="mailto:ichavero@chavero.com.mx" target="_blank">ichavero@chavero.com.mx</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I've installed OpenStack with Docker as hypervisor on a cubietruck, everything<br>
seems to work ok but the container ip does not respond to pings nor respond to<br>
the service i'm running inside the container (nginx por 80).<br>
<br>
I checked how nova created the container and it looks like everything is in place:<br>
<br>
# nova list<br>
+-----------------------------<u></u>---------+---------------+----<u></u>----+------------+------------<u></u>-+----------------------+<br>
| ID | Name | Status | Task State | Power State | Networks |<br>
+-----------------------------<u></u>---------+---------------+----<u></u>----+------------+------------<u></u>-+----------------------+<br>
| 249df778-b2b6-490c-9dce-<u></u>1126f8f337f3 | test_nginx_13 | ACTIVE | - | Running | public=192.168.1.135 |<br>
+-----------------------------<u></u>---------+---------------+----<u></u>----+------------+------------<u></u>-+----------------------+<br>
<br>
<br>
# docker ps<br>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES<br>
89b59bf9f442 sotolitolabs/nginx_arm:latest "/usr/sbin/nginx" 6 hours ago Up 6 hours nova-249df778-b2b6-490c-9dce-<u></u>1126f8f337f3<br>
<br>
<br>
A funny thing that i noticed but i'm not really sure it's relevant, the docker container<br>
does not show network info when created by nova:<br>
<br>
# docker inspect 89b59bf9f442<br>
<br>
.... unnecesary output....<br>
<br>
"NetworkSettings": {<br>
"Bridge": "",<br>
"Gateway": "",<br>
"IPAddress": "",<br>
"IPPrefixLen": 0,<br>
"PortMapping": null,<br>
"Ports": null<br>
},<br>
<br>
<br>
<br>
<br>
# neutron router-list<br>
+-----------------------------<u></u>---------+---------+----------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------------------+--<u></u>-----------+-------+<br>
| id | name | external_gateway_info | distributed | ha |<br>
+-----------------------------<u></u>---------+---------+----------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------------------+--<u></u>-----------+-------+<br>
| f8dc7e15-1087-4681-b495-<u></u>217ecfa95189 | router1 | {"network_id": "160add9a-2d2e-45ab-8045-<u></u>68b334d29418", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "1ae33c0b-a04e-47b6-bdba-<u></u>bbdf9a3ef14d", "ip_address": "192.168.1.120"}]} | False | False |<br>
+-----------------------------<u></u>---------+---------+----------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------------------+--<u></u>-----------+-------+<br>
<br>
<br>
# neutron subnet-list<br>
+-----------------------------<u></u>---------+----------------+---<u></u>-------------+----------------<u></u>------------------------------<u></u>------+<br>
| id | name | cidr | allocation_pools |<br>
+-----------------------------<u></u>---------+----------------+---<u></u>-------------+----------------<u></u>------------------------------<u></u>------+<br>
| 34995548-bc2b-4d33-bdb2-<u></u>27443c01e483 | private_subnet | <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> | {"start": "10.0.0.2", "end": "10.0.0.254"} |<br>
| 1ae33c0b-a04e-47b6-bdba-<u></u>bbdf9a3ef14d | public_subnet | <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> | {"start": "192.168.1.120", "end": "192.168.1.200"} |<br>
+-----------------------------<u></u>---------+----------------+---<u></u>-------------+----------------<u></u>------------------------------<u></u>------+<br>
<br>
<br>
<br>
<br>
# neutron port-list<br>
+-----------------------------<u></u>---------+------+-------------<u></u>------+-----------------------<u></u>------------------------------<u></u>------------------------------<u></u>---+<br>
| id | name | mac_address | fixed_ips |<br>
+-----------------------------<u></u>---------+------+-------------<u></u>------+-----------------------<u></u>------------------------------<u></u>------------------------------<u></u>---+<br>
| 863eb9a3-461c-4016-9bd1-<u></u>7c4c7210db98 | | fa:16:3e:24:7b:2c | {"subnet_id": "34995548-bc2b-4d33-bdb2-<u></u>27443c01e483", "ip_address": "10.0.0.2"} |<br>
| bbe59188-ab4e-4b92-a578-<u></u>bbc2d6759295 | | fa:16:3e:1c:04:6a | {"subnet_id": "1ae33c0b-a04e-47b6-bdba-<u></u>bbdf9a3ef14d", "ip_address": "192.168.1.135"} |<br>
| c8b94a90-c7d1-44fc-a582-<u></u>3370f5486d26 | | fa:16:3e:6f:69:71 | {"subnet_id": "34995548-bc2b-4d33-bdb2-<u></u>27443c01e483", "ip_address": "10.0.0.1"} |<br>
| f108b583-0d54-4388-bcc0-<u></u>f8d1cbe6efd4 | | fa:16:3e:bb:3a:1b | {"subnet_id": "1ae33c0b-a04e-47b6-bdba-<u></u>bbdf9a3ef14d", "ip_address": "192.168.1.120"} |<br>
+-----------------------------<u></u>---------+------+-------------<u></u>------+-----------------------<u></u>------------------------------<u></u>------------------------------<u></u>---+<br>
<br>
<br>
<br>
the network namespace is being created:<br>
<br>
# ip netns exec 89b59bf9f442a0d468d9d4d8c9370c<u></u>53f8e4a3ba4d8affcd6be8b2dde84f<u></u>ff64 ifconfig<br>
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536<br>
inet 127.0.0.1 netmask 255.0.0.0<br>
inet6 ::1 prefixlen 128 scopeid 0x10<host><br>
loop txqueuelen 0 (Local Loopback)<br>
RX packets 0 bytes 0 (0.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 0 bytes 0 (0.0 B)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
<br>
nsbbe59188-ab: flags=4163<UP,BROADCAST,<u></u>RUNNING,MULTICAST> mtu 1500<br>
inet 192.168.1.135 netmask 255.255.255.0 broadcast 192.168.1.255<br>
inet6 fe80::f816:3eff:fe1c:46a prefixlen 64 scopeid 0x20<link><br>
ether fa:16:3e:1c:04:6a txqueuelen 1000 (Ethernet)<br>
RX packets 8 bytes 648 (648.0 B)<br>
RX errors 0 dropped 0 overruns 0 frame 0<br>
TX packets 8 bytes 648 (648.0 B)<br>
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
<br>
<br>
when i try a ping it does not return:<br>
<br>
# ping -c3 192.168.1.135<br>
PING 192.168.1.135 (192.168.1.135) 56(84) bytes of data.<br>
>From 192.168.1.65 icmp_seq=1 Destination Host Unreachable<br>
>From 192.168.1.65 icmp_seq=2 Destination Host Unreachable<br>
>From 192.168.1.65 icmp_seq=3 Destination Host Unreachable<br>
<br>
--- 192.168.1.135 ping statistics ---<br>
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2008ms<br>
<br>
<br>
i tried adding the interface to the bridge br-ex but it didn's work either:<br>
<br>
# ip netns exec 89b59bf9f442a0d468d9d4d8c9370c<u></u>53f8e4a3ba4d8affcd6be8b2dde84f<u></u>ff64 ovs-vsctl add-port br-ex nsbbe59188-ab<br>
<br>
relevant log extract:<br>
<br>
2014-12-28T22:57:59.577Z|<u></u>00700|bridge|WARN|could not open network device nsbbe59188-ab (No such<br>
<br>
<br>
even with error it appears<br>
<br>
# ovs-vsctl list-ports br-ex<br>
eth0<br>
nsbbe59188-ab<br>
<br>
<br>
i think this is a bridging problem but i'm not sure. can somebody give me a hint?<br>
<br>
Thanks<br>
Ivan<span><font color="#888888"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Iván Chavero<br>
Hacker<br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div></div>
</div>