Comment 4 for bug 1999060

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

I was able to reproduce. There is a timing window with bundles and the terraform provider where deploying the same charm with different names will cause not all of the applications to get the charm ID in the charm origin - preventing resource download. This would also prevent application refresh.

Reproduced with lxd and the following bundle:

applications:
  juju-qa-test:
    charm: juju-qa-test
    num_units: 3
  juju-qa-test3:
    charm: juju-qa-test
    num_units: 2

juju:PRIMARY> db.applications.find({},{"charm-origin.id":1}).pretty()
{
 "_id" : "864917d8-73f3-4ec7-8a38-90db7f68a348:juju-qa-test",
 "charm-origin" : {
  "id" : "Hw30RWzpUBnJLGtO71SX8VDWvd3WrjaJ"
 }
}
{
 "_id" : "864917d8-73f3-4ec7-8a38-90db7f68a348:juju-qa-test3",
 "charm-origin" : {
  "id" : ""
 }
}

A bug in the async charm download code.