Add a strict-migration feature flag #7176

Merged
merged 2 commits into from Mar 30, 2017

Conversation

Projects
None yet
3 participants
Owner

howbazaar commented Mar 30, 2017

Description of change

This branch adds a strict validation check to migrations it ensure that all status, status history, annotations, and settings are exported.

During this change, it was identified that the unit workload version was not using the status documents already retrieved, and also that the cloud instance status was being migrated from the wrong place. The Status field in the instanceDoc was depricated, but not removed, nor even mentioned that it was deprecated. This branch removes it from the instanceDoc, and updates the migration code to migrate the status and status history for the instance status.

Documentation changes

None.

Owner

howbazaar commented Mar 30, 2017

$$merge$$

Contributor

jujubot commented Mar 30, 2017

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

Contributor

jujubot commented Mar 30, 2017

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

Member

anastasiamac commented Mar 30, 2017

Scary but true...

I suspect that it is actually a failure related to the patch:
FAIL: migration_internal_test.go:316: MigrationSuite.TestInstanceDataFields

migration_internal_test.go:335:
s.AssertExportedFields(c, instanceData{}, fields)
migration_internal_test.go:838:
c.Assert(removed, gc.HasLen, 0)
... obtained set.Strings = set.Strings{"Status":true}
... n int = 0

OOPS: 1845 passed, 1 skipped, 1 FAILED
--- FAIL: TestPackage (679.50s)

Owner

howbazaar commented Mar 30, 2017

$$merge$$

Contributor

jujubot commented Mar 30, 2017

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

Contributor

jujubot commented Mar 30, 2017

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

Owner

howbazaar commented Mar 30, 2017

$$wat?$$

Contributor

jujubot commented Mar 30, 2017

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

@jujubot jujubot merged commit 0ac6cb9 into juju:develop Mar 30, 2017

@howbazaar howbazaar deleted the howbazaar:strict-migration branch Mar 30, 2017

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