canonical / canonical/layer-basic

Installing pip/apt packages in only-proxy environment fails

Offen
#157 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
10
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

If the juju model config has only the juju-http-proxy/juju-https-proxy settings the layer basic tries to install python_packages via pip defined in layer.yaml and fails (hangs).

layer.yaml:
options:
basic:
packages:
# Install "juju" Python package build dependencies.
- libssl-dev
- libffi-dev
python_packages:
# do not put it in wheelhouse.txt, since its deps need compilaton
- juju==2.7.1
use_venv: false

For example the following config is set:

uju-http-proxy model http://squid.internal:3128
juju-https-proxy model http://squid.internal:3128

The following options are blank:
http-proxy default ""
https-proxy default ""

If you configure http-proxy and https-proxy on the model the pip installation succeeds (global proxy settings, which we want to stay away from).

All juju charms should be able to work with juju-http(s)-proxy options.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the layer.yaml package and python_packages configuration, then trace how the layer handles juju-http-proxy and juju-https-proxy during pip and apt installation. Compare that path with the global http-proxy and https-proxy settings and reproduce the hang; done means package installation succeeds using only the model-specific proxy options.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
devops
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.