canonical / canonical/layer-basic

Installing pip/apt packages in only-proxy environment fails

Abierto
#157 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
10
Forks
42
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
devops
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.