Switching charmhub channels with default config for the snap version can lead to charm errors (was: Upgrading vault from charmstore stable to 1.7/stable fails)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Charm Guide |
Fix Released
|
Undecided
|
Robert Gildein | ||
vault-charm |
Fix Committed
|
High
|
Robert Gildein | ||
1.5 |
In Progress
|
Undecided
|
Robert Gildein | ||
1.6 |
In Progress
|
Undecided
|
Robert Gildein | ||
1.7 |
In Progress
|
Undecided
|
Robert Gildein | ||
1.8 |
In Progress
|
Undecided
|
Robert Gildein |
Bug Description
Upgrading the vault charm from charmstore latest stable revision 54 to ch:vault 1.7/stable fails
The vault channel was configured as stable on the charmstore charm, which apparently goes to tracking: 1.10/stable
Changing the charm to 1.7/stable changes also the tracking to 1.7/stable, trying to downgrade manually (I don't think this is a good idea at all):
snap refresh --amend --channel=
error: cannot refresh "vault": snap "vault" has running apps (vault), pids: 212762
service vault stop followed by the refresh command works fine.
Traceback:
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
snap.
File "/var/lib/
_refresh_
File "/var/lib/
out = subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
testing:
juju deploy cs:vault
Located charm "vault" in charm-store, revision 54
juju config vault channel
stable
juju ssh vault/0 snap info vault | grep tracking
tracking: 1.10/stable
description: | updated |
tags: | added: bseng-1077 |
Changed in vault-charm: | |
assignee: | nobody → Mert Kirpici (mertkirpici) |
Changed in vault-charm: | |
assignee: | Mert Kirpici (mertkirpici) → Robert Gildein (rgildein) |
Changed in vault-charm: | |
status: | In Progress → Fix Committed |
Changed in charm-guide: | |
status: | New → In Progress |
assignee: | nobody → Robert Gildein (rgildein) |
>
> The vault channel was configured as stable on the charmstore charm,
> which apparently goes to tracking: 1.10/stable
cs:vault tracks snap 'stable' channel, vault at the moment has the track '1.10' set as default
(insteado of 'latest').