network-get can't get default "" binding

Bug #1896821 reported by Zachary Zehring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned

Bug Description

If an application has no relations, the only way for network-get to return useful networking information about the application is specifying an extra-binding in the metadata.yaml. There currently doesn't appear to be a way for network-get to return the default "" endpoint-binding (the binding "" comes from a `juju show-application $app` command)

So is there a way for network-get to return the binding for ""? If not, I think it would be a valid feature request to add the ability to do so, as the default binding for an app could be useful.

Revision history for this message
Pen Gale (pengale) wrote :

Thank you for filing the bug!

Can you describe a specific case where a charm wants to get the default endpoint binding? We want to understand why this feature is being requested, so that we can determine how best to expose the information to the charm, and model it in Juju in general.

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1896821] [NEW] network-get can't get default "" binding

What is the service that you want to be running such that it would have an
associated binding, but not actually declare the service as either
something to be related to, or something in 'extra-binding'.
Charms don't have the "default" binding exposed to them, because they are
meant to think in terms of objects that might be bound.

On Wed, Sep 23, 2020 at 3:15 PM Zachary Zehring <email address hidden>
wrote:

> Public bug reported:
>
> If an application has no relations, the only way for network-get to
> return useful networking information about the application is specifying
> an extra-binding in the metadata.yaml. There currently doesn't appear to
> be a way for network-get to return the default "" endpoint-binding (the
> binding "" comes from a `juju show-application $app` command)
>
> So is there a way for network-get to return the binding for ""? If not,
> I think it would be a valid feature request to add the ability to do so,
> as the default binding for an app could be useful.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1896821
>
> Title:
> network-get can't get default "" binding
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1896821/+subscriptions
>

Revision history for this message
Cory Johns (johnsca) wrote :

One use-case I could think of is a dashboard deployed in an environment with both public and private NICs where the relations use the private network via spaces but the charm needs to know what bind-address to use for the publicly exposed dashboard URL.

FWIW, except for a short period in 2.8.7 due to https://bugs.launchpad.net/juju/+bug/1906174 you can actually use `network-get juju-info` to do this. It can even get that network info for a charm which has no relations or extra-bindings defined at all.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.