upgrade-charm fails to change a symlink to a regular file

Bug #988115 reported by Clint Byrum
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released
William Reade

Bug Description

Test case:

create a charm with upgrade-charm hook linked to install


hooks/install (regular executable file)
hooks/upgrade-charm -> install

Deploy this charm. Once it is deployed, change the local charm so that hooks/upgrade-charm is a regular executable file.

juju juju-upgrade-charm xxxx to upgrade the charm

I would expect the charm to be identical, but instead, upgrade-charm is still a symlink to install.

Haw Loeung (hloeung)
tags: added: canonical-webops-juju
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

William I've assigned you this task because I'm wondering if your new merging code will address this in the Go port.

Changed in juju:
status: New → Confirmed
importance: Undecided → High
Changed in juju-core:
assignee: nobody → William Reade (fwereade)
Revision history for this message
William Reade (fwereade) wrote :

Clint, cheers, it certainly should but I'll verify it.

Revision history for this message
William Reade (fwereade) wrote :

There's now a test that verifies this specific behaviour.

Changed in juju-core:
status: New → Fix Released
tags: added: goju-resolved
Changed in juju:
milestone: none → 0.8
Curtis Hovey (sinzui)
Changed in juju:
status: Confirmed → Triaged
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.