juju attach-resource triggers charm upgrade even if there is no change to resource

Bug #1854957 reported by Lirim
8
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_13.0.0.orig.tgz

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.

Revision history for this message
Lirim (lirim-osmani) wrote :
Changed in juju:
status: New → Triaged
Revision history for this message
Joseph Phillips (manadart) wrote :

The uniter worker will queue the upgrade-charm hook if it sees that its application's CharmModifiedVersion is incremented.

Running attach-resource appears to do a server-side comparison of bytes for a resource that is changing and should only increment CharmModifiedVersion if there is a difference.

So this looks contrary to intended behaviour.

Changed in juju:
importance: Undecided → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.