Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 9, 2017

Conversation

cmars
Copy link
Contributor

@cmars cmars commented Jun 8, 2017

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

@cmars
Copy link
Contributor Author

cmars commented Jun 8, 2017

@mitechie @nskaggs PTAL

@cmars
Copy link
Contributor Author

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$$

@jujubot
Copy link
Collaborator

jujubot commented Jun 9, 2017

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

@jujubot jujubot merged commit e8bc3c0 into juju:2.2 Jun 9, 2017
jujubot added a commit that referenced this pull request Jun 9, 2017
Fix LP:#1696828 by sanitizing meter status code inputs on import.

__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](https://bugs.launchpad.net/juju/+bug/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](https://bugs.launchpad.net/juju/+bug/1696828)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants