2023-02-17 06:04:22 |
Diko Parvanov |
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=1.7/stable vault
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/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-vault-0/charm/reactive/vault_handlers.py", line 188, in snap_refresh
snap.refresh('vault', channel=channel)
File "/var/lib/juju/agents/unit-vault-0/charm/lib/charms/layer/snap.py", line 113, in refresh
_refresh_store(snapname, **kw)
File "/var/lib/juju/agents/unit-vault-0/charm/lib/charms/layer/snap.py", line 421, in _refresh_store
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'refresh', '--amend', '--channel=1.7/stable', 'vault']' returned non-zero exit status 1. |
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=1.7/stable vault
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/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.8/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-vault-0/charm/reactive/vault_handlers.py", line 188, in snap_refresh
snap.refresh('vault', channel=channel)
File "/var/lib/juju/agents/unit-vault-0/charm/lib/charms/layer/snap.py", line 113, in refresh
_refresh_store(snapname, **kw)
File "/var/lib/juju/agents/unit-vault-0/charm/lib/charms/layer/snap.py", line 421, in _refresh_store
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'refresh', '--amend', '--channel=1.7/stable', 'vault']' returned non-zero exit status 1.
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 |
|