model-migration: Mongo db is not in an expected state

Bug #1610254 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Menno Finlay-Smits
juju-ci-tools
Fix Released
High
Unassigned

Bug Description

As seen at
    http://reports.vapour.ws/releases/issue/57a49628749a560a7d0ca4f4

After the migration, Mongo db is not in an expected state. This is seen intermittently.

Changed in juju-core:
milestone: 2.0-beta15 → 2.0-beta16
Changed in juju-core:
assignee: nobody → Menno Smits (menno.smits)
Changed in juju-core:
status: Triaged → In Progress
Changed in juju-ci-tools:
assignee: nobody → Christopher Lee (veebers)
Changed in juju-ci-tools:
status: New → In Progress
importance: Undecided → High
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

From looking at the test's code, it's possible that this is happening because the test isn't waiting for the migration to be completely done before attempting to run "juju run" on the deployed mongodb unit. veebers is taking a look.

Revision history for this message
Christopher Lee (veebers) wrote :

The test is not sufficiently waiting for the migration to be complete (just that the model appears).
I'll fix this up.

From Menno:
"the test should wait for the model to be complete and the agents to have returned to their stable state (wait for the "agent is lost" to go away)".

no longer affects: juju-core
Changed in juju-core:
status: New → Triaged
assignee: nobody → Menno Smits (menno.smits)
importance: Undecided → High
milestone: none → 2.0-beta16
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta16 → none
milestone: none → 2.0-beta16
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

A change that will help make thing more straightforward for the CI tests (and end users) is here:
https://github.com/juju/juju/pull/6067

A model that is being imported as part of migrations won't be visible to API requests using user (non-agent) credentials until the import is complete and it has been activated. This means it won't be possible to see a partially imported model in "juju status", nor interact with the importing model in any way.

Changed in juju:
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in juju-ci-tools:
assignee: Christopher Lee (veebers) → Curtis Hovey (sinzui)
Curtis Hovey (sinzui)
Changed in juju-ci-tools:
assignee: Curtis Hovey (sinzui) → nobody
status: In Progress → 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.