setting a floating address on the state server prevents new agent connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
I have a juju env where adding a subordinate charm relation doesn't work. It's stuck at:
Investigating the agent's log shows:
2013-11-06 18:25:39 INFO juju runner.go:253 worker: start "api"
2013-11-06 18:25:39 INFO juju apiclient.go:111 state/api: dialing "wss://
2013-11-06 18:26:42 ERROR juju apiclient.go:116 state/api: websocket.Dial wss://162.
2013-11-06 18:26:42 ERROR juju runner.go:211 worker: exited "api": websocket.Dial wss://162.
2013-11-06 18:26:42 INFO juju runner.go:245 worker: restarting "api" in 3s
The problem here is the agent is trying to use the stateserver's floating IP. If it used the fixed IP, it could connect just fine. Another agent (remember this is a subordinate charm) is happily using the fixed IP.
2013-11-01 18:52:26 INFO juju runner.go:253 worker: start "api"
2013-11-01 18:52:26 INFO juju apiclient.go:111 state/api: dialing "wss://
2013-11-01 18:52:26 INFO juju apiclient.go:121 state/api: connection established
This agent was started before the floating IP was assigned to the stateserver, so it continues to use it.
Because the agent cannot contact the state server, the service cannot be destroyed, similar to the problems described in bug #1089291 and Bug #1219902.
Full status:
$ juju status
environment: orange2
machines:
"0":
agent-state: started
agent-version: 1.16.2
dns-name: 162.213.34.53
instance-id: 8e882718-
instance-state: ACTIVE
series: precise
hardware: arch=amd64 cpu-cores=1 mem=2048M root-disk=10240M
"1":
agent-state: started
agent-version: 1.16.2
dns-name: 10.55.60.162
instance-id: ab3f0c63-
instance-state: ACTIVE
series: precise
hardware: arch=amd64 cpu-cores=1 mem=8192M root-disk=10240M
services:
apache2:
charm: cs:precise/
exposed: true
relations:
reverseproxy:
- jenkins
units:
apache2/0:
machine: "0"
open-ports:
- 80/tcp
- 443/tcp
jenkins:
charm: cs:precise/
exposed: false
relations:
juju-info:
- jenkins-packages
website:
- apache2
units:
jenkins/0:
machine: "1"
open-ports:
- 8080/tcp
jenkins-packages:
charm: cs:~abentley/
exposed: false
relations:
extension:
- jenkins
subordinate-to:
- jenkins
description: | updated |
Changed in juju-core: | |
importance: | High → Medium |
tags: | added: network |
I wonder if this is fixed or made worse by the changes for bug #1205371
Juju now notices when IP addresses change, though it still should be trying to give a "Private" address for something like a charm.