{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4290","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4290/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4290/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4290/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4290","id":168644315,"number":4290,"title":"Select ip for interface on os_router module","user":{"login":"g0trunks","id":6299253,"avatar_url":"https://avatars.githubusercontent.com/u/6299253?v=3","gravatar_id":"","url":"https://api.github.com/users/g0trunks","html_url":"https://github.com/g0trunks","followers_url":"https://api.github.com/users/g0trunks/followers","following_url":"https://api.github.com/users/g0trunks/following{/other_user}","gists_url":"https://api.github.com/users/g0trunks/gists{/gist_id}","starred_url":"https://api.github.com/users/g0trunks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g0trunks/subscriptions","organizations_url":"https://api.github.com/users/g0trunks/orgs","repos_url":"https://api.github.com/users/g0trunks/repos","events_url":"https://api.github.com/users/g0trunks/events{/privacy}","received_events_url":"https://api.github.com/users/g0trunks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_idea","name":"feature_idea","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T13:21:30Z","updated_at":"2016-08-01T13:45:50Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Idea\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.0.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nFedora 24\r\n$ rpm -qa | grep ansible\r\nansible-2.1.0.0-1.fc24.noarch\r\n$ uname -a\r\nLinux laptop 4.6.4-301.fc24.x86_64+debug #1 SMP Tue Jul 12 11:29:25 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n-->\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nIf the first ip of a subnet is alredy assigned, router is created but interfaces are not.\r\n##### STEPS TO REPRODUCE\r\n- name: Connect subnets using a router\r\n  os_router:\r\n    cloud: \"{{ connection }}\"\r\n    state: present\r\n    name: router_internal\r\n    interfaces:\r\n        - security_subnet\r\n          ip: <<fixed ip address or next free ip if not selected>>\r\n        - private_subnet\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\nTASK [ansible-OpenstackSecurityNetwork : Connect subnets using a router] ***\r\nfatal: [127.0.0.1 -> 127.0.0.1]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Error attaching interface to router 47ce1f62-19c4-4c02-8d88-51afce38a6a9: Unable to complete operation for network c8b362f5-fad4-4b15-9f1d-165f8e20c3bf. The IP address 22.0.0.1 is in use.\\nNeutron server returns request_ids: ['req-5f955b8c-ce00-4dd6-8619-e1b21e71cfb7']\"}\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nIf no IP is selected, ansible should use the first free IP on the newtork.\r\nIf IP is selected, ansible should use it to create the interface, and fail if IP address is already in use.\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nActually, only first IP of the network can be used to create the interface, if IP is in use, ansible module fails to create the interface\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/236584529","html_url":"https://github.com/ansible/ansible-modules-core/issues/4290#issuecomment-236584529","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4290","id":236584529,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T13:45:49Z","updated_at":"2016-08-01T13:45:49Z","body":"<!-- @g0trunks: Thanks for filing this feature idea! -->\n@emonty, @shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is waiting on your response.\n[click here for bot help](https://github.com/jctanner/ansibullbot/blob/ISSUE_TRIAGE_CLASS/ISSUE_HELP.md)\n<!--- boilerplate: issue_bug_new --->"}}
{"actor":{"display_login":"ansibot"}}