[local] juju-create hard-coded to use 192.168.122.1

Bug #955540 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
High
Clint Byrum
juju (Ubuntu)
Fix Released
High
Unassigned

Bug Description

On up to date precise, if I am running libvirt with the non-default network of 192.168.123.1, juju-create does not honor this. It is hard-coded to use:

cat <<EOF >> /etc/apt/apt.conf.d/02juju-apt-proxy
Acquire::http { Proxy "http://192.168.122.1:3142"; };
EOF
...
    cat <<EOF > /etc/resolvconf/run/resolv.conf
nameserver 192.168.122.1
EOF

    cat <<EOF > /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.122.1
EOF
...

It would be best if this could be autodetected. An alternative would be to make this configurable by sourcing a file since juju-create is a shell script.

As a workaround I can edit /usr/share/pyshared/juju/lib/lxc/data/juju-create to use the address I need. This obviously breaks on every upgrade (since this is a custom script, maybe the solution is to move juju-create to /etc/juju and make it a conffile). Seems for this to work I need to 'sudo juju destroy-environment ; juju bootstrap' and then 'juju deploy' something.

Tags: local
description: updated
Changed in juju (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
description: updated
Changed in juju (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
Changed in juju:
importance: Undecided → High
summary: - juju-create hard-coded to use 192.168.122.1
+ [local] juju-create hard-coded to use 192.168.122.1
tags: added: local
Changed in juju:
status: New → Confirmed
Changed in juju:
milestone: none → galapagos
Changed in juju:
milestone: galapagos → honolulu
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Part of moving to using the cloud images for LXC will be to ditch the libvirt tie-in and use lxc's networking instead.

Changed in juju:
milestone: 0.6 → 0.7
status: Confirmed → In Progress
assignee: nobody → Clint Byrum (clint-fewbar)
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was fixed in the local provider refactor

Changed in juju:
milestone: 0.7 → none
status: In Progress → Fix Released
Changed in juju (Ubuntu):
status: Triaged → 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.