infobloxopen / docker-infoblox

IPAM driver for Docker and Infoblox
Apache License 2.0
23 stars 23 forks source link

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

Open ados-h opened 7 years ago

ados-h commented 7 years ago

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" }

ttiscarenoib commented 7 years ago

Extensible attributes are used to record meta-data from Docker in NIOS. If you install the Cloud Network Automation (CNA) license, these are generally created for you automatically but may not happen in older versions of NIOS. These must be created manually otherwise and include:

Cloud API Owned CMP Type Network Name Tenant ID

When creating these EA's, be sure to set them using the following:

Cloud API Owned Type= List Values= True False

CMP Type Type= String

Network Name Type= String

Tenant ID Type= String

johnbelamaric commented 7 years ago

Are you using the version here in master? There is a newer version, right now just in branch 1.1.0-pre that has some helpers for this. I think this new version will be merged to master soon.

See: https://github.com/infobloxopen/docker-infoblox/blob/v1.1.0-pre/docs/CONFIG.md#configuring-cloud-extensible-attributes-using-create-ea-defs-tool

FYI, it is here: https://store.docker.com/community/images/infoblox/docker-ipam-plugin

yuewko commented 7 years ago

Just wanted to add that, if you must use master now, you can use thecreate_ea_defs.sh script. Just edit the top of the script to specify the correct configurations for your setup.

ados-h commented 7 years ago

Thank you guys! Problem solved! I forgot to install Cloud Automation licnese after rebuilding NOIS, my bad......

Just a side note, I tried version v1.1.0-pre, but couldn't get the plugin properly installed. So I'm still on the master branch.

I guess there is a bug since docker complains:

docker plugin install --grant-all-permissions --alias infoblox infoblox/docker-ipam-plugin:1.1.0 CONF_FILE_NAME=docker-infoblox.conf DEBUG=true

1.1.0: Pulling from infoblox/docker-ipam-plugin dc129e323fab: Download complete Digest: sha256:994a300f0f859c915ec665e92edeb31256b8dc18f502c5a94ca1d0248e1e1f2d Status: Downloaded newer image for infoblox/docker-ipam-plugin:1.1.0 Error response from daemon: dial unix /run/docker/plugins/6f1fcca37719af947b6e38570709d624b83c0dab7663268159f789714db4643a/infoblox.sock: connect: no such file or directory

And if we do "docker plugin ls", we get ID NAME DESCRIPTION ENABLED 6f1fcca37719 infoblox:latest Infoblox IPAM plugin for Docker false

ishantt commented 7 years ago

@ados-h what version of docker are you using? BTW 1.1.0 is still under QA .