awx-operator
awx-operator copied to clipboard
Failed to parse /runner/inventory/openstack.yml with auto plugin: 'region'
Please confirm the following
- [X] I agree to follow this project's code of conduct.
- [X] I have checked the current issues for duplicates.
- [X] I understand that the AWX Operator is open source software provided for free and that I might not receive a timely response.
Bug Summary
Hi,
I am trying to make the OpenStack dynamic inventory but still unable to :(
It looks like very much like this issue which has been marked as solved unfortunately i still encounter the problem.
Inventory variables:
---
clouds:
openstack:
auth:
auth_url: https://openstack-api.fqdn.tld/identity/v3
username: "myusername"
project_id: myprojectid
project_name: "myproject"
user_domain_name: "Default"
region_name: "RegionOne"
interface: "public"
identity_api_version: 3
```
Parameters for the sync
```
---
plugin: openstack
use_hostnames: true
expand_hostvars: true
fail_on_errors: true
private: true
```
Also the region name has been specified in the credentials but still failing.
I tried to limit the scope using host filter but does not help
### AWX Operator version
0.25.0
### AWX version
21.3.0
### Kubernetes platform
minikube
### Kubernetes/Platform version
v1.26.0
### Modifications
no
### Steps to reproduce
install AWX operator on Minikube, version 0.25.0
Setup OpenStack credentials
Setup inventory
Setup source
Run the inventory update
### Expected results
The inventory to be synced
### Actual results
```
ansible-inventory [core 2.12.5.post0]
config file = None
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections:/usr/share/automation-controller/collections
executable location = /usr/local/bin/ansible-inventory
python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)]
jinja version = 2.11.3
libyaml = True
No config file found; using defaults
redirecting (type: inventory) ansible.builtin.openstack to openstack.cloud.openstack
[WARNING]: * Failed to parse /runner/inventory/openstack.yml with auto plugin:
'region'
File "/usr/local/lib/python3.8/site-packages/ansible/inventory/manager.py", line 290, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/usr/local/lib/python3.8/site-packages/ansible/plugins/inventory/auto.py", line 58, in parse
plugin.parse(inventory, loader, path, cache=cache)
File "/usr/share/ansible/collections/ansible_collections/openstack/cloud/plugins/inventory/openstack.py", line 263, in parse
self._populate_from_source(source_data)
File "/usr/share/ansible/collections/ansible_collections/openstack/cloud/plugins/inventory/openstack.py", line 281, in _populate_from_source
self._append_hostvars(hostvars, groups, name, servers[0])
File "/usr/share/ansible/collections/ansible_collections/openstack/cloud/plugins/inventory/openstack.py", line 392, in _append_hostvars
for group in self._get_groups_from_server(server, namegroup=namegroup):
File "/usr/share/ansible/collections/ansible_collections/openstack/cloud/plugins/inventory/openstack.py", line 332, in _get_groups_from_server
region = server_vars['region']
[WARNING]: Unable to parse /runner/inventory/openstack.yml as an inventory
source
ERROR! No inventory was parsed, please check your configuration and options.
```
### Additional information
_No response_
### Operator Logs
_No response_
This may be a good question for the mailing list https://groups.google.com/u/1/g/awx-project
Or you may reach out to the openstack collection maintainers
Thanks for pointing out this @fosterseth i opened a story in the OpenStack collection board, hope i get an answer 🤞