Closed dashmage closed 1 year ago
We need to split the build-on/run-on. A 22.04 charm cannot run as-is on 20.04.
Works on 22.04, confirming @sed-i's statement.
Machine State Address Inst id Base AZ Message
0 started 10.227.50.80 juju-2b0924-0 ubuntu@20.04 Running
1 started 10.227.50.220 juju-2b0924-1 ubuntu@22.04 Running
ubuntu@juju:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
issue-250 lxd localhost/localhost 3.1.5 unsupported 14:38:57+02:00
App Version Status Scale Charm Channel Rev Exposed Message
grafana-agent error 1 grafana-agent edge 18 no hook failed: "install"
grafana-agent2 blocked 1 grafana-agent edge 18 no logging-consumer: off, send-remote-write: off, grafana-cloud-config: off
ubuntu 20.04 active 1 ubuntu stable 24 no
ubuntu2 22.04 active 1 ubuntu stable 24 no
Unit Workload Agent Machine Public address Ports Message
ubuntu2/0* active idle 1 10.227.50.220
grafana-agent2/0* blocked idle 10.227.50.220 logging-consumer: off, send-remote-write: off, grafana-cloud-config: off
ubuntu/0* active idle 0 10.227.50.80
grafana-agent/0* error idle 10.227.50.80 hook failed: "install"
Machine State Address Inst id Base AZ Message
0 started 10.227.50.80 juju-2b0924-0 ubuntu@20.04 Running
1 started 10.227.50.220 juju-2b0924-1 ubuntu@22.04 Running
@simskij for some reason I can't transfer this issue to the machine charm repo. Are you able to?
Partially blocked by https://github.com/canonical/charmcraft/issues/1263.
Should have been closed by #9, @dashmage please re-open if the issue persists.
Bug Description
While deploying grafana-agent and relating with a focal unit, there's an install hook error.
To Reproduce
$ juju deploy ubuntu --base ubuntu@20.04 $ juju deploy grafana-agent --channel edge --base ubuntu@20.04 $ juju relate ubuntu grafana-agent
Environment
Relevant log output
Additional context
This could be caused with the latest commit that bumps the operator_libs_linux library to v2.
This error is not present on jammy.