{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/32604","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/32604/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/32604/comments","events_url":"https://api.github.com/repos/docker/docker/issues/32604/events","html_url":"https://github.com/docker/docker/issues/32604","id":221634298,"number":32604,"title":"IpamDriver.RequestPool is called in swam mode when start container","user":{"login":"LipingMao","id":6290410,"avatar_url":"https://avatars3.githubusercontent.com/u/6290410?v=3","gravatar_id":"","url":"https://api.github.com/users/LipingMao","html_url":"https://github.com/LipingMao","followers_url":"https://api.github.com/users/LipingMao/followers","following_url":"https://api.github.com/users/LipingMao/following{/other_user}","gists_url":"https://api.github.com/users/LipingMao/gists{/gist_id}","starred_url":"https://api.github.com/users/LipingMao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LipingMao/subscriptions","organizations_url":"https://api.github.com/users/LipingMao/orgs","repos_url":"https://api.github.com/users/LipingMao/repos","events_url":"https://api.github.com/users/LipingMao/events{/privacy}","received_events_url":"https://api.github.com/users/LipingMao/received_events","type":"User","site_admin":false},"labels":[{"id":237472034,"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04","default":false},{"id":583300157,"url":"https://api.github.com/repos/docker/docker/labels/version/17.05","name":"version/17.05","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-13T17:44:14Z","updated_at":"2017-04-13T19:42:09Z","closed_at":"2017-04-13T19:42:09Z","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nGENERAL SUPPORT INFORMATION\r\n---------------------------------------------------\r\n\r\nThe GitHub issue tracker is for bug reports and feature requests.\r\nGeneral support can be found at the following locations:\r\n\r\n- Docker Support Forums - https://forums.docker.com\r\n- IRC - irc.freenode.net #docker channel\r\n- Post a question on StackOverflow, using the Docker tag\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Description**\r\nI created a network with kuryr remote driver pluginv2 in swarm mode, when I start container in that network, IpamDriver.RequestPool is called in kuryr.\r\nWhen I use non-swarm mode, this API only be called when I create network, it will not be called when start container. Is this action by design or bug in swarm mode?\r\n\r\n\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n1. Enable kuryr pluginv2.\r\n2. Create network.\r\n```\r\ndocker network create --attachable --driver=limao/kuryr-libnetwork-v2plugin:latest --ipam-driver=limao/kuryr-libnetwork-v2plugin:latest --subnet 10.225.17.0/24  --gateway 10.225.17.1 --ip-range 10.225.17.0/24  -o neutron.net.uuid=55aec833-7838-482f-be9e-b205e5c6f2c4  limao\r\n```\r\n3. Start container in that network.\r\n```\r\ndocker run --net=limao -itd busybox\r\n```\r\n\r\n\r\n**Describe the results you received:**\r\nBoth IpamDriver.RequestAddress and IpamDriver.RequestPool API is called when I run Step 3 .\r\nHere is the log:\r\n```\r\nApr 13 13:00:27 localhost dockerd: time=\"2017-04-13T13:00:27-04:00\" level=info msg=\"[pid: 13|app: 0|req: 11/20] 0.0.0.0 () {26 vars in 364 bytes} [Thu Apr 13 17:00:27 2017] POST /IpamDriver.RequestAddress => generated 36 bytes in 726 msecs (HTTP/1.1 200) 2 headers in 71 bytes (2 switches on core 0)\" plugin=fc90ae941c5a06e24ed58a92a83e55504379acf65f3fc62eaf33a2f6abe64974\r\nApr 13 13:00:28 localhost dockerd: time=\"2017-04-13T13:00:28-04:00\" level=info msg=\"[pid: 13|app: 0|req: 12/21] 0.0.0.0 () {26 vars in 359 bytes} [Thu Apr 13 17:00:28 2017] POST /IpamDriver.RequestPool => generated 102 bytes in 74 msecs (HTTP/1.1 500) 2 headers in 128 bytes (3 switches on core 0)\" plugin=fc90ae941c5a06e24ed58a92a83e55504379acf65f3fc62eaf33a2f6abe64974\r\n```\r\n\r\n\r\n**Describe the results you expected:**\r\nI expected only IpamDriver.RequestAddress will be called when I start container.\r\nIpamDriver.RequestPool will not be called.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\n# docker version\r\nClient:\r\n Version:      17.05.0-ce-rc1\r\n API version:  1.29\r\n Go version:   go1.7.5\r\n Git commit:   2878a85\r\n Built:        Tue Apr 11 21:13:52 2017\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      17.05.0-ce-rc1\r\n API version:  1.29 (minimum version 1.12)\r\n Go version:   go1.7.5\r\n Git commit:   2878a85\r\n Built:        Tue Apr 11 21:13:52 2017\r\n OS/Arch:      linux/amd64\r\n Experimental: false\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\n# docker info\r\nContainers: 8\r\n Running: 1\r\n Paused: 0\r\n Stopped: 7\r\nImages: 2\r\nServer Version: 17.05.0-ce-rc1\r\nStorage Driver: overlay\r\n Backing Filesystem: xfs\r\n Supports d_type: false\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host limao/kuryr-libnetwork-v2plugin:latest macvlan null overlay\r\nSwarm: active\r\n NodeID: uw603zd9v37ps9p4cmlib75cf\r\n Is Manager: true\r\n ClusterID: v3aj79fzoaz8i7e04ustmsgrg\r\n Managers: 1\r\n Nodes: 2\r\n Orchestration:\r\n  Task History Retention Limit: 5\r\n Raft:\r\n  Snapshot Interval: 10000\r\n  Number of Old Snapshots to Retain: 0\r\n  Heartbeat Tick: 1\r\n  Election Tick: 3\r\n Dispatcher:\r\n  Heartbeat Period: 5 seconds\r\n CA Configuration:\r\n  Expiry Duration: 3 months\r\n Node Address: 10.225.17.184\r\n Manager Addresses:\r\n  10.225.17.184:2377\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 9048e5e50717ea4497b757314bad98ea3763c145\r\nrunc version: 9c2d8d184e5da67c95d601382adf14862e4f2228\r\ninit version: 949e6fa\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 3.10.0-327.10.1.el7.x86_64\r\nOperating System: Red Hat Enterprise Linux Server 7.2 (Maipo)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 1.797GiB\r\nName: limao-rhel7-1.localdomain\r\nID: GE65:LDZT:RTFW:IYIH:AKKV:MYLT:HABO:V3LD:FOEM:M4PX:VKUJ:MQ57\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: limao\r\nRegistry: https://index.docker.io/v1/\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\n\r\nWARNING: overlay: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior.\r\n         Reformat the filesystem with ftype=1 to enable d_type support.\r\n         Running without d_type support will not be supported in future releases.\r\nWARNING: bridge-nf-call-ip6tables is disabled\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nVM on Openstack\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/294002386","html_url":"https://github.com/docker/docker/issues/32604#issuecomment-294002386","issue_url":"https://api.github.com/repos/docker/docker/issues/32604","id":294002386,"user":{"login":"aboch","id":10080882,"avatar_url":"https://avatars2.githubusercontent.com/u/10080882?v=3","gravatar_id":"","url":"https://api.github.com/users/aboch","html_url":"https://github.com/aboch","followers_url":"https://api.github.com/users/aboch/followers","following_url":"https://api.github.com/users/aboch/following{/other_user}","gists_url":"https://api.github.com/users/aboch/gists{/gist_id}","starred_url":"https://api.github.com/users/aboch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboch/subscriptions","organizations_url":"https://api.github.com/users/aboch/orgs","repos_url":"https://api.github.com/users/aboch/repos","events_url":"https://api.github.com/users/aboch/events{/privacy}","received_events_url":"https://api.github.com/users/aboch/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T19:42:09Z","updated_at":"2017-04-13T19:42:09Z","body":"I am closing as this is by design.\r\n\r\nBut feel free to continue the discussion here."}}
{"actor":{"display_login":"aboch"}}