oci-ansible-collection
oci-ansible-collection copied to clipboard
Lacking ipv6 information in inventory plugin variables
Issue Report
Describe the issue
The inventory plugin should contain ipv6 information as well, not just ipv4.
Environment
-
OS version: Ubuntu 20.04.5
-
Ansible version:
ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible executable location = /usr/bin/ansible python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
- OCI Python SDK version:
2.84.0
- OCI Ansible Modules version:
Ansible 2.9 does not have collection listing, but it's version 3.3.0
Ansible playbook to reproduce the issue
No playbook, just 'ansible-inventory --list' and you can see that no ipv6 is listed anywhere.
@Ether009 Thanks for reporting this. We are looking into this, will get back to you.
@Ether009 We added the IPv6 information to host variables (for compute instances) in the latest version (v4.3.0). Please check.
@manojmeda the ipv6 details caused some issues for us. We had set up policies according to the docs, and suddenly observing 404 - NotAuthorizedOrNotFound on the /20160918/ipv6 endpoint and inventory plugin failing since the user/dynamic-groups did not have access to GetIpv6
. Adding read ipv6s
in our policies fixed it.
I considered creating a separate issue for this, but I figured it fit with the history here.
@krilor Thanks for letting us know. We will update the docs, also we will skip ipv6 steps for the users who do not have access, so that it will not fail for existing users.
@krilor In latest release v4.4.0, We have updated code to skip ipv6 steps for users who don't have access to read ipv6s
policy. Also, updated the docs for policies required for inventory plugin.
@dineshsuthar786 Thanks for letting me know and the prompt fix. Seems like a good solution :)