[ansible-project] getting "Error in getting the server list: list index out of range" in nova_compute module

2014-02-03 Thread YuLing Chen
Hi All, I'm new in Ansible and looking at the OpenStack related modules in ansible. All the modules worked pretty well in my environment except the nova_compute module when I tried to create a VM instance. I was getting the following error: PLAY [all] ***

Re: [ansible-project] getting "Error in getting the server list: list index out of range" in nova_compute module

2014-02-03 Thread Matt Martz
I doubt a log file will give you any additional information. I looked at nova_compute, and that error seems to occur in a specific situation. The code does the following: 1) List all servers, passing a filter parameter to the API where it filters based on the name you provided. 2) If it get's a

Re: [ansible-project] getting "Error in getting the server list: list index out of range" in nova_compute module

2014-02-03 Thread YuLing Chen
Thanks very much Matt! What you described was exactly what the situation was and your suggestion solved my problem! Yes, I did have one vm called 'testvm2' already existed in my environment. I guess this vm was the culprit. Now I used a different name 'smallvm', and the vm creation was successful.