[openstack-dev] [kuryr] Failed to create network with kuryr driver type

Mars Ma wenchma at gmail.com
Wed Jan 20 10:11:59 UTC 2016


Much thanks to @Vikas

Thanks & Best regards !
Mars Ma
--------------------------------

On Wed, Jan 20, 2016 at 5:55 PM, Vikas Choudhary <choudharyvikas16 at gmail.com
> wrote:

> Hi Mars,
>
> Your problem will be solved by this patch,
> https://review.openstack.org/#/c/265744/ . It has not been merged yet
> though.
>
>
> Thanks
> Vikas
>
>
> On Wed, Jan 20, 2016 at 2:39 PM, Mars Ma <wenchma at gmail.com> wrote:
>
>> Hi Vikas,
>>
>> I added your fix , and also have problem, but different :
>>
>> $ neutron subnetpool-list
>>
>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>> | id                                   | name  | prefixes          |
>> default_prefixlen | address_scope_id |
>>
>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>> | 360765af-fd5d-432c-990f-f787600c30ab | kuryr | [u'10.10.1.0/24'] | 24
>>                |                  |
>>
>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>> ubuntu at kuryr1:~$ sudo docker network create -d kuryr --ipam-driver=kuryr
>> kuryr
>> Error response from daemon: Plugin Error: NetworkDriver.CreateNetwork, {
>>   "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'192.168.42.1/24',\n                  u'Pool': u'
>> 192.168.42.0/24'},\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'10.10.1.0/24'}"
>> }
>> ubuntu at kuryr1:~$ neutron subnetpool-list
>>
>> ubuntu at kuryr1:~$
>>
>> Thank you & Best regards !
>> Mars Ma
>> -------------------------------------
>>
>> On Wed, Jan 20, 2016 at 2:48 PM, Vikas Choudhary <
>> choudharyvikas16 at gmail.com> wrote:
>>
>>> Hi Mars,
>>>
>>> Your code seems to be missing missing this fix:
>>> https://review.openstack.org/#/c/265732/
>>>
>>> Please try with this and let us know if any issues further.
>>>
>>> Thanks
>>> -Vikas
>>>
>>>
>>> On Wed, Jan 20, 2016 at 11:41 AM, Mars Ma <wenchma at gmail.com> wrote:
>>>
>>>> hi Vikas,
>>>>
>>>> Thanks for your reply, I tried your method, looks like that the
>>>> previous problem disappear,
>>>> but a new problem came out:
>>>>
>>>> $ sudo docker network create -d kuryr --ipam-driver=kuryr kuryr
>>>> Error response from daemon: failed to allocate gateway (): invalid CIDR
>>>> address: /24
>>>>
>>>> $ neutron subnetpool-list
>>>>
>>>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>>>> | id                                   | name  | prefixes          |
>>>> default_prefixlen | address_scope_id |
>>>>
>>>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>>>> | 3c52c9dd-579e-4648-8ea7-e2af059d2914 | kuryr | [u'10.10.1.0/24'] |
>>>> 24                |                  |
>>>>
>>>> +--------------------------------------+-------+-------------------+-------------------+------------------+
>>>>
>>>> it got invalid gateway CIDR address:  /24 , I don't know why
>>>>
>>>> Thanks you & Best regards !
>>>> Mars Ma
>>>> -------------------------------------
>>>>
>>>> On Wed, Jan 20, 2016 at 11:53 AM, Vikas Choudhary <
>>>> choudharyvikas16 at gmail.com> wrote:
>>>>
>>>>> Hi Mars,
>>>>>
>>>>> Please use "--ipam-driver=kuryr" also. Kuryr has its own ipam driver.
>>>>>
>>>>> Please refer this also:
>>>>> 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
>>>>>
>>>>> Hope this helps.
>>>>>
>>>>> -Vikas
>>>>>
>>>>> On Wed, Jan 20, 2016 at 9:01 AM, Mars Ma <wenchma at gmail.com> wrote:
>>>>>
>>>>>> hi,
>>>>>>
>>>>>> I used the devstack to deploy kuryr to integrate openstack neutron
>>>>>> and docker, but encounter some errors like:
>>>>>>
>>>>>> $ sudo docker network create -d kuryr kuryr
>>>>>> 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)
>>>>>>
>>>>>> $ ./scripts/run_kuryr.sh
>>>>>>  * Running on http://0.0.0.0:2377/ (Press CTRL+C to quit)
>>>>>>  * Restarting with stat
>>>>>>  * Debugger is active!
>>>>>>  * Debugger pin code: 451-362-807
>>>>>>
>>>>>> 127.0.0.1 - - [14/Jan/2016 09:23:03] "POST /Plugin.Activate HTTP/1.1"
>>>>>> 200 -
>>>>>> 127.0.0.1 - - [14/Jan/2016 09:23:03] "POST
>>>>>> /NetworkDriver.GetCapabilities HTTP/1.1" 200 -
>>>>>> 127.0.0.1 - - [14/Jan/2016 09:23:03] "POST
>>>>>> /IpamDriver.GetDefaultAddressSpaces HTTP/1.1" 200 -
>>>>>>
>>>>>> any comment is appreciated ?
>>>>>>
>>>>>> Thanks you & Best regards !
>>>>>> Mars Ma
>>>>>> -------------------------------------
>>>>>>
>>>>>>
>>>>>> __________________________________________________________________________
>>>>>> OpenStack Development Mailing List (not for usage questions)
>>>>>> Unsubscribe:
>>>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> __________________________________________________________________________
>>>>> OpenStack Development Mailing List (not for usage questions)
>>>>> Unsubscribe:
>>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> __________________________________________________________________________
>>>> OpenStack Development Mailing List (not for usage questions)
>>>> Unsubscribe:
>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>>
>>>
>>>
>>> __________________________________________________________________________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160120/07f33611/attachment.html>


More information about the OpenStack-dev mailing list