environs/providers must report instance state, like py-juju

Bug #1167441 reported by Dimiter Naydenov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins

Bug Description

We have "instance-state" in juju status, which should report a provider-specific instance state for a machine (from the provider point of view, not from juju's).
Unfortunately, we don't have support for that currently, so it needs to be done and affects all providers.

Related branches

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

The support for getting instance status from the underlying libraries already exists, both in goamz and goose. So we need to include InstanceStatus() or something in the environs/interface.go and implement it in the providers.

William Reade (fwereade)
Changed in juju-core:
status: Confirmed → Triaged
assignee: Dimiter Naydenov (dimitern) → nobody
Andrew Wilkins (axwalk)
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :

I've made a start on this. I've added a Status method to instance.Instance, and all implementations thereof. The only ones that will return a non-empty string are azure, ec2, openstack, and container/lxc.

I can't see any way of getting a machine status from MAAS. Local is always running, of course, so I'll just leave it as blank (which is omitted by juju status).

Revision history for this message
Andrew Wilkins (axwalk) wrote :

It'll take a bit longer to test than anticipated, as goamz/ec2/ec2test has some needed TODOs.

Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.14.0
status: Fix Committed → Fix Released
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.