This repository has been archived by the owner on May 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Update version of Python SDK used #42
Comments
@priteshkp Thanks for reporting this. Yes this is a known issue with oci sdk 2.1.3. We will update the minimum required version in the next release. |
nalsaber
added a commit
that referenced
this issue
May 1, 2019
Added - Added modules to manage: - [Web Application Firewall Service](https://docs.cloud.oracle.com/iaas/Content/WAF/Concepts/overview.htm) - [Federating with Identity Providers](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/federation.htm) - [Oracle Identity Cloud Service Group Mapping](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/addingidcsusersandgroups.htm) - Added the following features in existing modules: - New allowed values `approximateSize` and `approximateCount` for the `fields` parameter of `oci_bucket_facts` module. These enable populating `approximate_size` and `approximate_count` in the response. - Adding 'primary_private_ip' and 'primary_public_ip' addresses to instance module - Samples to demonstrate: - how to a launch compute instance using an app catalog image Changed - Minimum supported OCI Python SDK to `2.1.7` Fixed - Download an object from a bucket fails if file destination does not exists [issue](#46) - OCI ansible module are not respecting LOG_PATH [issue](#43) - Update version of Python SDK [issue](#42) - 'oci_security_list' should handle int values for ports in playbook Co-authored-by: Nabeel Al Saber <[email protected]> Co-authored-by: Mike Ross <[email protected]>
This issue was resolved in release v1.8.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Report
When following the getting started guide/screencast, I installed the OCI Python SDK (2.1.3), then the OCI Ansible module, and then tried to create and run a playbook. This was all within a virtualenv environment with python 2.7.
Expected behavior
I expected to be able to run the playbook without a problem, but it ended up failing with:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named idna
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/Users/pritpate/.ansible/tmp/ansible-tmp-1555613734.89-48392921355029/AnsiballZ_oci_ad_facts.py", line 113, in \n _ansiballz_main()\n File "/Users/pritpate/.ansible/tmp/ansible-tmp-1555613734.89-48392921355029/AnsiballZ_oci_ad_facts.py", line
This is fixed by "pip install idna", but a new user shouldn't have to do this. The Python SDK fixed this issue in 2.1.5 - oracle/oci-python-sdk#101. The Ansible docs and screencast (and depdendency) should be upgraded to use at least 2.1.5 to prevent new users from hitting this issue.
Environment
OS version: Mac Sierra, 10.12.6
Ansible version:
(ansible) pritpate-mac:playbooks pritpate$ ansible --version
ansible 2.7.10
config file = None
configured module search path = [u'/Users/pritpate/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/pritpate/Documents/envs/ansible/lib/python2.7/site-packages/ansible
executable location = /Users/pritpate/Documents/envs/ansible/bin/ansible
python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
(ansible) pritpate-mac:playbooks pritpate$ python -c "import oci;print(oci.version)"
2.1.3
(ansible) pritpate-mac:playbooks pritpate$ python -c "from ansible.module_utils.oracle import oci_utils; print(oci_utils.version)"
1.7.0
Ansible playbook to reproduce the issue
The text was updated successfully, but these errors were encountered: