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.
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( ) 73f3-4ec7- 8a38-90db7f68a3 48:juju- qa-test" , tO71SX8VDWvd3Wr jaJ" 73f3-4ec7- 8a38-90db7f68a3 48:juju- qa-test3" ,
{
"_id" : "864917d8-
"charm-origin" : {
"id" : "Hw30RWzpUBnJLG
}
}
{
"_id" : "864917d8-
"charm-origin" : {
"id" : ""
}
}
A bug in the async charm download code.