{"action":"created","issue":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/47","repository_url":"https://api.github.com/repos/F5Networks/f5-ansible","labels_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/47/comments","events_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/47/events","html_url":"https://github.com/F5Networks/f5-ansible/issues/47","id":186588155,"number":47,"title":"bigip_software not working on ve","user":{"login":"mleklund","id":2934690,"avatar_url":"https://avatars.githubusercontent.com/u/2934690?v=3","gravatar_id":"","url":"https://api.github.com/users/mleklund","html_url":"https://github.com/mleklund","followers_url":"https://api.github.com/users/mleklund/followers","following_url":"https://api.github.com/users/mleklund/following{/other_user}","gists_url":"https://api.github.com/users/mleklund/gists{/gist_id}","starred_url":"https://api.github.com/users/mleklund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleklund/subscriptions","organizations_url":"https://api.github.com/users/mleklund/orgs","repos_url":"https://api.github.com/users/mleklund/repos","events_url":"https://api.github.com/users/mleklund/events{/privacy}","received_events_url":"https://api.github.com/users/mleklund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-01T17:02:38Z","updated_at":"2016-11-01T18:11:33Z","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\r\n##### COMPONENT NAME\r\nbigip_software\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.3.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### PYTHON VERSION\r\n<!--- Paste verbatim output from “python -V” between quotes below -->\r\n```\r\nPython 2.7.12\r\n```\r\n\r\n##### BIGIP VERSION\r\n<!---\r\nPaste verbatim output from “tmsh show sys version” between quotes below\r\n-->\r\n```\r\nSys::Version\r\nMain Package\r\n  Product     BIG-IP\r\n  Version     12.1.1\r\n  Build       0.0.184\r\n  Edition     Final\r\n  Date        Thu Aug 11 17:09:01 PDT 2016\r\n```\r\n\r\n##### CONFIGURATION\r\n```\r\nretry_files_enabled = False\r\nhost_key_checking=False\r\n```\r\n##### OS / ENVIRONMENT\r\nAlpine 3.4 (Docker Container)\r\n\r\n##### SUMMARY\r\nError when attempting to use bigip_software to update partition\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n#\r\n# vim: ts=2 sts=2 sw=2 et:\r\n\r\n- hosts: bigip-hosts\r\n  vars:\r\n  connection: local\r\n  tasks:\r\n    - bigip_software:\r\n        password: \"{{ bigip_password }}\"\r\n        server: \"{{ inventory_hostname }}\"\r\n        user: \"{{ bigip_username }}\"\r\n        validate_certs: \"{{ validate_certs }}\"\r\n        software: \"/root/BIGIP-12.1.1.0.0.184.iso\"\r\n        hotfix: \"/root/Hotfix-BIGIP-12.1.1.1.0.196-HF1.iso\"\r\n        reuse_inactive_volume: yes\r\n        state: \"installed\"\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\r\nSoftware and hotfix to be applied to newly created partition\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nASK [bigip_software] ************************************************************************************************************************************************\r\ntask path: /playbooks/bigip_software.yaml:10\r\nUsing module file /playbooks/library/bigip_software.py\r\n<hostname.here> ESTABLISH LOCAL CONNECTION FOR USER: root\r\n<hostname.here> EXEC /bin/sh -c '/usr/bin/python && sleep 0'\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_CWDMRh/ansible_module_bigip_software.py\", line 1130, in <module>\r\n    main()\r\n  File \"/tmp/ansible_CWDMRh/ansible_module_bigip_software.py\", line 1111, in main\r\n    except ActiveVolumeError:\r\nNameError: global name 'ActiveVolumeError' is not defined\r\n\r\nfatal: [hostname.here]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_name\": \"bigip_software\"\r\n    },\r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_CWDMRh/ansible_module_bigip_software.py\\\", line 1130, in <module>\\n    main()\\n  File \\\"/tmp/ansible_CWDMRh/ansible_module_bigip_software.py\\\", line 1111, in main\\n    except ActiveVolumeError:\\nNameError: global name 'ActiveVolumeError' is not defined\\n\",\r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\"\r\n}\r\n\tto retry, use: --limit @/playbooks/bigip_software.retry\r\n\r\nPLAY RECAP ***********************************************************************************************************************************************************\r\nlhostname.here     : ok=1    changed=0    unreachable=0    failed=1\r\n```"},"comment":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/comments/257646138","html_url":"https://github.com/F5Networks/f5-ansible/issues/47#issuecomment-257646138","issue_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/47","id":257646138,"user":{"login":"mleklund","id":2934690,"avatar_url":"https://avatars.githubusercontent.com/u/2934690?v=3","gravatar_id":"","url":"https://api.github.com/users/mleklund","html_url":"https://github.com/mleklund","followers_url":"https://api.github.com/users/mleklund/followers","following_url":"https://api.github.com/users/mleklund/following{/other_user}","gists_url":"https://api.github.com/users/mleklund/gists{/gist_id}","starred_url":"https://api.github.com/users/mleklund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleklund/subscriptions","organizations_url":"https://api.github.com/users/mleklund/orgs","repos_url":"https://api.github.com/users/mleklund/repos","events_url":"https://api.github.com/users/mleklund/events{/privacy}","received_events_url":"https://api.github.com/users/mleklund/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T18:11:33Z","updated_at":"2016-11-01T18:11:33Z","body":"```\r\nUsing module file /playbooks/library/bigip_software.py\r\n<hostname.here> ESTABLISH LOCAL CONNECTION FOR USER: root\r\n<hostname.here> EXEC /bin/sh -c '/usr/bin/python && sleep 0'\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 1145, in <module>\r\n    main()\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 1121, in main\r\n    obj = BigIpApiFactory.factory(module)\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 525, in factory\r\n    return BigIpSoapApi(check_mode=module.check_mode, **module.params)\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 604, in __init__\r\n    super(BigIpSoapApi, self).__init__(*args, **kwargs)\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 537, in __init__\r\n    kwargs['photfix'] = self.iso_info(kwargs['hotfix'])\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 551, in iso_info\r\n    cd = ISO9660(iso)\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 303, in __init__\r\n    self._unpack_pvd()\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 406, in _unpack_pvd\r\n    _, self._root = self._unpack_record()\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 427, in _unpack_record\r\n    d['ex_loc'] = self._unpack_both('I')\r\n  File \"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\", line 485, in _unpack_both\r\n    assert a == b\r\nAssertionError\r\n\r\nfatal: [hostname.here]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_name\": \"bigip_software\"\r\n    },\r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 1145, in <module>\\n    main()\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 1121, in main\\n    obj = BigIpApiFactory.factory(module)\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 525, in factory\\n    return BigIpSoapApi(check_mode=module.check_mode, **module.params)\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 604, in __init__\\n    super(BigIpSoapApi, self).__init__(*args, **kwargs)\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 537, in __init__\\n    kwargs['photfix'] = self.iso_info(kwargs['hotfix'])\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 551, in iso_info\\n    cd = ISO9660(iso)\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 303, in __init__\\n    self._unpack_pvd()\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 406, in _unpack_pvd\\n    _, self._root = self._unpack_record()\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 427, in _unpack_record\\n    d['ex_loc'] = self._unpack_both('I')\\n  File \\\"/tmp/ansible_gwbRAB/ansible_module_bigip_software.py\\\", line 485, in _unpack_both\\n    assert a == b\\nAssertionError\\n\",\r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\"\r\n}\r\n\tto retry, use: --limit @/playbooks/bigip_software.retry\r\n\r\nPLAY RECAP ***********************************************************************************************************************************************************\r\nhostname.here     : ok=1    changed=0    unreachable=0    failed=1\r\n```\r\n"}}
{"actor":{"display_login":"mleklund"}}