8000 oci python sdk required for this module (SDK already installed) · Issue #267 · oracle/oci-ansible-collection · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
oci python sdk required for this module (SDK already installed) #267
Open
@lucasaugustomcc

Description

@lucasaugustomcc
5F1B

Issue Report

Describe the issue

Even though the SDK is already installed I'm still getting an error message.
I've followed the instructions from the Troubleshooting guide but it does not work for me.

Error message:

[I am not able to run a](fatal: [chat-52]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "oci python sdk required for this module.", "troubleshooting_tips": "Refer to troubleshooting guide https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest/guides/troubleshooting-guide.html"})

Expected behavior

Identify oci python sdk already installed and run playbook.

Environment

  • OS version: Ubuntu 22.04

  • Ansible version: core 2.16.2

  ansible [core 2.16.2]
  config file = /home/lucas/.ansible.cfg
  configured module search path = ['/home/lucas/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
  ansible collection location = /home/lucas/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
  • OCI Python SDK version: 2.119.1

  • OCI Ansible Modules version: 4.40.0

Ansible playbook to reproduce the issue

- name: Instances
  hosts: oracle
  strategy: free
  gather_facts: false
  collections:
    - oracle.oci
  tasks:    
  - name: Upgrade / downgrade compute instance
    oci_compute_instance:
      instance_id: "{{ instance_id }}"
      shape_config:
        memory_in_gbs: "{{ memory_in_gbs }}"
        ocpus: "{{ ocpus }}" 
        baseline_ocpu_utilization: BASELINE_1_1    
      wait_timeout: 3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0