Local provider: fail to download charm from state server when using an isolated network

Bug #1484419 reported by Björn Tillenius
This bug report is a duplicate of:  Bug #1469193: juju selects wrong address for API. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

This is with Juju 1.24.4.

I'm trying to use the local provider using an isolated network for the LXCs.

I'm using the local provider in an LXC, which has one NIC for internet access and one isolated network for the LXCs, which can access Internet through a proxy.

When trying to deploy a service, it errors our with the following error message:

unit-ubuntu-0[931]: 2015-08-13 08:44:46 ERROR juju.worker runner.go:223 exited "uniter": ModeInstalling cs:trusty/ubuntu-4: preparing operation "install cs:trusty/ubuntu-4": failed to download charm "cs:trusty/ubuntu-4" from ["https://10.0.3.151:17070/environment/9cbee80f-9d57-4324-80ac-85ae95c554ad/charms?file=%2A&url=cs%3Atrusty%2Fubuntu-4"]: cannot download "https://10.0.3.151:17070/environment/9cbee80f-9d57-4324-80ac-85ae95c554ad/charms?file=%2A&url=cs%3Atrusty%2Fubuntu-4": Get https://10.0.3.151:17070/environment/9cbee80f-9d57-4324-80ac-85ae95c554ad/charms?file=%2A&url=cs%3Atrusty%2Fubuntu-4: dial tcp 10.0.3.151:17070: connection refused

The unit-ubuntu-0 unit doesn't have access to the 10.0.3.0/24 network, it only has access to 10.5.0.0/16. Looking at the .jenv file for the environment, it lists the following state servers:

  state-servers:
    - localhost:17070
    - 10.0.3.151:17070
    - 10.5.0.10:17070

I.e. the 10.5.0.10 is the one to use, but Juju doesn't try that one.

Revision history for this message
Björn Tillenius (bjornt) wrote :
Revision history for this message
Björn Tillenius (bjornt) wrote :
Revision history for this message
Björn Tillenius (bjornt) wrote :
Revision history for this message
Björn Tillenius (bjornt) wrote :
Revision history for this message
Björn Tillenius (bjornt) wrote :
tags: added: landscape
Curtis Hovey (sinzui)
tags: added: deploy ha
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.25.0
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.25-alpha1 → 1.25-beta1
Changed in juju-core:
milestone: 1.25-beta1 → 1.25-beta2
Curtis Hovey (sinzui)
tags: added: network
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.