Run playbooks in OpenStack-Ansible

Bug #1736087 reported by sergey kuhn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Undecided
Unassigned

Bug Description

When I run openstack-ansible setup-infrastructure.yml --syntax-check or openstack-ansible /opt/openstack-ansible/playbooks/setup-hosts.yml I take error:

Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "
ERROR! Attempted to execute "/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py" as inventory script: Inventory script (/opt/openstack-ansible/playbooks/inventory/dynamic_inventory.py) had an execution error: Could not read data sources: '(['/etc/openstack_deploy', '/etc/openstack_deploy/conf.d'],)'.

But all files and folders in /etc/openstack_deploy as well

OS CentOS 7 3.10.0-693.5.2.el7.x86_64

I use guide https://docs.openstack.org/project-deploy-guide/openstack-ansible/latest/run-playbooks.html

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Hello.

I suppose you're running master.
Did you bootstrap ansible using our provided script?

Could you show us the contents of your /etc/openstack_deploy folder?

Maybe you could paste your /etc/openstack_deploy/openstack_user_config.yml file somewhere?

Revision history for this message
sergey kuhn (kuhnsn) wrote :

Hello.
thank you for your answer

Yes, I using bootstrap ansible provided script:
"+ echo 'System is bootstrapped and ready for use.'
System is bootstrapped and ready for use."

The contents of my /etc/openstack_deploy :

openstack_deploy]# ls
ansible_facts openstack_user_config.yml.aio.j2 setup-hosts.yml user_secrets.yml_gen
conf.d openstack_user_config.yml.example setup-infrastructure.yml user_secrets.yml.tar
env.d openstack_user_config.yml.pod.example setup-openstack.yml user_variables.yml
openstack_user_config.yml openstack_user_config.yml.prod.example user_secrets.yml user_variables.yml.prod.example
openstack_user_config.yml.aio openstack_user_config.yml.test.example user_secrets.yml.bak user_variables.yml.test.example

openstack_user_config.yml is in /etc/openstack_deploy folder.

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

you have a lot of files you shouldn't have there, but let's say ok.
Could you paste the contents of your

/etc/openstack_deploy/openstack_user_config.yml and your /etc/openstack_deploy/conf.d/*.yml ?

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
sergey kuhn (kuhnsn) wrote :

I'm sorry, that I distrubed you. The problem was in me. I made mistake when copied file openstack_user_config.yml. I edited files on my PC and copied not right file openstack_user_config.yml on server.
Thank you for your help.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.