{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39879","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39879/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39879/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39879/events","html_url":"https://github.com/ansible/ansible/issues/39879","id":321398074,"number":39879,"title":"openstack.py dynamic inventory fails with latest openstacksdk","user":{"login":"bryfry","id":116113,"avatar_url":"https://avatars0.githubusercontent.com/u/116113?v=4","gravatar_id":"","url":"https://api.github.com/users/bryfry","html_url":"https://github.com/bryfry","followers_url":"https://api.github.com/users/bryfry/followers","following_url":"https://api.github.com/users/bryfry/following{/other_user}","gists_url":"https://api.github.com/users/bryfry/gists{/gist_id}","starred_url":"https://api.github.com/users/bryfry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryfry/subscriptions","organizations_url":"https://api.github.com/users/bryfry/orgs","repos_url":"https://api.github.com/users/bryfry/repos","events_url":"https://api.github.com/users/bryfry/events{/privacy}","received_events_url":"https://api.github.com/users/bryfry/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":785271699,"url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":511880827,"url":"https://api.github.com/repos/ansible/ansible/labels/c:inventory/contrib_script","name":"c:inventory/contrib_script","color":"b60205","default":false},{"id":61528803,"url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":379680546,"url":"https://api.github.com/repos/ansible/ansible/labels/digital_ocean","name":"digital_ocean","color":"c5def5","default":false},{"id":612318497,"url":"https://api.github.com/repos/ansible/ansible/labels/inventory","name":"inventory","color":"1d76db","default":false},{"id":379682897,"url":"https://api.github.com/repos/ansible/ansible/labels/openstack","name":"openstack","color":"c5def5","default":false},{"id":636327968,"url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false},{"id":942378949,"url":"https://api.github.com/repos/ansible/ansible/labels/traceback","name":"traceback","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-09T01:18:00Z","updated_at":"2018-05-26T13:15:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\ncontrib/inventory/openstack.py\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n ansible --version\r\nansible 2.5.2\r\n  config file = None\r\n  configured module search path = [u'/home/student/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### CONFIGURATION\r\nNo config changes\r\n\r\n##### OS / ENVIRONMENT\r\nUbuntu 16.04 \r\n\r\n##### SUMMARY\r\nOpenstack dynamic inventory fails to run a basic `--list` or `--debug` command because of import errors.\r\n\r\n##### STEPS TO REPRODUCE\r\n```\r\npip freeze | egrep \"openstack|shade\"\r\nshade==1.28.0\r\nopenstacksdk==0.13.0\r\npython-openstackclient==3.15.0\r\n```\r\n\r\n```\r\n./openstack.py --list                                                                                 \r\n```\r\n\r\nor\r\n\r\n```\r\n./openstack.py --debug                                                                               \r\n```\r\n\r\n##### EXPECTED RESULTS\r\nModule failures indicate openstacksdk changes which have not been accounted for in ansible's dynamic inventory code.  Expect a normal running of the command to proceed without module errors.\r\n\r\n##### ACTUAL RESULTS\r\n```\r\n./openstack.py --list                                                                                 \r\nTraceback (most recent call last):\r\n  File \"./openstack.py\", line 66, in <module>\r\n    import os_client_config\r\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/__init__.py\", line 19, in <module>\r\n    from os_client_config import cloud_config\r\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 17, in <module>\r\n    from openstack import _log\r\n  File \"/home/student/openstack.py\", line 67, in <module>\r\n    import shade\r\n  File \"/usr/local/lib/python2.7/dist-packages/shade/__init__.py\", line 24, in <module>\r\n    from shade.openstackcloud import OpenStackCloud\r\n  File \"/usr/local/lib/python2.7/dist-packages/shade/openstackcloud.py\", line 24, in <module>\r\n    import os_client_config.defaults\r\n  File \"/usr/local/lib/python2.7/dist-packages/os_client_config/defaults.py\", line 17, in <module>\r\n    from openstack.config import defaults\r\nImportError: No module named config\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/392260737","html_url":"https://github.com/ansible/ansible/issues/39879#issuecomment-392260737","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39879","id":392260737,"user":{"login":"gundalow","id":940557,"avatar_url":"https://avatars1.githubusercontent.com/u/940557?v=4","gravatar_id":"","url":"https://api.github.com/users/gundalow","html_url":"https://github.com/gundalow","followers_url":"https://api.github.com/users/gundalow/followers","following_url":"https://api.github.com/users/gundalow/following{/other_user}","gists_url":"https://api.github.com/users/gundalow/gists{/gist_id}","starred_url":"https://api.github.com/users/gundalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gundalow/subscriptions","organizations_url":"https://api.github.com/users/gundalow/orgs","repos_url":"https://api.github.com/users/gundalow/repos","events_url":"https://api.github.com/users/gundalow/events{/privacy}","received_events_url":"https://api.github.com/users/gundalow/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T13:15:43Z","updated_at":"2018-05-26T13:15:43Z","author_association":"CONTRIBUTOR","body":"bot_status"}}
{"actor":{"display_login":"gundalow"}}