livepatch-server does not support proxy or proxy env variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch On-Prem |
Fix Released
|
Medium
|
Domas Monkus |
Bug Description
Livepatch-server (Livepatch on-prem) does not support proxy
The current version is contained as binary in the resources/
https:/
Charm also does not support proxy, but it is quite easy fix
if your model-config contains settings like:
- juju-http-proxy
- juju-https-proxy
- juju-no-proxy
you may use attached patch to set the proper env on running charm
plus contains modification to the systemd service file with the envs
derived from the model-config settings
Here's excerpt from log when cannot connect, triggered by the livepatch-admin command
$ livepatch-admin sync trigger --wait
Dec 09 22:14:02 juju-2d3830-0-lxd-0 systemd[1]: Started Livepatch server.
Dec 09 22:16:57 juju-2d3830-0-lxd-0 livepatchd[242770]: {"level"
tchstore.
Dec 09 22:17:27 juju-2d3830-0-lxd-0 livepatchd[242770]: {"level"
hot","job-
shot\": dial tcp 162.213.33.50:443: i/o timeout"
t \"https:/
Dec 09 22:17:27 juju-2d3830-0-lxd-0 livepatchd[242770]: {"level"
d":"a7efdb5c212
3: i/o timeout"
{"loc":
kg.in/httpreque
meout"}]}}
description: | updated |
Changed in livepatch-onprem: | |
status: | New → Confirmed |
assignee: | nobody → Domas Monkus (tasdomas) |
importance: | Undecided → Medium |
status: | Confirmed → Fix Released |
Changed in livepatch-onprem: | |
status: | Fix Released → New |
This will add EnvironmentFile to the systemd service with proxy env variables