Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module oci_database_db_node_facts returns wrong cpu_core_count #279

Open
ytyapkin opened this issue Apr 16, 2024 · 0 comments
Open

Module oci_database_db_node_facts returns wrong cpu_core_count #279

ytyapkin opened this issue Apr 16, 2024 · 0 comments

Comments

@ytyapkin
Copy link

Issue Report

According to https://oci-ansible-collection.readthedocs.io/en/latest/collections/oracle/oci/oci_database_db_node_facts_module.html#ansible-collections-oracle-oci-oci-database-db-node-facts-module cpu_core_count should contain a number of CPU cores for a node. However, provided value is actually cpu_core_count/2 and rather looks like OCPU

Expected behavior
cpu_core_count should contain a number of CPU cores

Environment
Oracle Base Database Service, 2 nodes
oracle.oci:5.0.0
MarkupSafe-2.1.5 PyYAML-6.0.1 ansible-8.7.0 ansible-core-2.15.10 certifi-2024.2.2 cffi-1.16.0 circuitbreaker-1.4.0 cryptography-42.0.5 importlib-resources-5.0.7 jinja2-3.1.3 oci-2.125.3 packaging-24.0 pyOpenSSL-24.1.0 pycparser-2.22 python-dateutil-2.9.0.post0 pytz-2024.1 resolvelib-1.0.1 six-1.16.0

  • OS version:
    Linux, version 4.18.0-372.13.1.el8_6.x86_64

  • Ansible version:
    ansible [core 2.15.10]
    config file = None
    configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /opt/TeamCity/work/483648b41440d492/ansible/lib64/python3.9/site-packages/ansible
    ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
    executable location = /opt/TeamCity/work/483648b41440d492/ansible/bin/ansible
    python version = 3.9.7 (default, Sep 13 2021, 08:18:39) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] (/opt/TeamCity/work/483648b41440d492/ansible/bin/python3.9)
    jinja version = 3.1.3
    libyaml = True

  • OCI Python SDK version:
    2.125.3

  • OCI Ansible Modules version:
    Collection Version


oracle.oci 5.0.0

Ansible playbook to reproduce the issue

  • name: Scale RAC
    hosts: localhost
    tasks:
    • name: Get node list
      oracle.oci.oci_database_db_node_facts:
      compartment_id: "{{ compartment_id }}"
      db_system_id: "{{ db_system_id }}"
      register: node_facts
    • name: List facts
      ansible.builtin.debug:
      var: node_facts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant