[openstack-dev] [ansible] One or more undefined variables: 'dict object' has no attribute 'bridge'

Wade Holler wade.holler at gmail.com
Sat Dec 12 17:09:24 UTC 2015


Hi Mark,

I haven't reviewed your configs yet but if "bridge" is a valid ansible
inventory attribute , then this error is usually caused by trying to
reference a host that ansible didn't check in on yet / gather facts on. At
least this is what is has been in my brief experience.

For example if I wanted to reference all hosts in a "webservers" ansible
group to build a haproxy config but that playbook didn't apply to the
"webservers" group them their facts have not been collected.

Just a thought.

Cheers
Wade


On Sat, Dec 12, 2015 at 9:34 AM Mark Korondi <korondi.mark at gmail.com> wrote:

> Hi all,
>
> Trying to set up openstack-ansible, but stuck on this point:
>
> > TASK: [set local_ip fact (is_metal)]
> *****************************************
> > ...
> > fatal: [os-compute-1] => One or more undefined variables: 'dict object'
> has no
> > attribute 'bridge'
> > ...
> > One or more undefined variables: 'dict object' has no attribute 'bridge'
>
> These are my configs:
> - http://paste.openstack.org/show/481739/
>   (openstack_user_config.yml)
> - http://paste.openstack.org/show/481740/
>   (/etc/network/interfaces on compute host called `os-compute-1`)
>
> I set up the eth12 veth pair interface also on the compute host as you can
> see.
> `ifup-ifdown` works without any problems reported.
>
>
> Why is it reporting an undefined bridge variable? Any ideas on my config
> is well
> appreciated.
>
> Mark
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151212/2d0ebc82/attachment.html>


More information about the OpenStack-dev mailing list