$ juju deploy --to lxd:4 --constraints arch=s390x --series jammy --config ovn-exporter-channel=edge --channel latest/edge ch:ovn-central ovn-central-edge
Located charm "ovn-central" in charm-hub, revision 68
$ juju status ovn-central-edge
Model Controller Cloud/Region Version SLA Timestamp
jammy-zed-ovn juju-controller-s390x manual 2.9.35 unsupported 20:26:32Z
App Version Status Scale Charm Channel Rev Exposed Message
ovn-central-edge error 1 ovn-central latest/edge 68 no hook failed: "install"
Unit Workload Agent Machine Public address Ports Message
ovn-central-edge/0* error idle 4/lxd/5 10.13.3.145 hook failed: "install"
Machine State Address Inst id Series AZ Message
4 started 10.13.3.9 manual:10.13.3.9 jammy Manually provisioned machine
4/lxd/5 started 10.13.3.145 juju-f2e777-4-lxd-5 jammy Container started
unit-ovn-central-edge-0: 20:25:38 WARNING unit.ovn-central-edge/0.install ERROR could not download resource: HTTP request failed: Get https://10.13.3.12:17070/model/3400a789-ea87-4f34-8950-235c6cf2e777/units/unit-ovn-central-edge-0/resources/prometheus-ovn-exporter: resource#ovn-central-edge/prometheus-ovn-exporter not found
unit-ovn-central-edge-0: 20:25:38 ERROR unit.ovn-central-edge/0.juju-log Installation failed cmd="['snap', 'install', '--channel=stable', 'prometheus-ovn-exporter']" returncode=1 output="b'error: snap "prometheus-ovn-exporter" is not available on stable but is\n available to install on the following channels:\n\n edge snap install --edge prometheus-ovn-exporter\n\n Please be mindful pre-release channels may include features not\n completely tested or implemented. Get more information with \'snap info\n prometheus-ovn-exporter\'.\n'"
unit-ovn-central-edge-0: 20:25:49 ERROR unit.ovn-central-edge/0.juju-log Installation failed cmd="['snap', 'install', '--channel=stable', 'prometheus-ovn-exporter']" returncode=1 output="b'error: snap "prometheus-ovn-exporter" is not available on stable but is\n available to install on the following channels:\n\n edge snap install --edge prometheus-ovn-exporter\n\n Please be mindful pre-release channels may include features not\n completely tested or implemented. Get more information with \'snap info\n prometheus-ovn-exporter\'.\n'"
unit-ovn-central-edge-0: 20:25:59 ERROR unit.ovn-central-edge/0.juju-log Installation failed cmd="['snap', 'install', '--channel=stable', 'prometheus-ovn-exporter']" returncode=1 output="b'error: snap "prometheus-ovn-exporter" is not available on stable but is\n available to install on the following channels:\n\n edge snap install --edge prometheus-ovn-exporter\n\n Please be mindful pre-release channels may include features not\n completely tested or implemented. Get more information with \'snap info\n prometheus-ovn-exporter\'.\n'"
unit-ovn-central-edge-0: 20:25:59 ERROR unit.ovn-central-edge/0.juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/charms/reactive/__init__.py", line 73, in main
hookenv._run_atstart()
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/charmhelpers/core/hookenv.py", line 1348, in _run_atstart
callback(*args, **kwargs)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/charm/reactive/snap.py", line 100, in install
snap.install(snapname, **snap_opts)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/charm/lib/charms/layer/snap.py", line 65, in install
_install_store(snapname, **kw)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/charm/lib/charms/layer/snap.py", line 409, in _install_store
_run_install()
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 292, in wrapped_f
return self.call(f, *args, **kw)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 358, in call
do = self.iter(retry_state=retry_state)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 331, in iter
raise retry_exc.reraise()
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 167, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/var/lib/juju/agents/unit-ovn-central-edge-0/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 361, in call
result = fn(*args, **kwargs)
File "/var/lib/juju/agents/unit-ovn-central-edge-0/charm/lib/charms/layer/snap.py", line 396, in _run_install
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'install', '--channel=stable', 'prometheus-ovn-exporter']' returned non-zero exit status 1.
[test case]
juju deploy --series jammy --config ovn-exporter-channel=edge --channel latest/edge ch:ovn-central ovn-central-edge
Expected result:
the ovn-central unit deployed installs prometheus-ovn-exporter from the edge risk channel.
Actual result:
ovn-central install prometheus-ovn-exporter from the stable risk channel.