Ask Your Question

error while deploying openstack-ansible newton

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

heena gravatar image

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

rbowen gravatar image

I am following the guide

When running the below playbook, I am getting an error

openstack-ansible setup-hosts.yml

ERROR! Attempted to execute "/opt/openstack-ansible/playbooks/inventory/" as inventory script: Inventory script (/opt/openstack-ansible/playbooks/inventory/ 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  user_secrets.yml
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


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 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-05-17 17:17:46 -0600

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

Get to know Ask OpenStack

Resources for moderators

Question Tools



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

Seen: 844 times

Last updated: Jan 26 '17