kuryr-libnetwork IPAM gateway address creation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-libnetwork |
Fix Released
|
Undecided
|
Matt McEuen |
Bug Description
When I follow the kuryr-libnetwork readme instructions, and try to create a test network per the guide:
docker network create --driver kuryr --ipam-driver kuryr --subnet 10.10.0.0/16 test_net
I get the error:
Error response from daemon: failed to allocate gateway (): No address returned
I'm running Kuryr master against a Kolla-deployed Newton multinode cluster, and I get the same behavior running the prebuilt container on baremetal (veth), custom-built Kuryr on baremetal (veth), and custom-built in a VM (macvlan).
I get these logs [1], which show:
/IpamDriver.
/IpamDriver.
/IpamDriver.
I see the subnet pools getting created in Neutron before getting rolled back [2].
Stepping through the code, I see that Docker is rolling back (ReleasePool) because RequestAddress is returning an allocated_address of '' (hence "No address returned"). The blocks where allocated_address would get set get skipped over:
Here [3], because subnet doesn't get set - the subnet hasn't been created in Neutron yet
Here [4], because a blank req_address is passed in from Docker.
Here is the JSON sent from Docker:
{u'Address': u'', u'Options': {u'RequestAddre
Please let me know if there's anything I could have misconfigured on my side that would cause something like this. I'd be happy to help fix this if someone could point me in the right direction.
[1]: http://
[2]: http://
[3]: https:/
[4]: https:/
Changed in kuryr-libnetwork: | |
assignee: | nobody → Matt McEuen (mm9745) |
assignee: | Matt McEuen (mm9745) → nobody |
assignee: | nobody → Matt McEuen (mm9745) |
Hello, Matt McEuen. Do you specify "--gateway" when you creating network?