Ask Your Question

Revision history [back]

Use as comment field due to formatting
First

[root@junodocker ~(keystone_admin)]# neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id                                   | name         | subnets                                             |
+--------------------------------------+--------------+-----------------------------------------------------+
| 38147773-5746-4ca7-bf4a-6be58c7be942 | demo_network | 7c020d0e-2621-4f45-a7f8-1f9984db596a 70.0.0.0/24    |
| 2b642289-8144-4032-8452-30ea88b37f29 | public       | 569da7f2-57a0-4017-a12c-d0b1a3752782 192.168.1.0/24 |
+--------------------------------------+--------------+------------------------------------------

Second

[root@junodocker ~(keystone_admin)]# ip netns
d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387
qrouter-ffaea514-6639-44f2-980f-20ccc99a9f33
qdhcp-38147773-5746-4ca7-bf4a-6be58c7be942

Third

[root@junodocker ~(keystone_admin)]# ip netns exec d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387 ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nsd4626b6e-15: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 70.0.0.35  netmask 255.255.255.0  broadcast 70.0.0.255
        inet6 fe80::f816:3eff:fef0:f317  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f0:f3:17  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 9896 (9.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68  bytes 5546 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Fourth

[root@junodocker ~(keystone_admin)]# ovs-vsctl list-ports br-ex
enp2s0
qg-744ca793-72

Your ovs-vsctl report doesn't look good && ip netns docker-id shows public IP ( not private)
Please, post

$ ip netns
$ ovs-vsctl show
$ ip netns exec qrouter-your-router-id iptables -S -t net
$ ip netns exec qrouter-your-router-id route -n
$ ip netns exec qrouter-your-router-id  ifconfig
$ ip netns exec qdhcp-private-net-id route -n
$ ip netns exec qdhcp-private-net-id ifconfig

UPDATE 12/30/2014 21:56 MSK

You have to create neutron router for particular tenant.
Add gateway to external network and interface to private network, your Nova-Docker Container is supposed to run on this private network and obtain private IP from dnsmasq serving this subnet, Floating IP has to be assigned   from neutron external pool. Qrouter-namespace is created when  you activate gateway on router  to external network.

View :- http://www.linux.com/community/blogs/133-general-linux/799569-running-nova-docker-on-openstack-rdo-juno-centos-7

Use as comment field due to formatting
First

[root@junodocker ~(keystone_admin)]# neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id                                   | name         | subnets                                             |
+--------------------------------------+--------------+-----------------------------------------------------+
| 38147773-5746-4ca7-bf4a-6be58c7be942 | demo_network | 7c020d0e-2621-4f45-a7f8-1f9984db596a 70.0.0.0/24    |
| 2b642289-8144-4032-8452-30ea88b37f29 | public       | 569da7f2-57a0-4017-a12c-d0b1a3752782 192.168.1.0/24 |
+--------------------------------------+--------------+------------------------------------------

Second

[root@junodocker ~(keystone_admin)]# ip netns
d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387
qrouter-ffaea514-6639-44f2-980f-20ccc99a9f33
qdhcp-38147773-5746-4ca7-bf4a-6be58c7be942

Third

[root@junodocker ~(keystone_admin)]# ip netns exec d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387 ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nsd4626b6e-15: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 70.0.0.35  netmask 255.255.255.0  broadcast 70.0.0.255
        inet6 fe80::f816:3eff:fef0:f317  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f0:f3:17  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 9896 (9.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68  bytes 5546 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Fourth

[root@junodocker ~(keystone_admin)]# ovs-vsctl list-ports br-ex
enp2s0
qg-744ca793-72

Your ovs-vsctl report doesn't look good && ip netns docker-id shows public IP ( not private)
Please, post

$ ip netns
$ ovs-vsctl show
$ ip netns exec qrouter-your-router-id iptables -S -t net
$ ip netns exec qrouter-your-router-id route -n
$ ip netns exec qrouter-your-router-id  ifconfig
$ ip netns exec qdhcp-private-net-id route -n
$ ip netns exec qdhcp-private-net-id ifconfig

UPDATE 12/30/2014 21:56 MSK

You have to create neutron router for particular tenant.
Add gateway to external network and interface to private network, your Nova-Docker Container is supposed to run on this private network and obtain private IP from dnsmasq serving this subnet, Floating IP has to be assigned   from neutron external pool. Qrouter-namespace is created when  you activate gateway on router  to external network.

View :- http://www.linux.com/community/blogs/133-general-linux/799569-running-nova-docker-on-openstack-rdo-juno-centos-7
View also :- http://textuploader.com/1hey

Section "Create Neutron networks on Controller node "

Use as comment field due to formatting
First

[root@junodocker ~(keystone_admin)]# neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id                                   | name         | subnets                                             |
+--------------------------------------+--------------+-----------------------------------------------------+
| 38147773-5746-4ca7-bf4a-6be58c7be942 | demo_network | 7c020d0e-2621-4f45-a7f8-1f9984db596a 70.0.0.0/24    |
| 2b642289-8144-4032-8452-30ea88b37f29 | public       | 569da7f2-57a0-4017-a12c-d0b1a3752782 192.168.1.0/24 |
+--------------------------------------+--------------+------------------------------------------

Second

[root@junodocker ~(keystone_admin)]# ip netns
d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387
qrouter-ffaea514-6639-44f2-980f-20ccc99a9f33
qdhcp-38147773-5746-4ca7-bf4a-6be58c7be942

Third

[root@junodocker ~(keystone_admin)]# ip netns exec d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387 ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nsd4626b6e-15: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 70.0.0.35  netmask 255.255.255.0  broadcast 70.0.0.255
        inet6 fe80::f816:3eff:fef0:f317  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f0:f3:17  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 9896 (9.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68  bytes 5546 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Fourth

[root@junodocker ~(keystone_admin)]# ovs-vsctl list-ports br-ex
enp2s0
qg-744ca793-72

Your ovs-vsctl report doesn't look good && ip netns docker-id shows public IP ( not private)
Please, post

$ ip netns
$ ovs-vsctl show
$ ip netns exec qrouter-your-router-id iptables -S -t net
$ ip netns exec qrouter-your-router-id route -n
$ ip netns exec qrouter-your-router-id  ifconfig
$ ip netns exec qdhcp-private-net-id route -n
$ ip netns exec qdhcp-private-net-id ifconfig

UPDATE 12/30/2014 21:56 MSK

You have to create neutron router for particular tenant.
tenant. Add gateway to external network and and
interface to private network, your Nova-Docker Container is supposed to run on this private network and obtain private IP from dnsmasq serving this subnet, Floating floating IP has to be assigned   from neutron external pool. Qrouter-namespace is created when  you activate gateway on router  to external network.

View :- http://www.linux.com/community/blogs/133-general-linux/799569-running-nova-docker-on-openstack-rdo-juno-centos-7
View also :- http://textuploader.com/1hey

Section "Create Neutron networks on Controller node "

Use as comment field due to formatting
First

[root@junodocker ~(keystone_admin)]# neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id                                   | name         | subnets                                             |
+--------------------------------------+--------------+-----------------------------------------------------+
| 38147773-5746-4ca7-bf4a-6be58c7be942 | demo_network | 7c020d0e-2621-4f45-a7f8-1f9984db596a 70.0.0.0/24    |
| 2b642289-8144-4032-8452-30ea88b37f29 | public       | 569da7f2-57a0-4017-a12c-d0b1a3752782 192.168.1.0/24 |
+--------------------------------------+--------------+------------------------------------------

Second

[root@junodocker ~(keystone_admin)]# ip netns
d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387
qrouter-ffaea514-6639-44f2-980f-20ccc99a9f33
qdhcp-38147773-5746-4ca7-bf4a-6be58c7be942

Third

[root@junodocker ~(keystone_admin)]# ip netns exec d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387 ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nsd4626b6e-15: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 70.0.0.35  netmask 255.255.255.0  broadcast 70.0.0.255
        inet6 fe80::f816:3eff:fef0:f317  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f0:f3:17  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 9896 (9.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68  bytes 5546 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Fourth

[root@junodocker ~(keystone_admin)]# ovs-vsctl list-ports br-ex
enp2s0
qg-744ca793-72

Your ovs-vsctl report doesn't look good && ip netns docker-id shows public IP ( not private)
Please, post

$ ip netns
$ ovs-vsctl show
$ ip netns exec qrouter-your-router-id iptables -S -t net
$ ip netns exec qrouter-your-router-id route -n
$ ip netns exec qrouter-your-router-id  ifconfig
$ ip netns exec qdhcp-private-net-id route -n
$ ip netns exec qdhcp-private-net-id ifconfig

UPDATE 12/30/2014 21:56 MSK

You have to create neutron router for particular tenant. Add gateway to external network and interface to private network, your Nova-Docker Container is supposed to run on this private network and obtain private IP from dnsmasq serving this subnet, floating IP has to be assigned from neutron external pool. Qrouter-namespace is created when you activate gateway on router to external network.

network.

View :- http://www.linux.com/community/blogs/133-general-linux/799569-running-nova-docker-on-openstack-rdo-juno-centos-7
View also :- http://textuploader.com/1hey

Section "Create Neutron networks on Controller node "

Use as comment field due to formatting
First

[root@junodocker ~(keystone_admin)]# neutron net-list
+--------------------------------------+--------------+-----------------------------------------------------+
| id                                   | name         | subnets                                             |
+--------------------------------------+--------------+-----------------------------------------------------+
| 38147773-5746-4ca7-bf4a-6be58c7be942 | demo_network | 7c020d0e-2621-4f45-a7f8-1f9984db596a 70.0.0.0/24    |
| 2b642289-8144-4032-8452-30ea88b37f29 | public       | 569da7f2-57a0-4017-a12c-d0b1a3752782 192.168.1.0/24 |
+--------------------------------------+--------------+------------------------------------------

Second

[root@junodocker ~(keystone_admin)]# ip netns
d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387
qrouter-ffaea514-6639-44f2-980f-20ccc99a9f33
qdhcp-38147773-5746-4ca7-bf4a-6be58c7be942

Third

[root@junodocker ~(keystone_admin)]# ip netns exec d7ea3f7b9c5c57046fa3e569f9267d3d334a5089900f5cca544fab77769da387 ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nsd4626b6e-15: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 70.0.0.35  netmask 255.255.255.0  broadcast 70.0.0.255
        inet6 fe80::f816:3eff:fef0:f317  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:f0:f3:17  txqueuelen 1000  (Ethernet)
        RX packets 68  bytes 9896 (9.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68  bytes 5546 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Fourth

[root@junodocker ~(keystone_admin)]# ovs-vsctl list-ports br-ex
enp2s0
qg-744ca793-72

Your ovs-vsctl report doesn't look good && ip netns docker-id shows public IP ( not private)
Please, post

$ ip netns
$ ovs-vsctl show
$ ip netns exec qrouter-your-router-id iptables -S -t net
$ ip netns exec qrouter-your-router-id route -n
$ ip netns exec qrouter-your-router-id  ifconfig
$ ip netns exec qdhcp-private-net-id route -n
$ ip netns exec qdhcp-private-net-id ifconfig