How to deploy an updated charm
William Reade
william.reade at canonical.com
Mon May 14 05:52:18 UTC 2012
On Sun, 2012-05-13 at 22:39 -0700, Haitao Jiang wrote:
> I tried upgrade-charm, but it requires that service to be up and
> running (started state).
In this situation, you should be able to use `juju upgrade-charm
--force ...`; this will upgrade the deployed charm regardless of state
(but will not run the upgrade hook, which requires the "started" state).
> I destroy the service and re-deploy, but Juju seems cache the charm
> and still deploy the old borken charm.
If you're changing a charm in a local repository, but not changing its
revision, you will see this behaviour unless you run deploy with the
--upgrade flag.
juju deploy --upgrade ...
This will bump the revision of a charm in a local repository in the same
way that upgrade-charm does.
Cheers
William
More information about the Juju
mailing list