model migration fails with local charm and no resource

Bug #1692610 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

To Reproduce:

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

2. Deploy a local charm which has resources, but do not specify the resource.
   juju deploy ./ubuntu-0 u4

3. Migrate the model

See the log with errors, attached.

Revision history for this message
Jay R. Wren (evarlast) wrote :
Revision history for this message
Jay R. Wren (evarlast) wrote :
Download full text (23.6 KiB)

The error in the log of concern is this:

2017-05-22 17:00:10 ERROR juju.worker.migrationmaster.5b2775 worker.go:279 model data transfer failed, model export failed: application revision: invalid fingerprint: invalid fingerprint (too small)

And the fingerprint in invalid because the charm was deployed without a specified resource. Seen here in the log:
2017-05-22 17:00:10 TRACE juju.rpc.jsoncodec codec.go:225 -> {"request-id":216,"response":{"bytes":REDACTED
,"charms":["local:xenial/ubuntu-0"],"tools":[{"version":"2.2-rc1.1-xenial-amd64","uri":"/tools/2.2-rc1.1-xenial-amd64"}],"resources":[{"application":"u","name":"roottar","application-revision":{"revision":0,"type":"file","path":"roottar.tar.bz2","description":"a tarball to be extracted over the filesystems","origin":"upload","fingerprint":"","size":0,"timestamp":"0001-01-01T00:00:00Z"},"charmstore-revision":{"revision":0,"type":"file","path":"roottar.tar.bz2","description":"a tarball to be extracted over the filesystems","origin":"upload","fingerprint":"","size":0,"timestamp":"0001-01-01T00:00:00Z"},"unit-revisions":{}}]}}

You can see the fingerprint and size 0 for the resource in
The base64 decoded bytes from REDACTED above:

version: 2
owner: evarlast@external
config:
  agent-metadata-url: ""
  agent-stream: released
  agent-version: 2.2-rc1.1
  apt-ftp-proxy: ""
  apt-http-proxy: ""
  apt-https-proxy: ""
  apt-mirror: ""
  apt-no-proxy: ""
  authorized-keys: |
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjaVH+6DriztvxbBNQACjl8Bv5vmx9hGm2E7B5cqysuu6qxHm2U1etSgFUsYqep965gzeicp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bI+zuxIwW1g+cGgN/6jUCJnccbvG72rFDbqUUfaTnj0ykJ0+mpbivy3dU/DyNZiUSvZGhNZws01Q+B1KTgnNAdP2SfZcgnJyI1O9ylYCf2EM+QomHszqhNKWUk89RrB0/ot5TKAi77TR1zPr7kLhjWzKGYaQWaQRAIgNvvXrxQH4uDibUdtoX jrwren@delays
  automatically-retry-hooks: true
  default-series: xenial
  development: false
  disable-network-management: false
  enable-os-refresh-update: true
  enable-os-upgrade: true
  firewall-mode: instance
  ftp-proxy: ""
  http-proxy: ""
  https-proxy: ""
  ignore-machine-addresses: false
  image-metadata-url: ""
  image-stream: released
  logforwar...

Tim Penhey (thumper)
Changed in juju:
status: New → Triaged
importance: Undecided → High
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.

Tim Penhey (thumper)
Changed in juju:
milestone: none → 2.2-rc1
assignee: nobody → Tim Penhey (thumper)
status: Triaged → In Progress
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.