instance-state and state in status

Gustavo Niemeyer gustavo.niemeyer at canonical.com
Wed Mar 7 02:44:10 UTC 2012


I was just having a look at the output of juju status, and the
relation between state and instance-state is feeling a bit awkward:

machines:
  0:
    dns-name: ec2-174-129-60-194.compute-1.amazonaws.com
    instance-id: i-d7e63cb3
    instance-state: running
    state: not-started

This is on a working environment. We have machine "0" in a running
instance-state, yet in a not-started state, which is.. hmm.. weird.

William, Kapil, do you recall what's the background for the new field?
 It sounds like the flag is about the machine agent, which still makes
the above output a bit confusing unless you understand the depth of
how juju works. Maybe the field should be named "machine-agent"
instead of "state"?

This was added on the following revision, FWIW:

------------------------------------------------------------
revno: 415 [merge]
revision-id: fwereade at gmail.com-20111116143336-u2t0ev3zbhrh7rew
parent: kapil.thangavelu at canonical.com-20111116005738-s1k05selnjig7ys3
parent: fwereade at gmail.com-20111116141626-axdrv34c8xwpx1fj
committer: William Reade <fwereade at gmail.com>
branch nick: juju
timestamp: Wed 2011-11-16 15:33:36 +0100
message:
  merge visible-instance-state [r=hazmat,jimbaker][f=871743]

  juju status output now includes 'instance-state' and 'state' fields
for every machine

-- 
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog

-- I'm not absolutely sure of anything.



More information about the Juju mailing list