Ask Your Question
2

error while deploying openstack-ansible newton

asked 2017-01-23 02:33:19 -0500

heena gravatar image

updated 2017-01-26 08:49:24 -0500

rbowen gravatar image

I am following the guide http://docs.openstack.org/project-dep...

When running the below playbook, I am getting an error

openstack-ansible setup-hosts.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'],)'.

Any idea why this is happening? I have /etc/openstack_deploy folder as well

$ cd /etc/openstack_deploy/
$ ls
ansible_facts  env.d                      openstack_user_config.yml.aio      openstack_user_config.yml.prod.example  user_secrets.yml    user_variables.yml.prod.example
conf.d         openstack_user_config.yml  openstack_user_config.yml.example  openstack_user_config.yml.test.example  user_variables.yml
edit retag flag offensive close merge delete

Comments

Did you ever find a solution? I've run into this as well. the files are definitely there and permissions arent blocking them

czykz gravatar imageczykz ( 2017-04-24 12:02:31 -0500 )edit

@czykz Did you finally find out why this happens? Same problem. followed every steps and this comes up for no reason.

frabo gravatar imagefrabo ( 2018-04-19 12:27:24 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-17 17:17:46 -0500

GadgetWiz gravatar image

In my case, this was caused by me forgetting to copy the /opt/openstack-ansible/etc/openstack_deploy directory to /etc/openstack_deploy. Make sure your config files are in the /etc/openstack-ansible and /etc/openstack-ansible/conf.d directories.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

3 followers

Stats

Asked: 2017-01-23 02:33:19 -0500

Seen: 523 times

Last updated: Jan 26 '17