# os\_network cloud module cannot find my clouds.yml file

**URL:** <https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 22, 2015, 9:00pm UTC](https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065 "2015-12-22T21:00:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_Melton](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@R\_Melton](https://forum.ansible.com/u/R_Melton)\
**Post date:** [December 22, 2015, 9:00pm UTC](https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065/1 "2015-12-22T21:00:35Z")

</div>

i’m using ansible 2.1.0 (devel 0c013f592a) last updated 2015/12/21 14:26:10 (GMT -700)

installed from source in ubuntu desktop.

here’s my playbook task:

- name: create openstack network  
become: no  
os\_network:  
cloud: testing  
name: mynetwork  
register: mynetwork\_results

here’s my clouds.yml file (in same directory as playbook):

clouds:  
testing:  
auth:  
auth\_url: [http://3.0.0.10:35357/v3](http://3.0.0.10:35357/v3)  
project\_domain\_id: default  
user\_domain\_id: default  
username: admin  
password: password  
project\_name: admin

here’s the error I get when i run the task:\

> fatal: [3.0.0.10]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Traceback (most recent call last):\r\n File "/home/stack/.ansible/tmp/ansible-tmp-1450816900.25-86035633817923/os\_network", line 2199, in \r\n main()\r\n File "/home/stack/.ansible/tmp/ansible-tmp-1450816900.25-86035633817923/os\_network", line 144, in main\r\n cloud = shade.openstack\_cloud(\*\*module.params)\r\n File "/usr/local/lib/python2.7/dist-packages/shade/ **init**.py", line 68, in openstack\_cloud\r\n cloud\_config = config.get\_one\_cloud(\*\*kwargs)\r\n File "/usr/local/lib/python2.7/dist-packages/os\_client\_config/config.py", line 621, in get\_one\_cloud\r\n config = self.\_get\_base\_cloud\_config(cloud)\r\n File "/usr/local/lib/python2.7/dist-packages/os\_client\_config/config.py", line 313, in \_get\_base\_cloud\_config\r\n name=name))\r\nos\_client\_config.exceptions.OpenStackConfigException: **Named cloud testing requested that was not found**.\r\n”, “parsed”: false}

any idea why it cannot find my cloud.yml file or my named cloud inside of that file?

---

<div class="post-metadata">

**Author:** ![user8](https://avatars.discourse-cdn.com/v4/letter/u/f1d935/32.png) [@user8](https://forum.ansible.com/u/user8)\
**Post date:** [May 21, 2016, 1:58am UTC](https://forum.ansible.com/t/os-network-cloud-module-cannot-find-my-clouds-yml-file/20065/2 "2016-05-21T01:58:44Z")

</div>

Hi! It’s may be too late, I would like to share my experience.

Where are you placed clouds.yml file ?  
You should place clouds.yml file to specific area of remote host server( where openstack is moved ).  
[http://blog.oddbit.com/2015/10/26/ansible-20-new-openstack-modules/](http://blog.oddbit.com/2015/10/26/ansible-20-new-openstack-modules/)

In my case,  
Firstly I placed clouds.yml file to local, and get same error as you.  
Next I place file to under /etc/openstack/ of remote server , It works 🙂

2015年12月23日水曜日 6時53分18秒 UTC+9 R Melton:
