GithubHelp home page GithubHelp logo

docker-infoblox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-infoblox's Issues

Error response from daemon: invalid ipam driver: "infoblox"

Hello, I'm having issues with running docker on a Ubuntu box in the AWS cloud. I followed all the step for installing in Linux but I keep getting an "Error response from daemon: invalid ipam driver: infoblox." What exactly does it mean when it says "invalid?"

sudo docker run -e DOCKER_API_VERSION=1.22 -v /var/run:/var/run -v /run/docker:/run/docker infoblox/ipam-driver --grid-host=my-host.com --wapi-username=ib-wapi --wapi-password=infoblox --local-view=local_view --local-network-container="192.168.0.0/16" --local-prefix-length=24 --global-view=global_view --global-network-container="192.169.0.0/16" --global-prefix-length=24

/var/lib/docker/plugins# ls
b868c7f390ca140e68f0cd496742b91810ac11178def1ba55043ca76454a7306 storage tmp
root@ip-10-59-17-132:/var/lib/docker/plugins# docker plugin ls
ID NAME DESCRIPTION ENABLED
b868c7f390ca infoblox:latest Infoblox IPAM plugin for Docker true

docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dbce83471a73 1904fd8a2b09 "/ipam-driver --grid…" 33 minutes ago Up 33 minutes suspicious_sammet

sudo docker network create --ipam-driver=infoblox priv-net
Error response from daemon: invalid ipam driver: "infoblox"

sudo docker network create --ipam-driver=infoblox:latest priv-net
Error response from daemon: invalid ipam driver: "infoblox:latest"

sudo docker network create --ipam-driver=Infoblox:latest priv-net
Error response from daemon: plugin "Infoblox:latest" not found

Infoblox doesn't record container hostname

Guys,

Sorry, one more question.

IP assignment and release are successful for docker containers through the ipam-driver.
However, I noticed that container hostname info is not recorded in infoblox.

I looked the request going to infoblox which doesn't contain a 'hostname' field. Did I miss something in my docker run command, or this feature is not currently available in the ipam-driver?

I'm on master at the moment.

Thank you!

Default docker version does not match in comment and code

The code and comment does not match in Docker version in ipam_driver.go

// Default to Docker API Version corresponding to Docker v1.10
if os.Getenv("DOCKER_API_VERSION") == "" {
if err = os.Setenv("DOCKER_API_VERSION", "1.22"); err != nil {
logrus.Infof("Cannot set default Docker API Version: '%s'", err)
os.Exit(1)
}
}

When trying to add a docker network, I got unknown extensible attribute for Network Name (blue)

Guys,

Any help/clue would be much appreciated!

Can anyone give me some suggestion whether the command I composed was wrong or some variable names should be synced between docker-infoblox and docker engine?

docker network create --driver bridge --ipam-driver infoblox --subnet 10.1.2.0/24 blue

Error response from daemon: remote: WAPI request error: 400('400 Bad Request')
Contents:
{ "Error": "AdmConProtoError: Unknown extensible attribute: Network Name",
"code": "Client.Ibap.Proto",
"text": "Unknown extensible attribute: Network Name"
}

If I do # curl -k -u admin:admin -X GET 'https://192.168.1.1/wapi/v1.4/network', I don't see any Extensible Attributes in output, can someone help as well?
[
{
"_ref": "network/ZG5zLm5ldHdvcmskMTAuMS4xLjAvMjQvMA:10.1.1.0/24/default",
"comment": "yellow",
"network": "10.1.1.0/24",
"network_view": "default"
},
{
"_ref": "network/ZG5zLm5ldHdvcmskMTAuMi4yLjAvMjQvMA:10.2.2.0/24/default",
"comment": "red",
"network": "10.2.2.0/24",
"network_view": "default"
}

Error trying to create a network

In one terminal, I try to create networks:

ANN-M-JBELAMARIC:libnetwork jbelamaric$ docker network create --ipam-driver=infoblox ibtest
Error response from daemon: failed to allocate gateway (): invalid CIDR address: /24
ANN-M-JBELAMARIC:libnetwork jbelamaric$ docker network create --ipam-driver=infoblox --subnet 10.100.10.0/24 ibtest
Error response from daemon: failed to allocate gateway (): invalid CIDR address: /24
ANN-M-JBELAMARIC:libnetwork jbelamaric$

In my driver container:

ANN-M-JBELAMARIC:~ jbelamaric$ docker run -v /var/run:/var/run -v /run/docker:/run/docker infoblox/ipam-driver --grid-host=172.23.25.175 --wapi-username=admin --wapi-password=infoblox --global-viewocker-global --local-view=docker-local --socket=/run/docker/plugins/infoblox.sock
2016/02/12 19:00:13 Docker id is 'NASO:BFXH:L3R5:M26R:PLE2:SG4W:WO3E:HP67:LWGQ:NOJJ:KQYX:4NRZ'
2016/02/12 19:00:13 Default Network CIDR: 10.2.1.0/24
2016/02/12 19:00:16 Plugin: /Plugin.Activate
2016/02/12 19:00:16 /Plugin.Activate completed
2016/02/12 19:00:16 Plugin: /IpamDriver.GetDefaultAddressSpaces
2016/02/12 19:00:25 /IpamDriver.GetDefaultAddressSpaces completed
2016/02/12 19:00:25 Plugin: /IpamDriver.RequestPool
2016/02/12 19:00:31 /IpamDriver.RequestPool api.RequestPoolRequest{AddressSpace:"docker-local", Pool:"", SubPool:"", Options:map[string]string(nil), V6:false} completed
2016/02/12 19:00:31 Plugin: /IpamDriver.RequestAddress
2016/02/12 19:00:31 RequestAddressRequest contains empty MAC Address. A random one will be generated.
2016/02/12 19:00:32 WAPI request error: 400('400 Bad Request')
Contents:
{ "Error": "AdmConProtoError: 10.2.1.0/24,docker does not match any unique networks/ranges (ipv4addr)",
  "code": "Client.Ibap.Proto",
  "text": "10.2.1.0/24,docker does not match any unique networks/ranges (ipv4addr)"
}
2016/02/12 19:00:32 Cannot unmarshall '', err: 'unexpected end of JSON input'
2016/02/12 19:00:32 /IpamDriver.RequestAddress api.RequestAddressRequest{PoolID:"network/ZG5zLm5ldHdvcmskMTAuMi4xLjAvMjQvOA:10.2.1.0/24/docker-local", Address:"", Options:map[string]string(nil)} :  completed
2016/02/12 19:00:32 Plugin: /IpamDriver.ReleasePool
2016/02/12 19:00:33 /IpamDriver.ReleasePool network/ZG5zLm5ldHdvcmskMTAuMi4xLjAvMjQvOA:10.2.1.0/24/docker-local completed
2016/02/12 19:01:12 Plugin: /IpamDriver.RequestPool
2016/02/12 19:01:14 /IpamDriver.RequestPool api.RequestPoolRequest{AddressSpace:"docker-local", Pool:"10.100.10.0/24", SubPool:"", Options:map[string]string(nil), V6:false} completed
2016/02/12 19:01:14 Plugin: /IpamDriver.RequestAddress
2016/02/12 19:01:14 RequestAddressRequest contains empty MAC Address. A random one will be generated.
2016/02/12 19:01:15 WAPI request error: 400('400 Bad Request')
Contents:
{ "Error": "AdmConProtoError: 10.100.10.0/24,docker does not match any unique networks/ranges (ipv4addr)",
  "code": "Client.Ibap.Proto",
  "text": "10.100.10.0/24,docker does not match any unique networks/ranges (ipv4addr)"
}
2016/02/12 19:01:15 Cannot unmarshall '', err: 'unexpected end of JSON input'
2016/02/12 19:01:15 /IpamDriver.RequestAddress api.RequestAddressRequest{PoolID:"network/ZG5zLm5ldHdvcmskMTAuMTAwLjEwLjAvMjQvOA:10.100.10.0/24/docker-local", Address:"", Options:map[string]string(nil)} :  completed
2016/02/12 19:01:15 Plugin: /IpamDriver.ReleasePool
2016/02/12 19:01:16 /IpamDriver.ReleasePool network/ZG5zLm5ldHdvcmskMTAuMTAwLjEwLjAvMjQvOA:10.100.10.0/24/docker-local completed

Can't delete address pool automatically if docker network is created with --ipam-opt="network-name=blue"

Guys,

Need you help, thank you in advance!

Without --ipam-opt="network-name=blue", I could successfully create and delete an address pool on infoblox in the automated manner if corresponding docker network create/rm command is issued.

However, if I add --ipam-opt="network-name=blue" in the docker network create command to have the "Network Name" Extensible Attribute automatically created together with the address pool, the address pool wouldn't be automatically deleted by the docker network rm command (network is successfully deleted in docker nevertheless).

Any thoughts, suggestions?
I'm currently on the master branch, btw.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.