juju attach-resource triggers charm upgrade even if there is no change to resource
Bug #1854957 reported by
Lirim
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Running juju attach-resource on a charm triggers upgrade hook even if the same resource is added again without any changes at all. Logs attached from trying this on openstack-dashboard for example with:
juju attach-resource openstack-dashboard theme=horizon_
Tried this with 2.7.0-bionic-amd64
Is the normal behavior?. Although nothing is upgraded or installed and the dashboard is working just fine.
Changed in juju: | |
status: | New → Triaged |
Changed in juju: | |
importance: | Undecided → Medium |
To post a comment you must log in.
The uniter worker will queue the upgrade-charm hook if it sees that its application's CharmModifiedVe rsion is incremented.
Running attach-resource appears to do a server-side comparison of bytes for a resource that is changing and should only increment CharmModifiedVe rsion if there is a difference.
So this looks contrary to intended behaviour.