{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3430","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3430/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3430/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3430/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/3430","id":188708482,"number":3430,"title":"Ovirt module reports that SDK is missing while it is installed","user":{"login":"gelato","id":1236528,"avatar_url":"https://avatars.githubusercontent.com/u/1236528?v=3","gravatar_id":"","url":"https://api.github.com/users/gelato","html_url":"https://github.com/gelato","followers_url":"https://api.github.com/users/gelato/followers","following_url":"https://api.github.com/users/gelato/following{/other_user}","gists_url":"https://api.github.com/users/gelato/gists{/gist_id}","starred_url":"https://api.github.com/users/gelato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelato/subscriptions","organizations_url":"https://api.github.com/users/gelato/orgs","repos_url":"https://api.github.com/users/gelato/repos","events_url":"https://api.github.com/users/gelato/events{/privacy}","received_events_url":"https://api.github.com/users/gelato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T08:25:25Z","updated_at":"2016-11-11T08:25:25Z","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 - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\novirt\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.3.0 (devel c880c1a78d) last updated 2016/11/11 10:36:42 (GMT +300)\r\n  lib/ansible/modules/core: (detached HEAD d52d256196) last updated 2016/11/11 10:36:47 (GMT +300)\r\n  lib/ansible/modules/extras: (detached HEAD 00d350de4e) last updated 2016/11/11 10:36:51 (GMT +300)\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nLinux Mint 18\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nI get the error: \"ovirtsdk required for this module\" when try to run this module, but ovirt-engine-sdk (3.2.0.11-SNAPSHOT) is installed and i can successfully import it via python2 cli.\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\napt-get install ansible\r\nansible-playbook -i ipa-hosts.ini ipamanage.yml --tags=\"ovirt_deploy\"\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n- name: Create new vm from template\r\n    tags:\r\n      - ovirt_deploy\r\n    ovirt:\r\n      user: \"{{ ovirt_user }}\"\r\n      url: \"{{ ovirt_control_url }}\"\r\n      password: \"{{ ovirt_pass }}\"\r\n      instance_name: \"{{ item.login }}\"\r\n      resource_type: template\r\n      image: unprovisioned\r\n      zone: \"{{ item.cluster_zone }}\"\r\n    with_items: \"{{ users_to_add }}\"\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\nOvirt module will work fine:\r\n\r\nPython 2.7.12 (default, Jul  1 2016, 15:12:24)\r\n[GCC 5.4.0 20160609] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from ovirtsdk.api import API\r\n>>> from ovirtsdk.xml import params\r\n\r\n>>>\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\nModule fails everytime.\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nfailed: [ipa.krtech.loc] (item={u'username': u'Vladimir Putin', u'group': u'president', u'cluster_zone': u'Default', u'group_desc': u'\\u0420\\u0443\r\n\\u0441\\u0441\\u043a\\u0438\\u0439 \\u043f\\u0440\\u0435\\u0437\\u0438\\u0434\\u0435\\u043d\\u0442', u'personal_data': [{u'telnum': 7970000000, u'mail': u'puti\r\nn@gmail.com', u'first_name': u'\\u0412\\u043b\\u0430\\u0434\\u0438\\u043c\\u0438\\u0440', u'last_name': u'\\u041f\\u0443\\u0442\\u0438\\u043d', u'jobtitle': u'\r\n\\u042d\\u043b\\u044c \\u043f\\u0440\\u0435\\u0437\\u0438\\u0434\\u0435\\u043d\\u0442\\u0435'}], u'login': 33333333}) => {\"failed\": true, \"item\": {\"cluster_zon\r\ne\": \"Default\", \"group\": \"president\", \"group_desc\": \"Русский президент\", \"login\": 33333333, \"personal_data\": [{\"first_name\": \"Владимир\", \"jobtitle\"\r\n: \"Эль президенте\", \"last_name\": \"Путин\", \"mail\": \"putin@gmail.com\", \"telnum\": 7970000000}], \"username\": \"Vladimir Putin\"}, \"msg\": \"ovirtsdk requi\r\nred for this module\"}\r\n```\r\n"}}
{"actor":{"display_login":"gelato"}}