# Ansible  gave "Error fetching server list on envvars:RegionOne" error

**URL:** <https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099>\
**Category:** Ansible Project\
**Created:** [March 29, 2017, 8:55pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099 "2017-03-29T20:55:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balu\_Kompalli](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@Balu\_Kompalli](https://forum.ansible.com/u/Balu_Kompalli)\
**Post date:** [March 29, 2017, 8:55pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/1 "2017-03-29T20:55:50Z")

</div>

[![](https://lh3.googleusercontent.com/-5i1tVF_kreM/WNwfHT3ZUYI/AAAAAAAAEMw/U_2QATdywN4iKV7VND9mWAoQtlbGGeUFgCLcB/s320/Screenshot%2B%25281098%2529.png)](https://lh3.googleusercontent.com/-5i1tVF_kreM/WNwfHT3ZUYI/AAAAAAAAEMw/U_2QATdywN4iKV7VND9mWAoQtlbGGeUFgCLcB/s1600/Screenshot%2B%25281098%2529.png)

Hello team,

warm wishes to all the Ansible team.

I got the below error while try to create the provisioning ansible in openstack.

I searched for so many websites but never found any solution. Please help me to come out of the error and its my high priority task on Ansible.

Thank you.

and this is my playbook:

---

<div class="post-metadata">

**Author:** ![Amarjeet\_Raja](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@Amarjeet\_Raja](https://forum.ansible.com/u/Amarjeet_Raja)\
**Post date:** [March 30, 2017, 3:07pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/2 "2017-03-30T15:07:11Z")

</div>

Hi,

The issue is not related to your playbook. The error is from openstack side looks like you are missing domain in environment varibales. Try adding domain in your your openrc file and run the playbook in verbose mode.

Also it looks like your system is trying to connect to region two and in Playbook is configured with Region one. As you can see in error message the error is for region2. Can you cross check the env variables?

Regards,  
Amarjeet

---

<div class="post-metadata">

**Author:** ![balubhai555](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Post date:** [March 30, 2017, 8:05pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/3 "2017-03-30T20:05:55Z")

</div>

Hello Raja,

**Thanks for your reply.**

1.) Here Domain means is that the Openstack OS\_AUTH\_URL=[https://identityHost](https://identityHost):portNumber/v2.0 Right?

2.) Yes, I cross check about error and uploaded image. For both RegionOne and RegionTwo, I got the same error.

Please reply ASAP.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![balubhai555](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Post date:** [March 30, 2017, 8:19pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/4 "2017-03-30T20:19:49Z")

</div>

I gave

export OS\_USER\_DOMAIN\_NAME=default

in openrc.sh and Is this one you mentioned above?

---

<div class="post-metadata">

**Author:** ![Amarjeet\_Raja](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@Amarjeet\_Raja](https://forum.ansible.com/u/Amarjeet_Raja)\
**Post date:** [March 31, 2017, 11:01am UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/5 "2017-03-31T11:01:02Z")

</div>

Hi,

Looks like you misunderstood my previous mail, there is no need to edit your openrc file. The OS\_server module can load the login details from openrc file. Hard coding openstack logins in playbook is not a recommended practice. You can use the sample snippet given below to create an instance in openstack using ansible and assign floating IP address.

---

<div class="post-metadata">

**Author:** ![balubhai555](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Post date:** [March 31, 2017, 5:51pm UTC](https://forum.ansible.com/t/ansible-gave-error-fetching-server-list-on-envvars-regionone-error/24099/6 "2017-03-31T17:51:18Z")

</div>

[![](https://lh3.googleusercontent.com/-TxHiqND0N5s/WN6VvqIzAjI/AAAAAAAAAF8/n-_XSxN1KZ8ZUdOvU-GoExcpuo0jqE_mACLcB/s320/Screenshot%2B%25281101%2529.png)](https://lh3.googleusercontent.com/-TxHiqND0N5s/WN6VvqIzAjI/AAAAAAAAAF8/n-_XSxN1KZ8ZUdOvU-GoExcpuo0jqE_mACLcB/s1600/Screenshot%2B%25281101%2529.png)

> Hello Amarjeet Raja,

I worked out on your above example with again and again by changing the openstack integration with ansible.  
But i got the below error.

“Problem with auth parameters”

my original code :

**#create a new instance in HP Cloud AE1 region availability zone az2 and**  
**# automatically assigns a floating IP**  
**- name: launch a compute instance**  
**hosts: localhost**  
**sudo: yes**  
**tasks:**  
**# - name: echo PATH into bashrc**  
**# action: lineinfile dest=~/.bash\_profile line=‘export user\_domain\_name=default’ insertafter=‘EOF’ regexp=‘export user\_domain\_name.\*’ state=present**

**- name: launch an instance**  
**os\_server:**  
**state: present**  
**auth:**  
**auth\_url: [http://192.168.8.25:5000/v3/](http://192.168.8.25:5000/v3/)**  
**username: admin**  
**password: MiracleIT**  
**# password: admin**  
**project\_name: admin**  
**register: catalog**  
**auth\_type: password**  
**name: vm1**  
**region\_name: RegionOne**  
**availability\_zone: nova**  
**image: 913ef163-e2aa-4161-85d4-16a9924abfa1**  
**key\_name: ubuntutestkeypair1**  
**timeout: 200**  
**flavor: m1.medium**  
**security\_groups: default**  
**auto\_ip: yes**  
**- debug: var=catalog**

I attached the error. will you please suggest me any guide to do ansible integration with Openstack,

**Thank you.**
