apt-http-proxy being reset to bridge address

Bug #1437296 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Anastasia
1.22
Fix Released
High
Anastasia
1.23
Fix Released
High
Anastasia

Bug Description

Despite explicitly setting apt-http-proxy to another machine on my local network, bootstrap is pulling another value from somewhere or is choosing to rewrite it to the bridge address.

stub@aargh:~/.juju$ cat ~/.juju/environments.yaml
default: local

environments:
    # https://juju.ubuntu.com/docs/config-local.html
    local:
        type: local
        # agent-stream: devel

        apt-mirror: http://th.archive.ubuntu.com/ubuntu
        apt-http-proxy: http://192.168.1.201:8000/

        root-dir: ~/.local/juju
        default-series: trusty
        enable-os-refresh-update: false
        enable-os-upgrade: false
stub@aargh:~/.juju$ juju bootstrap
Bootstrapping environment "local"
Starting new instance for initial state server
Building tools to upload (1.22.0.1-vivid-amd64)
Installing Juju agent on bootstrap instance
Logging to /home/stub/.local/juju/cloud-init-output.log on remote host
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-stub-local)
Bootstrap complete
stub@aargh:~/.juju$ juju get-env apt-http-proxy
http://10.0.3.1:8000/

Revision history for this message
Stuart Bishop (stub) wrote :

2015-03-27 12:30:24 INFO juju.provider.local environprovider.go:46 opening environment "local"
2015-03-27 12:30:24 INFO juju.provider.local environprovider.go:112
Attribute "apt-http-proxy" is set to (http://10.0.3.1:8000/)

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

This seems like fallout from fixing bug 1309207 with https://github.com/juju/juju/pull/1017 - the regexp used to detect localhost and swap it with the bridge IP (swapLocalhostForBridgeIP() in provider/local/environprovider.go) is too broad: the case "|[0:]+1|" exactly matches your case with http://192.168.1.201:8000/

tags: added: local-provider proxy
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 1.22.1
Ian Booth (wallyworld)
Changed in juju-core:
milestone: 1.22.1 → 1.24-alpha1
importance: Medium → High
Changed in juju-core:
status: Triaged → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
assignee: nobody → Anastasia (anastasia-macmood)
Revision history for this message
Aaron Bentley (abentley) wrote :
Curtis Hovey (sinzui)
Changed in juju-core:
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.