second model migration fails with local charm and a resource

Bug #1692646 reported by Jay R. Wren
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Tim Penhey

Bug Description

The second migration of a model fails if the model uses a local charm with a resource.

To Reproduce:

1. Add a model
   juju add-model jctestmig3 aws/us-east-2

2. Deploy a local charm which has resources, and specify the resource.
   juju deploy ./ubuntu-0 u4 --resource roottar=blah.tar.bz2

3. Migrate the model

4. Migrate the model again

See the log with errors, attached.

2017-05-19 14:37:40 ERROR juju.worker.migrationmaster.96970e worker.go:279 model data transfer failed, model export failed: charmstore revision: unsupported resource type ""

UPDATE: fixed step #2 instructions.

Revision history for this message
Jay R. Wren (evarlast) wrote :
Revision history for this message
Jay R. Wren (evarlast) wrote :

Here is serialized model json: http://paste.ubuntu.com/24605298/

Notice line 631, a resource named "charmstore-revision:" is added for some reason and it has an empty type.

Speculation is that this is added on the first model migration and that once added it prevents other migration.

Tim Penhey (thumper)
tags: added: model-migration
Revision history for this message
Jay R. Wren (evarlast) wrote :

FYI: I had been using cs:~evarlast/ubuntu-0 charm copied local.

description: updated
Tim Penhey (thumper)
Changed in juju:
status: New → Triaged
importance: Undecided → High
Tim Penhey (thumper)
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Tim Penhey (thumper)
milestone: none → 2.2-rc1
Revision history for this message
Tim Penhey (thumper) wrote :
Tim Penhey (thumper)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → 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.