{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16895","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16895/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16895/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16895/events","html_url":"https://github.com/ansible/ansible/issues/16895","id":168543325,"number":16895,"title":"Openstack Dynamic Inventory Script","user":{"login":"gvenka008c","id":13439779,"avatar_url":"https://avatars.githubusercontent.com/u/13439779?v=3","gravatar_id":"","url":"https://api.github.com/users/gvenka008c","html_url":"https://github.com/gvenka008c","followers_url":"https://api.github.com/users/gvenka008c/followers","following_url":"https://api.github.com/users/gvenka008c/following{/other_user}","gists_url":"https://api.github.com/users/gvenka008c/gists{/gist_id}","starred_url":"https://api.github.com/users/gvenka008c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvenka008c/subscriptions","organizations_url":"https://api.github.com/users/gvenka008c/orgs","repos_url":"https://api.github.com/users/gvenka008c/repos","events_url":"https://api.github.com/users/gvenka008c/events{/privacy}","received_events_url":"https://api.github.com/users/gvenka008c/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-31T23:06:19Z","updated_at":"2016-08-01T18:30:25Z","closed_at":"2016-08-01T18:30:25Z","body":"\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n\r\n\r\n##### ANSIBLE VERSION\r\n\r\n```\r\n ansible --version\r\nansible 2.0.0.2\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nNA\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nDarwin MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64\r\n-->\r\n\r\n##### SUMMARY\r\nI tried setting multiple group names using nova meta tag as below but couldn't get that working using openstack.py dynamic inventory script for openstack. Can you please suggest?\r\n\r\nhttp://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-openstack-external-inventory-script\r\n\r\n```\r\n$nova meta hostname set \"group=mesos_masters\"\r\n\r\n$ansible -i inventory/openstack.py mesos_masters -m ping\r\nb9d2e61e | SUCCESS => {\r\n    \"changed\": false,\r\n    \"ping\": \"pong\"\r\n}\r\n\r\n$nova meta hostname set \"group=mesos_masters,consul_bootstrap\"\r\n\r\n$ansible -i inventory/openstack.py mesos_masters -m ping\r\n [WARNING]: provided hosts list is empty, only localhost is available\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nsee above\r\n-->\r\n\r\n\r\n\r\n##### EXPECTED RESULTS\r\nShould be able to run the playbook fetching the list of hosts\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\n: provided hosts list is empty, only localhost is available\r\n```\r\n"}}
{"actor":{"display_login":"alikins"}}