upgrade-juju can downgrade.. and causes hook executions

Bug #1227991 reported by Kapil Thangavelu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Opinion
Undecided
Unassigned

Bug Description

juju upgrade-juju can downgrade.. not clear that its a supported use case. also upgrade-juju ends up hooks on services (config-changed). Its not clear that it should, nothing has changed in terms of config for the service units.

ie on a 1.14.0 environment i ran

 $ juju upgrade-juju --version=1.13.3

without complaint..

summary: - upgrade can downgrade.. upgrade causes hook executions
+ upgrade-juju can downgrade.. and causes hook executions
description: updated
Revision history for this message
John A Meinel (jameinel) wrote :

It was actually intended when upgrade-juju was designed. There has been some discussion whether we want to keep this behavior.

Changed in juju-core:
status: New → Opinion
Revision history for this message
John A Meinel (jameinel) wrote :

To be clear, it was intended that "juju upgrade-juju --version $OLD" could downgrade your environment. I don't know about the config-changed hook.

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1227991] Re: upgrade-juju can downgrade.. and causes hook executions

fair enough re upgrade-juju doing downgrades, although its not clear thats
safe (ie untested), and almost certainly won't be if cross major versions.
the config changed part still feels a bit suspect. do we have any automated
testing around upgrades in long standing envs?

On Sun, Sep 22, 2013 at 7:56 AM, John A Meinel <email address hidden>wrote:

> To be clear, it was intended that "juju upgrade-juju --version $OLD"
> could downgrade your environment. I don't know about the config-changed
> hook.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1227991
>
> Title:
> upgrade-juju can downgrade.. and causes hook executions
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1227991/+subscriptions
>

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.