There are two things you should try to help us track down the problem, if 
you don't mind.

First of all:

openstack server list

(python-openstackclient also uses occ, so that should let us know that the 
config is working right)

If that works and you see the servers, my _hunch_ is that ansible cannot 
figure out the interface_ip of your server, which means our introspection 
code is making an assumption. So if you can try making a copy of 
openstack.py and editing it - find this:

        if 'interface_ip' not in server:
            continue

and delete it

If openstack.py --list _works_ at that point, I'd really love if you'd be 
kind enough to send me a copy of the output of at least one of the servers 
so I can see what's going on with your addresses list. (there should be 
nothing in the output that would be compromosing, but you migth want to 
scan it - feel free to send the entire output or just one server. OR - if 
you don't want to do that, I can cook up some more code snippets for you to 
try to diagnose further.

thanks!

On Wednesday, March 9, 2016 at 2:27:33 PM UTC-6, Mike Albert wrote:
>
> Hi,
>
> I'm trying to configure OpenStack dynamic inventory with Ansible, but I 
> keep getting the following error:
>
> mikealbert@rmbp lab (master) $ ./openstack.py --list
> Error fetching server list on envvars:Region1:
>
> I've defined the variables below in my .bash_profile and I've confirmed 
> that "nova list" returns results
>
> OS_REGION_NAME
> OS_PASSWORD
> OS_AUTH_URL
> OS_USERNAME
> OS_TENANT_NAME
>
> Not sure if it makes a difference but I'm running Ansible 2.0.1.0.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ed1849c4-a9eb-4986-a300-778c8d51f502%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to