oracle / oci-ansible-collection

Oracle Cloud Infrastructure Ansible Collection provides an easy way to provision and manage resources in Oracle Cloud using Ansible.
https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/ansible.htm
Other
173 stars 97 forks source link

Module oci_database_db_node_facts returns wrong cpu_core_count #279

Open ytyapkin opened 7 months ago

ytyapkin commented 7 months ago

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

Ansible playbook to reproduce the issue