state: Model migration for sla and meter status #7128

Merged
merged 2 commits into from Mar 23, 2017

Conversation

Projects
None yet
5 participants
Member

mattyw commented Mar 20, 2017

Also depends on juju/description#5

Description of change

Adds model migration for slas and meter status.

QA steps

juju bootstrap
juju sla essential
# Do model migration
juju sla
essential

Documentation changes

The SLA feature needs documenting. The model migration support is part of that feature, however it should be invisible to the user

Bug reference

n/a

Owner

nskaggs commented Mar 20, 2017

!!build!!

Looks good so far... will need a rebase on #7120 fixes & dependencies updated to include juju/description#5.

state/meterstatus.go
default:
- return errors.Errorf("invalid meter status %q", code)
+ return MeterNotAvailable, errors.Errorf("invalid meter status %q", codeStr)
@cmars

cmars Mar 20, 2017

Owner

I think I mentioned this in #7120... add a test (can be a mock) where this happens in the juju status cmd above.

+ c.Assert(err, jc.ErrorIsNil)
+ newModel, newSt := s.importModel(c)
+
+ c.Assert(newModel.SLALevel(), gc.Equals, "essential")
@howbazaar

howbazaar Mar 20, 2017

Owner

How can this be passing when the juju/description code does not deserialize the SLA?

Member

mattyw commented Mar 22, 2017

$$merge$$

Contributor

jujubot commented Mar 22, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Mar 22, 2017

Build failed: Generating tarball failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10528

Member

mattyw commented Mar 22, 2017

$$merge$$

Contributor

jujubot commented Mar 22, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit fd05ac7 into juju:rising-sun Mar 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment