model migration fails with local charm and no resource
Bug #1692610 reported by
Jay R. Wren
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.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: model-migration |
Changed in juju: | |
milestone: | none → 2.2-rc1 |
assignee: | nobody → Tim Penhey (thumper) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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: id":216, "response" :{"bytes" :REDACTED :["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" :{}}]}}
2017-05-22 17:00:10 TRACE juju.rpc.jsoncodec codec.go:225 -> {"request-
,"charms"
You can see the fingerprint and size 0 for the resource in
The base64 decoded bytes from REDACTED above:
version: 2 metadata- url: "" AAAADAQABAAABAQ DjaVH+6Driztvxb BNQACjl8Bv5vmx9 hGm2E7B5cqysuu6 qxHm2U1etSgFUsY qep965gzeicpg6N PK4FLhi/ gKBjFqiPPQxsSdf Kh60zUr9m8O+ 1GGFUH3ythpJ0wy FfeWmYFALOJ2Sfj akXdprKh7xDiih/ hIzc50djNSOlGIg IOBRuAFalfmrWxB RcNbfXQWfjFsl5n RBTS8LZEus1ypPI UWK9D3G4OE3ydXa 966oSP4psImp97H UzoakHM20duTbOi PRjPEJqif3+ eZcSwqtbXfqR8EB csoS4ws5EC1wPyZ 1IzbsQh09O+ UhE7wtGS/ DF4GHuDJzkjuEwG AgieCX juju-client-key AAACBAOjQ7FZQmI xURemsCUOvOs6og JBUJlrGAWQFku4r GGG2LnQbmhxQYEO YF9fDaGWF7II2Bj +hmrYl6wy/ gRtG5I1R/ m6beMW0pPd/ wJbDcKaYORun7HC xTfHS0B77/ l7PSCcPHpv9Pe19 kJrTk7qsyI+ 188mjrRScqDgNLC Z16UQNAAAAFQCOk 61Ut1sX0qlmnZu8 C2u+cjI4TQAAAIE AgdfVwpJEz+ ljB2Gr3IU8vtJ4H cr9fsiepGqeYgSB 8J8VuazMMXITbPI kqjtw7rd0jm5gDW kyt7wJKZQ6UaBBz 87LUwDuganFGQzu gTW2N2fCti5NnEF 9h1Sfmy0iyX5FZq yDsCDYaNYiYMehj aV2+eKYglCVJWQj bPTetx+ m2rgAAACAfM3nEd us/dZAT85n2w9pn 8+/LKeY+ Ob4w5Fh+ V7QQicx38B5rQZ4 ZOFU5lt+ lI+Z1Mn9B9vBVcu l1opnpo3k38HYuP qVEXTS2H3rdbg5u oivHhsICvbE6N2n fmzUke3s+ OZtIdEGSCzIyTnn Pm5FUCuCpb/ ybt8xcFhaWIwdZi 4= jrwren@utonium AAAADAQABAAABAQ Cxfzm+eDCfRzK9Y dvhtR3x/ eaa+z0uZav2Owp/ QunHCTSQd8BhESJ +ImANVaIA8Ojhu/ pSh1Vu3hKBHkKHm SckX2LGvC48t3ay OONa2M/ llolDs1vEQfZZh/ t1dcsHU5MdUlgWZ 6ATDYyFv1CDbD2J pUYMfd24rNXbI+ zuxIwW1g+ cGgN/6jUCJnccbv G72rFDbqUUfaTnj 0ykJ0+mpbivy3dU /DyNZiUSvZGhNZw s01Q+B1KTgnNAdP 2SfZcgnJyI1O9yl YCf2EM+ QomHszqhNKWUk89 RrB0/ot5TKAi77T R1zPr7kLhjWzKGY aQWaQRAIgNvvXrx QH4uDibUdtoX jrwren@delays -retry- hooks: true network- management: false os-refresh- update: true os-upgrade: true machine- addresses: false metadata- url: ""
owner: evarlast@external
config:
agent-
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 AAAAB3NzaC1yc2E
ssh-dss AAAAB3NzaC1kc3M
ssh-rsa AAAAB3NzaC1yc2E
automatically
default-series: xenial
development: false
disable-
enable-
enable-
firewall-mode: instance
ftp-proxy: ""
http-proxy: ""
https-proxy: ""
ignore-
image-
image-stream: released
logforwar...