You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, we already had a look at the code and we were able in our LAB to add the "db nodes" of our ExaCC VMclusters as ansible managed nodes. /20160918/VmCluster/ListVmClusters
Nevertheless, the oci plugin is awaiting vnic details (plugins/inventory/oci.py) to extend host_vars, which do not exist on ExaCC/CS VMcluster as network resources are attached through a "VMclusterNetwork" resource.
Thus, by default the plugins/inventory/oci.py method build_inventory_for_db_host stops executing while retrieving the VNIC details
vnic = oci_common_utils.call_with_backoff(
virtual_nw_client.get_vnic, vnic_id=db_host.vnic_id
).data
self.debug(
"VNIC {0} is attached to db_host {1}.".format(vnic.id, db_host.id)
)
Would you agree to add "try except" block? Thus, even if network details are still missing we could at least retrieve the list of nodes :)
Issue Report
Describe the issue
According to the documentation, only DBsystems are supported to become ansible managed nodes
https://github.com/oracle/oci-ansible-collection/blob/master/docs/inventory_plugin/index.rst
However, we already had a look at the code and we were able in our LAB to add the "db nodes" of our ExaCC VMclusters as ansible managed nodes.
/20160918/VmCluster/ListVmClusters
Nevertheless, the oci plugin is awaiting vnic details (plugins/inventory/oci.py) to extend host_vars, which do not exist on ExaCC/CS VMcluster as network resources are attached through a "VMclusterNetwork" resource.
Thus, by default the plugins/inventory/oci.py method build_inventory_for_db_host stops executing while retrieving the VNIC details
Would you agree to add "try except" block? Thus, even if network details are still missing we could at least retrieve the list of nodes :)
Expected behavior
List database nodes as ansible managed nodes
Environment
OS version: macOS 13.5.1 (22G90)
Ansible version:
The text was updated successfully, but these errors were encountered: