"juju model-defaults juju-no-proxy=..." fails with network blocks

Bug #1876734 reported by Alvaro Uria
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

- Steps to reproduce:
1) Bootstrap a lxd controller
2) Run:
$ juju model-defaults juju-no-proxy="localhost,127.0.0.1,127.0.0.53,10.0.8.0/24"
ERROR invalid cloud "juju-no-proxy=localhost,127.0.0.1,127.0.0.53,10.0.8.0"

2.a) If a network block is _not_ provided, command succeeds:
$ juju model-defaults juju-no-proxy="localhost,127.0.0.1,127.0.0.53,10.0.8.1"

3) Run the same against a model (this succeeds)
juju model-config -m default juju-no-proxy="localhost,127.0.0.1,127.0.0.53,10.0.8.0/24"

I was expecting the command on #2 to succeed.

Revision history for this message
Ian Booth (wallyworld) wrote :

You do need to specify a cloud name with model-defaults, but only if the controller host more than one cloud. It seems the CLI is confused and is always expecting a cloud name.

For now you can just do

$ juju model-defaults <mycloud> juju-no-proxy="localhost,127.0.0.1,127.0.0.53,10.0.8.1"

where <mycloud> is the cloud used to bootstrap the controller, eg "localhost"

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.8-rc1
assignee: nobody → Ian Booth (wallyworld)
importance: Undecided → High
status: New → In Progress
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1876734] Re: "juju model-defaults juju-no-proxy=..." fails with network blocks

I think the / in the string causes it to parse the values as a cloud/region

On Tue, May 5, 2020, 09:36 Ian Booth <email address hidden> wrote:

> ** Changed in: juju
> Milestone: None => 2.8-rc1
>
> ** Changed in: juju
> Assignee: (unassigned) => Ian Booth (wallyworld)
>
> ** Changed in: juju
> Importance: Undecided => High
>
> ** Changed in: juju
> Status: New => In Progress
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1876734
>
> Title:
> "juju model-defaults juju-no-proxy=..." fails with network blocks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1876734/+subscriptions
>

Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
Alvaro Uria (aluria) wrote :

Thank you for the quick fix. The funny part that I did not mention is that the following command did succeed (in Juju 2.7.6):
juju model-defaults juju-http-proxy=http://proxyhost:3128

It may well be that "//" != "/", and as John said, "/" is (was) mistaken.

Harry Pidcock (hpidcock)
Changed in juju:
status: Fix Committed → Fix Released
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.