Project

General

Profile

Tâche #16670

creole - Scénario #14677: Redémarrer apt-cacher-ng au reconfigure

Maj-Cd impossible si creoled est planté

Added by Joël Cuissinat over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/30/2016
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Même avec l'option -i ça plante...

root@eolebase:~# service creoled stop
root@eolebase:~# Query-Cd -id
Mise à jour le jeudi 30 juin 2016 13:41:12
*** module 2.6.0 ***

Configuration du CDROM
Maj-Auto - Erreur HTTP : socket.error: [Errno 111] ECONNREFUSED
Veuillez vous référer au journal d'événement de creoled (/var/log/rsyslog/local/creoled/creoled.info.log)pour avoir plus d'informations
et redémarrer le service avec la commande 'service creoled start'
Traceback (most recent call last):
  File "/usr/bin/Maj-Auto", line 306, in main
    envole_level=envole_level)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1680, in _configure_sources_mirror
    pkgmgr.update()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1002, in update
    self._prepare_cache()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 902, in _prepare_cache
    self._mount_cdrom()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 870, in _mount_cdrom
    for cdrom in self.is_cdrom_devices():
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 562, in is_cdrom_devices
    self._cdrom_devices = self.client.get_creole('cdrom_devices')
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 421, in get_creole
    ret = self.get('/creole', *args, variable=name, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 380, in get
    ret = self.request('/get', path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 307, in request
    ret = self._request(self.url + command + path, **kwargs)
  File "/usr/lib/python2.7/dist-packages/creole/client.py", line 286, in _request
    raise TimeoutCreoleClientError(msg.format(err))
TimeoutCreoleClientError: Erreur HTTP : socket.error: [Errno 111] ECONNREFUSED
Veuillez vous référer au journal d'événement de creoled (/var/log/rsyslog/local/creoled/creoled.info.log)pour avoir plus d'informations
et redémarrer le service avec la commande 'service creoled start'

Associated revisions

Revision 03e70bdf (diff)
Added by Joël Cuissinat over 3 years ago

Protection des appels au client Creole avec l'option '-i'

Ref: #16670 @1h

Revision a94bccd7 (diff)
Added by Joël Cuissinat over 3 years ago

Nettoyage (pylint) de la librairie pyeole/pkg.py

Ref: #16670 @30m

History

#1 Updated by Joël Cuissinat over 3 years ago

  • Estimated time set to 2.00 h
  • Parent task set to #14677

#2 Updated by Joël Cuissinat over 3 years ago

  • Remaining (hours) set to 2.0

#3 Updated by Joël Cuissinat over 3 years ago

Attention, le problème est reproductible uniquement si /dev/sr0 n'est pas (déjà) monté :

umount /dev/sr0

#4 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#5 Updated by Joël Cuissinat over 3 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#6 Updated by Emmanuel GARETTE over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

OK :

root@amon:/var/lib/dpkg/info# Query-Cd -i
Mise à jour le jeudi 07 juillet 2016 16:39:09
*** module 2.6.0 ***

Configuration du CDROM
Maj-Auto - CDROM d'installation non trouvé
root@amon:/var/lib/dpkg/info# Query-Cd -id
Mise à jour le jeudi 07 juillet 2016 16:33:27
*** module 2.6.0 ***

Configuration du CDROM
pyeole.pkg - Run: /bin/umount /media/cdrom
Maj-Auto - CDROM d'installation non trouvé
Traceback (most recent call last):
  File "/usr/bin/Maj-Auto", line 306, in main
    envole_level=envole_level)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1690, in _configure_sources_mirror
    pkgmgr.update()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1012, in update
    self._prepare_cache()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 912, in _prepare_cache
    self._mount_cdrom()
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 891, in _mount_cdrom
    raise SystemError(_('No installer CDROM found'))
SystemError: CDROM d'installation non trouvé

Also available in: Atom PDF