Comment 7 for bug 1603229

Revision history for this message
David Ames (thedac) wrote :

Both charm helpers and charms.openstack base module are vulnerable to this bug.

When using Juju 2.0 network-get is available. However, bindings must either be defined as extra bindings in metadata.yaml or be defined by using --bind on relation-add.

The code is assuming that the three typical extra bindings public, admin, and internal will be available. This not a safe assumption.

This needs to be fixed in
charms_openstack/ip.y
charmhelpers/contrib/openstack/ip.py

And charms which use these but do not have public, admin or internal extra bindings defined need to be updated.