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.
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 openstack/ ip.y contrib/ openstack/ ip.py
charms_
charmhelpers/
And charms which use these but do not have public, admin or internal extra bindings defined need to be updated.