<div dir="ltr">hi Vikas,<div><br></div><div><div>ubuntu@kuryr1:~$ docker network create --driver=kuryr --ipam-driver=kuryr --subnet <a href="http://10.10.0.0/16">10.10.0.0/16</a> --gateway 10.10.0.1 --ip-range <a href="http://10.10.0.0/24">10.10.0.0/24</a> foo</div><div>68f14fe701710d6f3472d1626c33f0036a145aaa8d81265429e509cf759adfe1</div><div>ubuntu@kuryr1:~$ docker network ls</div><div>NETWORK ID NAME DRIVER</div><div>8cbbcae5d143 bridge bridge </div><div>d64b70ca9b64 none null </div><div>65510a4e71de host host </div><div>ubuntu@kuryr1:~$ neutron net-list<br></div><div>+--------------------------------------+------------------------------------------------------------------+----------------------------------------------------------+</div><div>| id | name | subnets |</div><div>+--------------------------------------+------------------------------------------------------------------+----------------------------------------------------------+</div><div>| 29f8fd92-26f5-42b6-86db-ae09fc77cd91 | public | 18dcdefd-741f-4ec2-ba22-60610f071ed7 2001:db8::/64 |</div><div>| | | 430a7e0b-ca74-41a1-a6b0-d8958072eee2 <a href="http://172.24.4.0/24">172.24.4.0/24</a> |</div><div>| db489255-be4e-439d-babd-20a52a412e25 | 68f14fe701710d6f3472d1626c33f0036a145aaa8d81265429e509cf759adfe1 | 18e035b2-d26d-488a-b780-9c91eb36b294 <a href="http://10.10.0.0/24">10.10.0.0/24</a> |</div><div>| 37475896-5f2a-4308-a4cd-8095cefa3b7c | private | 1e69eb3c-08a9-4312-882d-179c1e546aed fd54:99bd:a3b8::/64 |</div><div>| | | 08a1b408-3915-4d11-932d-f8c3e9ee4c0f <a href="http://10.0.0.0/24">10.0.0.0/24</a> |</div><div>+--------------------------------------+------------------------------------------------------------------+----------------------------------------------------------+</div><div>ubuntu@kuryr1:~$ docker run --net=foo -itd --name=container1 busybox</div><div>Unable to find image 'busybox:latest' locally</div><div>latest: Pulling from library/busybox</div><div>583635769552: Pull complete </div><div>b175bcb79023: Pull complete </div><div>Digest: sha256:c1bc9b4bffe665bf014a305cc6cf3bca0e6effeb69d681d7a208ce741dad58e0</div><div>Status: Downloaded newer image for busybox:latest</div><div>4a7ad6fe18174e3e427e73283325446929daf9af87fb11534f9febc91acca272</div><div>Error response from daemon: Cannot start container 4a7ad6fe18174e3e427e73283325446929daf9af87fb11534f9febc91acca272: network foo not found</div><div>ubuntu@kuryr1:~$</div><div><br></div><div>why does not docker list the created network? but neutron can list it. </div><div>any comment ?</div><div> </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><span style="font-size:12.8000001907349px">Thanks & Best regards !</span><br><div><span style="font-size:12.8000001907349px">Mars Ma</span></div><div><span style="font-size:12.8000001907349px">--------------------------------</span></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jan 20, 2016 at 6:18 PM, Vikas Choudhary <span dir="ltr"><<a href="mailto:choudharyvikas16@gmail.com" target="_blank">choudharyvikas16@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Cheers :) !!!!!!</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 3:41 PM, Mars Ma <span dir="ltr"><<a href="mailto:wenchma@gmail.com" target="_blank">wenchma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Much thanks to @Vikas</div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><span style="font-size:12.8000001907349px">Thanks & Best regards !</span><span><font color="#888888"><br><div><span style="font-size:12.8000001907349px">Mars Ma</span></div><div><span style="font-size:12.8000001907349px">--------------------------------</span></div></font></span></div></div></div><div><div>
<br><div class="gmail_quote">On Wed, Jan 20, 2016 at 5:55 PM, Vikas Choudhary <span dir="ltr"><<a href="mailto:choudharyvikas16@gmail.com" target="_blank">choudharyvikas16@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mars,<div><br></div><div>Your problem will be solved by this patch, <a href="https://review.openstack.org/#/c/265744/" rel="noreferrer" style="font-size:12.8000001907349px" target="_blank">https://review.openstack.org/#/c/265744/</a> . It has not been merged yet though.</div><div><br></div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Vikas<br><div><br></div></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 2:39 PM, Mars Ma <span dir="ltr"><<a href="mailto:wenchma@gmail.com" target="_blank">wenchma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Vikas,<div><br></div><div>I added your fix , and also have problem, but different :</div><div><br></div><div><span><div>$ neutron subnetpool-list</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div><div>| id | name | prefixes | default_prefixlen | address_scope_id |</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div></span><div>| 360765af-fd5d-432c-990f-f787600c30ab | kuryr | [u'<a href="http://10.10.1.0/24" target="_blank">10.10.1.0/24</a>'] | 24 | |</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div><div>ubuntu@kuryr1:~$ sudo docker network create -d kuryr --ipam-driver=kuryr kuryr</div><div>Error response from daemon: Plugin Error: NetworkDriver.CreateNetwork, {</div><div> "Err": "u'Gateway' is a required property\n\nFailed validating u'required' in schema[u'properties'][u'IPv4Data'][u'items']:\n {u'description': u'IPv4 data',\n u'example': {u'AddressSpace': u'foo',\n u'AuxAddresses': {u'db': u'192.168.42.3',\n u'web': u'192.168.42.2'},\n u'Gateway': u'<a href="http://192.168.42.1/24" target="_blank">192.168.42.1/24</a>',\n u'Pool': u'<a href="http://192.168.42.0/24'" target="_blank">192.168.42.0/24'</a>},\n u'properties': {u'AddressSpace': {u'description': u'The name of the address space.',\n u'example': u'foo',\n u'type': u'string'},\n u'AuxAddresses': {u'description': u'A list of pre-allocated ip-addresses with an associated identifier as provided by the user to assist network driver if it requires specific ip-addresses for its operation.',\n u'patternProperties': {u'.+': {u'$ref': u'#/definitions/commons/definitions/ipv4',\n u'description': u'key-vavule pair of the ID and the IP address'}},\n u'type': u'object'},\n u'Gateway': {u'$ref': u'#/definitions/commons/definitions/cidr',\n u'description': u'Optionally, the IPAM driver may provide a Gateway for the subnet represented by the Pool.'},\n u'Pool': {u'$ref': u'#/definitions/commons/definitions/cidr',\n u'description': u'A range of IP Addresses represted in CIDR format address/mask.'}},\n u'required': [u'AddressSpace', u'Pool', u'Gateway'],\n u'type': u'object'}\n\nOn instance[u'IPv4Data'][0]:\n {u'AddressSpace': u'', u'Pool': u'<a href="http://10.10.1.0/24'" target="_blank">10.10.1.0/24'</a>}"</div><div>}</div><div>ubuntu@kuryr1:~$ neutron subnetpool-list</div><div><br></div><div>ubuntu@kuryr1:~$ </div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px">Thank you & Best regards !</div></span><span><div style="font-size:12.8000001907349px"><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div><div style="font-size:12.8000001907349px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span style="font-size:12.8000001907349px"><font color="#888888"><span style="font-size:12.8000001907349px"><font color="#888888"><div>Mars Ma</div><div>-------------------------------------</div></font></span></font></span></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 2:48 PM, Vikas Choudhary <span dir="ltr"><<a href="mailto:choudharyvikas16@gmail.com" target="_blank">choudharyvikas16@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Mars,<div><br></div><div>Your code seems to be missing missing this fix: <a href="https://review.openstack.org/#/c/265732/" target="_blank">https://review.openstack.org/#/c/265732/</a></div><div><br></div><div>Please try with this and let us know if any issues further.</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>-Vikas</div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 11:41 AM, Mars Ma <span dir="ltr"><<a href="mailto:wenchma@gmail.com" target="_blank">wenchma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">hi Vikas,<div><br></div><div>Thanks for your reply, I tried your method, looks like that the previous problem disappear,</div><div>but a new problem came out:</div><div><br></div><div><div>$ sudo docker network create -d kuryr --ipam-driver=kuryr kuryr</div><div>Error response from daemon: failed to allocate gateway (): invalid CIDR address: /24</div></div><div><br></div><div><div>$ neutron subnetpool-list</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div><div>| id | name | prefixes | default_prefixlen | address_scope_id |</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div><div>| 3c52c9dd-579e-4648-8ea7-e2af059d2914 | kuryr | [u'<a href="http://10.10.1.0/24" target="_blank">10.10.1.0/24</a>'] | 24 | |</div><div>+--------------------------------------+-------+-------------------+-------------------+------------------+</div></div><div><br></div><div>it got invalid gateway CIDR address: /24 , I don't know why </div><div><br></div><div class="gmail_extra"><span><div style="font-size:12.8000001907349px">Thanks you & Best regards !</div></span><div style="font-size:12.8000001907349px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span><font color="#888888"><span style="font-size:12.8000001907349px"><font color="#888888"><div>Mars Ma</div><div>-------------------------------------</div><div><br></div></font></span></font></span><div><div><div class="gmail_quote">On Wed, Jan 20, 2016 at 11:53 AM, Vikas Choudhary <span dir="ltr"><<a href="mailto:choudharyvikas16@gmail.com" target="_blank">choudharyvikas16@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Mars,<div><br></div><div>Please use "--ipam-driver=kuryr" also. Kuryr has its own ipam driver.</div><div><br></div><div>Please refer this also: <a href="https://github.com/openstack/kuryr/blob/master/doc/source/devref/libnetwork_remote_driver_design.rst#libnetwork-user-workflow-with-kuryr-as-remote-network-driver---host-networking" target="_blank">https://github.com/openstack/kuryr/blob/master/doc/source/devref/libnetwork_remote_driver_design.rst#libnetwork-user-workflow-with-kuryr-as-remote-network-driver---host-networking</a></div><div><br></div><div>Hope this helps.</div><div><br></div><div>-Vikas</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Jan 20, 2016 at 9:01 AM, Mars Ma <span dir="ltr"><<a href="mailto:wenchma@gmail.com" target="_blank">wenchma@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">hi,<div><br></div><div>I used the devstack to deploy kuryr to integrate openstack neutron and docker, but encounter some errors like:</div><div><br></div><div><div>$ sudo docker network create -d kuryr kuryr</div><div>Error response from daemon: failed to parse pool request for address space "GlobalDefault" pool "" subpool "": cannot find address space GlobalDefault (most likely the backing datastore is not configured)</div><div><br></div><div>$ ./scripts/run_kuryr.sh</div><div> * Running on <a href="http://0.0.0.0:2377/" target="_blank">http://0.0.0.0:2377/</a> (Press CTRL+C to quit)</div><div> * Restarting with stat</div><div> * Debugger is active!</div><div> * Debugger pin code: 451-362-807</div><div><br></div><div>127.0.0.1 - - [14/Jan/2016 09:23:03] "POST /Plugin.Activate HTTP/1.1" 200 -</div><div>127.0.0.1 - - [14/Jan/2016 09:23:03] "POST /NetworkDriver.GetCapabilities HTTP/1.1" 200 -</div><div>127.0.0.1 - - [14/Jan/2016 09:23:03] "POST /IpamDriver.GetDefaultAddressSpaces HTTP/1.1" 200 -</div></div><div><br></div><div>any comment is appreciated ? </div><div><br></div><div>Thanks you & Best regards !</div><span><font color="#888888"><div>Mars Ma</div><div>-------------------------------------</div></font></span></div>
<br></div></div>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>