Project

General

Profile

Tâche #32558

Scénario #33424: évolutions Upgrade-Auto

pris en compte dans Maj-Auto d'un dépot additionnel

Added by Vincent Chavanon over 2 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
PNE-SR - MTES - prestation Cadoles - s46-52
Start date:
03/15/2021
Due date:
% Done:

100%

Estimated time:
0.00 h
Remaining (hours):
0.0

Description

si un dépot additionnel est déclaré et qu'une url de téléchargement de la clé du dépot est indiquée, Maj-Auto cherche à télécharger la clé du dépot, si ce n'est déjà fait, comme indiqué dans /usr/lib/python2.7/dist-packages/pyeole/pkg.py ligne 1911, en positionnant au besoin un proxy :

proxy = EolePkgApt._get_proxy(url)
if proxy is None:
env = None
else:
env = {'http_proxy': '{}:{}'.format(proxy[0], proxy[1]),
'https_proxy': '{}:{}'.format(proxy[0], proxy[1])}
logfile = '/tmp/{}.log'.format(name)
cmd = ['wget', url, '-d', '-o', logfile, '-O', keyring]
code = system_code(cmd, env=env)

La variable proxy remontée contient 2 valeurs, potentiellement toutes 2 à "none". Le test verifiant si un proxy est positionné devrait porter sur l'une ou l'autre (ou les 2) valeurs : en l'état, si aucun proxy n'est positionné, la variable "env" est quand meme initialisée à "none:none", ce qui renvoit une erreur au Mj-Auto :
:

impossible de télécharger l'URL http://url_du_fichier.asc, plus d'information dans /tmp/Depot PNESR.logfile

cat /tmp/Depot\ PNESR.log
Error in proxy URL ftp://None/None: Must be HTTP.

Il faudrait donc plutot faire un test sur la valeur de proxy [0] et/ou proxy [1]

Associated revisions

Revision 01fcf619 (diff)
Added by Emmanuel GARETTE almost 2 years ago

si hostname est à None, le proxy doit retourner None (ref #32558)

History

#1 Updated by Vincent Chavanon over 2 years ago

  • Subject changed from pris een compte dans Maj-Auto d'un dépot additionnel to pris en compte dans Maj-Auto d'un dépot additionnel

#2 Updated by Vincent Chavanon over 2 years ago

  • Description updated (diff)

#3 Updated by Vincent Chavanon over 2 years ago

  • Description updated (diff)

#4 Updated by Vincent Chavanon over 2 years ago

  • Description updated (diff)

#5 Updated by Thierry Bertrand over 2 years ago

  • Release set to EOLE 2.7.2

#6 Updated by Thierry Bertrand over 2 years ago

  • Parent task changed from #31795 to #32598

#7 Updated by Emmanuel GARETTE about 2 years ago

  • Status changed from Nouveau to En cours

#8 Updated by Emmanuel GARETTE about 2 years ago

  • Assigned To set to Emmanuel GARETTE

Normalement les variables http_proxy et https_proxy doivent être renseigné correctement.
La valeur none:none n'est pas une valeur valide, cela peut poser des problèmes par ailleurs.

Ce n'est pas, a priori, EOLE qui renseigne ces valeurs.

#9 Updated by Vincent Chavanon almost 2 years ago

  • Status changed from En cours to Fermé
  • Remaining (hours) set to 0.0

le soucis n'apparait que sur des serveurs qui sont passés d'une variante à une autre : on se replongera dedans si le problème ressurgit.

#10 Updated by Vincent Chavanon almost 2 years ago

  • Estimated time set to 0.00 h

#11 Updated by Vincent Chavanon almost 2 years ago

  • Status changed from Fermé to Nouveau

#12 Updated by Vincent Chavanon almost 2 years ago

  • Parent task changed from #32598 to #33424

#13 Updated by Emmanuel GARETTE almost 2 years ago

Le problème est lié à :

/etc/apt/apt.conf.d/02eole-apt-intra:Acquire::http::Proxy::debmiroir-01.eole.e2.rie.gouv.fr "DIRECT";

#14 Updated by Emmanuel GARETTE almost 2 years ago

  • Project changed from PNE-SR to Distribution EOLE
  • Status changed from Nouveau to En cours

#15 Updated by Emmanuel GARETTE almost 2 years ago

  • Status changed from En cours to Résolu

#16 Updated by Emmanuel GARETTE almost 2 years ago

  • % Done changed from 0 to 100

#17 Updated by Celine Rappeneau over 1 year ago

  • Status changed from Résolu to En cours

#18 Updated by Emmanuel GARETTE over 1 year ago

  • Status changed from En cours to Résolu

#19 Updated by Philippe Carre over 1 year ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF