When using origin instead of install_sources install hook fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client-charm |
New
|
Undecided
|
Unassigned |
Bug Description
Landscape-client rev 33
Ubuntu xenial
When using the deprecated "origin" set to:
$ juju config landscape-client origin
deb http://
Install hook failed with:
2021-01-14 08:35:50 DEBUG install After this operation, 17.4 MB of additional disk space will be used.
2021-01-14 08:35:50 DEBUG install WARNING: The following packages cannot be authenticated!
2021-01-14 08:35:50 DEBUG install landscape-common landscape-client
2021-01-14 08:35:50 DEBUG install E: There were unauthenticated packages and -y was used without --allow-
2021-01-14 08:35:50 DEBUG install Traceback (most recent call last):
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install sys.exit(
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install self._hooks[
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install fetch.apt_
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install _run_apt_
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install retry_message=
2021-01-14 08:35:50 DEBUG install File "/var/lib/
2021-01-14 08:35:50 DEBUG install result = subprocess.
2021-01-14 08:35:50 DEBUG install File "/usr/lib/
2021-01-14 08:35:50 DEBUG install raise CalledProcessEr
2021-01-14 08:35:50 DEBUG install subprocess.
2021-01-14 08:35:50 ERROR juju.worker.
2021-01-14 08:35:50 DEBUG juju.machinelock machinelock.go:186 machine lock released for uniter (run install hook)
2021-01-14 08:35:50 DEBUG juju.worker.
2021-01-14 08:35:50 INFO juju.worker.uniter resolver.go:126 awaiting error resolution for "install" hook
2021-01-14 08:35:50 DEBUG juju.worker.uniter agent.go:20 [AGENT-STATUS] error: hook failed: "install"
2021-01-14 08:35:50 INFO juju.worker.uniter resolver.go:126 awaiting error resolution for "install" hook
This was fixed using install sources instead:
$ juju config landscape-client install_
$ juju resolve landscape-
and install hook completed with no issues.