juju status uses the proxy defined in https_proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Hi,
Running the following :
$ https_proxy=http://
will make juju try to connect to its controller via the proxy.
I don't see a reason for why juju would use https_proxy. I think it goes against the principle of least surprise.
_If_ for some reason we want to keep this behaviour, please log something related to the proxy in "juju status --debug". All I see is the following :
$ juju status --debug
13:43:36 INFO juju.cmd supercommand.go:56 running juju [2.3.3 gc go1.8]
13:43:36 DEBUG juju.cmd supercommand.go:57 args: []string{"juju", "status", "--debug"}
13:43:36 INFO juju.juju api.go:67 connecting to API addresses: [<controller IP>:17070]
No mention of the proxy there.
Also, if juju needs to timeout after a sane amount of time (10s by default ?). The error logged should be explicit about the proxy.
Thanks
Juju is connecting to an HTTPS endpoint, albeit on a non-standard port. But
it should use a Proxy if you need a proxy to connect to remote machines.
As far as being clearer that we're using a proxy, sure. But I do think we
should be using it if it is set.
On Thu, Feb 15, 2018 at 5:45 PM, Junien Fridrick <<email address hidden>
> wrote:
> Public bug reported: foo.bar: 3128/ juju status /bugs.launchpad .net/bugs/ 1749710 /bugs.launchpad .net/juju/ +bug/1749710/ +subscriptions
>
> Hi,
>
> Running the following :
> $ https_proxy=http://
>
> will make juju try to connect to its controller via the proxy.
>
> I don't see a reason for why juju would use https_proxy. I think it goes
> against the principle of least surprise.
>
> _If_ for some reason we want to keep this behaviour, please log
> something related to the proxy in "juju status --debug". All I see is
> the following :
>
> $ juju status --debug
> 13:43:36 INFO juju.cmd supercommand.go:56 running juju [2.3.3 gc go1.8]
> 13:43:36 DEBUG juju.cmd supercommand.go:57 args: []string{"juju",
> "status", "--debug"}
> 13:43:36 INFO juju.juju api.go:67 connecting to API addresses:
> [<controller IP>:17070]
>
> No mention of the proxy there.
>
> Also, if juju needs to timeout after a sane amount of time (10s by
> default ?). The error logged should be explicit about the proxy.
>
> Thanks
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https:/
>
> Title:
> juju status uses the proxy defined in https_proxy
>
> To manage notifications about this bug go to:
> https:/
>