Fix LP:#1696828 by sanitizing meter status code inputs on import. #7479

Merged
merged 1 commit into from Jun 9, 2017

Conversation

Projects
None yet
2 participants
Owner

cmars commented Jun 9, 2017

Cherry-picking #7478 into develop

Description of change

Why is this change needed?

Meter status codes need to be sanitized to a set of enumerated values before setting them in state during a model migration.

QA steps

How do we verify that the change works?

Export a model from a 2.1.3 controller and import into a 2.2-rc1 controller, per LP:#1696828.

Documentation changes

Does it affect current user workflow? CLI? API?

No.

Bug reference

Does this change fix a bug? Please add a link to it.

LP:#1696828

Owner

cmars commented Jun 9, 2017

!!build!!

Owner

cmars commented Jun 9, 2017

I was able to reproduce the issue by attempting the migration from a 2.1.3 controller to 2.2-rc1. With the above fix, the migration succeeded. $$merge$$

Contributor

jujubot commented Jun 9, 2017

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

Contributor

jujubot commented Jun 9, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/11116

Owner

cmars commented Jun 9, 2017

$$merge$$

Contributor

jujubot commented Jun 9, 2017

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

@jujubot jujubot merged commit 1cb9c09 into juju:develop Jun 9, 2017

1 check passed

github-check-merge-juju Ran tests against PR. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment