With a bootstrap instance with 'use-floating-ip: true' setting in environments.yaml for an env in cts cloud, deploying additional services and running 'juju status' is failing with 'ERROR juju apiclient.go:119 state/api: websocket.Dial wss://192.168.1.2:17070/: dial tcp 192.168.1.2:17070: connection timed out'
The following is the bootstrap node.
$ nova list
+--------------------------------------+-----------------------+--------+------------+-------------+------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-----------------------+--------+------------+-------------+------------------------------------+
| 2010cf3b-dc41-49b9-b0b1-8c0d77a84fe0 | juju-mthood-machine-0 | ACTIVE | None | Running | int_net=192.168.1.2, 10.230.21.113 |
+--------------------------------------+-----------------------+--------+------------+-------------+------------------------------------+
$ juju status --debug
2014-04-16 20:14:06 INFO juju.cmd supercommand.go:297 running juju-1.18.1-trusty-amd64 [gc]
2014-04-16 20:14:06 DEBUG juju api.go:179 no cached API connection settings found
2014-04-16 20:14:06 INFO juju.provider.openstack provider.go:202 opening environment "mthood"
2014-04-16 20:14:07 DEBUG juju state.go:75 waiting for DNS name(s) of state server instances [2010cf3b-dc41-49b9-b0b1-8c0d77a84fe0]
2014-04-16 20:14:07 INFO juju apiclient.go:114 state/api: dialing "wss://192.168.1.2:17070/"
2014-04-16 20:16:14 ERROR juju apiclient.go:119 state/api: websocket.Dial wss://192.168.1.2:17070/: dial tcp 192.168.1.2:17070: connection timed out
2014-04-16 20:16:14 INFO juju apiclient.go:114 state/api: dialing "wss://192.168.1.2:17070/"
This was seen with juju versions 1.18.1-0ubuntu1 and 1.18.1-0ubuntu1~14.04.1~juju1
In 1.19.1 we should already be capable of trying more addresses when
connecting. However, the problem that you're seeing is because both
addresses are "private" (both 192.* and 10.* are considered private
networks). If it actually got a publicly routable address (something not in
10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16) then I believe we would
actually prefer that address.
However, I do believe current trunk is capable of listing all addresses and
trying all of them. Though it might still have an issue with "first
connect", so this may not be completely fixed.
On Thu, Apr 17, 2014 at 1:32 AM, Parameswaran Sivatharman <
<email address hidden>> wrote:
> Public bug reported: 168.1.2: 17070/: dial tcp ------- ------- ------- ------- ----+-- ------- ------- ------- +------ --+---- ------- -+----- ------- -+----- ------- ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- +------ --+---- ------- -+----- ------- -+----- ------- ------- ------- ------- ---+ dc41-49b9- b0b1-8c0d77a84f e0 | juju-mthood- machine- 0 | ACTIVE | 192.168. 1.2, 10.230.21.113 | ------- ------- ------- ------- ----+-- ------- ------- ------- +------ --+---- ------- -+----- ------- -+----- ------- ------- ------- ------- ---+ 18.1-trusty- amd64 [gc] openstack provider.go:202 opening dc41-49b9- b0b1-8c0d77a84f e0] 168.1.2: 17070/: dial tcp 192.168.1.2:17070: connection timed out 0ubuntu1~ 14.04.1~ juju1 /bugs.launchpad .net/bugs/ 1308767/ +attachment/ 4085762/ +files/ machine- 0.log /bugs.launchpad .net/bugs/ 1308767 /bugs.launchpad .net/juju- cor...
>
> With a bootstrap instance with 'use-floating-ip: true' setting in
> environments.yaml for an env in cts cloud, deploying additional services
> and running 'juju status' is failing with 'ERROR juju apiclient.go:119
> state/api: websocket.Dial wss://192.
> 192.168.1.2:17070: connection timed out'
>
> The following is the bootstrap node.
> $ nova list
>
> +------
> | ID | Name | Status |
> Task State | Power State | Networks |
>
> +------
> | 2010cf3b-
> None | Running | int_net=
>
> +------
>
>
> $ juju status --debug
> 2014-04-16 20:14:06 INFO juju.cmd supercommand.go:297 running
> juju-1.
> 2014-04-16 20:14:06 DEBUG juju api.go:179 no cached API connection
> settings found
> 2014-04-16 20:14:06 INFO juju.provider.
> environment "mthood"
> 2014-04-16 20:14:07 DEBUG juju state.go:75 waiting for DNS name(s) of
> state server instances [2010cf3b-
> 2014-04-16 20:14:07 INFO juju apiclient.go:114 state/api: dialing "wss://
> 192.168.1.2:17070/"
> 2014-04-16 20:16:14 ERROR juju apiclient.go:119 state/api: websocket.Dial
> wss://192.
> 2014-04-16 20:16:14 INFO juju apiclient.go:114 state/api: dialing "wss://
> 192.168.1.2:17070/"
>
>
> This was seen with juju versions 1.18.1-0ubuntu1 and
> 1.18.1-
>
> ** Affects: juju-core
> Importance: Undecided
> Status: New
>
> ** Attachment added: "machine-0 log from the bootstrap node"
>
> https:/
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> https:/
>
> Title:
> juju client is not using the floating ip to connect to the state
> server
>
> To manage notifications about this bug go to:
> https:/