Running a deployment of the stable landscape-scalable bundle; with specified placement
machines:
'4':
constraints: tags=landscapeha,silo4
'3':
constraints: tags=landscape,silo4
series: jammy
'2':
constraints: tags=landscapeamqp,silo4
'1':
constraints: tags=landscapesql,silo4
and a default series in the model config as focal (and the landscape-scalable bundle also defaults to focal) landsacpe server fails to install with the error:
unit-landscape-server-0: 21:41:41 ERROR unit.landscape-server/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-landscape-server-0/charm/./src/charm.py", line 911, in <module>
main(LandscapeServerCharm)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/venv/ops/main.py", line 436, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/venv/ops/framework.py", line 354, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/venv/ops/framework.py", line 830, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/venv/ops/framework.py", line 919, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/./src/charm.py", line 209, in _on_install
apt.add_package("landscape-server")
File "/var/lib/juju/agents/unit-landscape-server-0/charm/lib/charms/operator_libs_linux/v0/apt.py", line 759, in add_package
pkg, success = _add(p, version, arch)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/lib/charms/operator_libs_linux/v0/apt.py", line 799, in _add
pkg = DebianPackage.from_system(name, version, arch)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/lib/charms/operator_libs_linux/v0/apt.py", line 373, in from_system
return DebianPackage.from_apt_cache(package, version, arch)
File "/var/lib/juju/agents/unit-landscape-server-0/charm/lib/charms/operator_libs_linux/v0/apt.py", line 496, in from_apt_cache
epoch, split_version = DebianPackage._get_epoch_from_version(vals["Version"])
KeyError: 'Version'
It seems like the charm runs apt-get update, and has the self-hosted-beta in the apt update; then it adds the repo again, and fails to parse the version.
unit-landscape-server-0: 21:41:35 DEBUG juju.worker.uniter.remotestate got a relation units change for landscape-server/0 : {6 {map[haproxy/0:{0}] map[] []}}
unit-landscape-server-0: 21:41:36 DEBUG unit.landscape-server/0.install Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
unit-landscape-server-0: 21:41:36 DEBUG unit.landscape-server/0.install Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
unit-landscape-server-0: 21:41:36 DEBUG unit.landscape-server/0.install Hit:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease
unit-landscape-server-0: 21:41:36 DEBUG unit.landscape-server/0.install Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
unit-landscape-server-0: 21:41:37 DEBUG unit.landscape-server/0.install Get:5 https://ppa.launchpadcontent.net/landscape/self-hosted-beta/ubuntu jammy InRelease [17.5 kB]
unit-landscape-server-0: 21:41:37 DEBUG unit.landscape-server/0.install Get:6 https://ppa.launchpadcontent.net/landscape/self-hosted-beta/ubuntu jammy/main amd64 Packages [11.5 kB]
unit-landscape-server-0: 21:41:38 DEBUG unit.landscape-server/0.install Get:7 https://ppa.launchpadcontent.net/landscape/self-hosted-beta/ubuntu jammy/main Translation-en [7996 B]
unit-landscape-server-0: 21:41:39 DEBUG unit.landscape-server/0.install Fetched 37.1 kB in 1s (25.8 kB/s)
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Reading package lists...
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Repository: 'deb https://ppa.launchpadcontent.net/landscape/self-hosted-beta/ubuntu/ jammy main'
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Description:
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Dependencies for Landscape Server Self-Hosted Beta.
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install More info: https://launchpad.net/~landscape/+archive/ubuntu/self-hosted-beta
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Adding repository.
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Adding deb entry to /etc/apt/sources.list.d/landscape-ubuntu-self-hosted-beta-jammy.list
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Adding disabled deb-src entry to /etc/apt/sources.list.d/landscape-ubuntu-self-hosted-beta-jammy.list
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.install Adding key to /etc/apt/trusted.gpg.d/landscape-ubuntu-self-hosted-beta.gpg with fingerprint 35F77D63B5CEC106C577ED856E85A86E4652B4E6
unit-landscape-server-0: 21:41:40 DEBUG unit.landscape-server/0.juju-log package 'landscape-server' is not currently installed or has the wrong architecture.
The test run can be found at:
https://solutions.qa.canonical.com/testruns/6b7aa52f-dc14-433b-9044-871c240534cb/
with crashdump at:
https://oil-jenkins.canonical.com/artifacts/6b7aa52f-dc14-433b-9044-871c240534cb/generated/generated/landscape/juju-crashdump-landscape-2023-07-13-21.42.35.tar.gz