juju status reporting API server connection error while bringing up new state servers

Bug #1321212 reported by Matthew Williams
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

As you can see from this paste:

$ ./juju bootstrap
$ ./juju ensure-availability
$ ./juju status
WARNING discarding API open error: read tcp 127.0.0.1:37017: i/o timeout
ERROR Unable to connect to environment "amazon".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
read tcp 127.0.0.1:37017: i/o timeout

$ ./juju status
WARNING discarding API open error: read tcp 127.0.0.1:37017: i/o timeout
ERROR Unable to connect to environment "amazon".
Please check your credentials or use 'juju bootstrap' to create a new environment.

Error details:
read tcp 127.0.0.1:37017: i/o timeout

$ ./juju status
environment: amazon
machines:
  "0":
    agent-state: started
    agent-version: 1.19.3.1
    dns-name: ec2-54-224-242-90.compute-1.amazonaws.com
    instance-id: i-76c37325
    instance-state: running
    series: precise
    hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
    state-server-member-status: has-vote
  "1":
    agent-state: pending
    dns-name: ec2-54-83-244-194.compute-1.amazonaws.com
    instance-id: i-83ca7ad0
    instance-state: running
    series: precise
    hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
    state-server-member-status: adding-vote
  "2":
    agent-state: pending
    dns-name: ec2-107-20-131-219.compute-1.amazonaws.com
    instance-id: i-28cf7f7b
    instance-state: running
    series: precise
    hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M
    state-server-member-status: adding-vote
services: {}

I run bootstrap, then ensure-availability.

After this step we "appear" to fail to connect to a local state server (despite being configured to use aws)

After sometime the extra state servers come up and we're back in our environment

Is this expected?

Tags: ha ui usability
Curtis Hovey (sinzui)
tags: added: ha
Curtis Hovey (sinzui)
tags: added: ui usability
Changed in juju-core:
status: New → Triaged
milestone: none → next-stable
importance: Undecided → High
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

the error here is actually from the api server which can't connect to its local mongo, but its reported back to the client

Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Medium
milestone: next-stable → none
description: updated
summary: - Odd behaviour when using ensure-availability
+ juju status reporting API server connection error while bringing up new
+ state servers
Revision history for this message
kevin (kevin-x-wang) wrote :

any update for this probelm? Thank you

Revision history for this message
Alexis Bruemmer (alexis-bruemmer) wrote :

Please re-open if this bug is still valid on 2.0

Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.