Project

General

Profile

Tâche #22546

Scénario #22577: Upgrade-Auto vers 2.6.2 : dernières corrections et améliorations cosmétiques

La commande gen_conteneurs sort en erreur après l'Upgrade d'AmonEcole en 2.6.2

Added by Joël Cuissinat almost 2 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
12/20/2017
Due date:
% Done:

100%

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

Description

Les conteneurs n'accèdent pas au service apt-cacher-ng du maître.

Visiblement apt-cacher-ng n'écoutait pas sur 192.0.2.1 => OK après re-démarrage du service

root@amonecole:~# gen_conteneurs 
Restart Systemd service creoled                                                                     [  OK  ]
Le cache LXC est déjà présent, voulez-vous le supprimer ? [oui/non]
[non] : 
------------------------------------------------------------------------------------------------------------
                                         Génération des conteneurs                                          
------------------------------------------------------------------------------------------------------------
root - ne peut se connecter à apt-cacher-ng dans le conteneur, veuillez regarder les logs dans /var/log/apt-cacher-ng/
 et redémarrer le serveur avec la commande "systemctl start apt-cacher-ng" 
root@amonecole:~# tcpcheck 3 localhost:3142
localhost:3142 is alive

Le test Jenkins échoue sur la même erreur : http://jenkins.eole.lan/jenkins/job/2.6.2/job/test-upgradeauto-amonecole-252-2.6.2-amd64/4/console

Associated revisions

Revision 87a2b9ba (diff)
Added by Laurent Flori over 1 year ago

Fix apt-cacher-ng start just after upgrade-auto

ref: #22546

after upgrade-auto, apt-cacher-ng don't start if localhost is in config
file.

Revision f12fb3bd (diff)
Added by Laurent Flori over 1 year ago

Make script executable

ref: #22546

Revision 939fa4d3 (diff)
Added by Laurent Flori over 1 year ago

Changing listening uri order acng for upgrading

ref: #22546

New bind addresses order for acng for upgrading to 2.6.1 or 2.6.2

History

#1 Updated by Joël Cuissinat almost 2 years ago

  • Description updated (diff)

#2 Updated by Joël Cuissinat over 1 year ago

  • Parent task changed from #22222 to #22577

#3 Updated by Laurent Flori over 1 year ago

  • Status changed from Nouveau to En cours

#4 Updated by Laurent Flori over 1 year ago

  • Assigned To set to Laurent Flori

#5 Updated by Laurent Flori over 1 year ago

  • Status changed from En cours to Nouveau
  • Assigned To deleted (Laurent Flori)
  • Remaining (hours) changed from 4.0 to 1.0

Le service est démarré sur localhost:3142 mais pas sur l'interface 192.0.2.1:3142:

root@amonecole:~# systemctl status apt-cacher-ng.service 
● apt-cacher-ng.service - Apt-Cacher NG software download proxy
   Loaded: loaded (/lib/systemd/system/apt-cacher-ng.service; enabled; vendor preset: enabled)
   Active: active (running) since mar. 2018-01-16 10:31:09 CET; 29s ago
 Main PID: 1471 (apt-cacher-ng)
    Tasks: 1
   Memory: 2.0M
      CPU: 37ms
   CGroup: /system.slice/apt-cacher-ng.service
           └─1471 /usr/sbin/apt-cacher-ng SocketPath=/run/apt-cacher-ng/socket -c /etc/apt-cacher-ng ForeGround=1

janv. 16 10:31:09 amonecole systemd[1]: Starting Apt-Cacher NG software download proxy...
janv. 16 10:31:09 amonecole apt-cacher-ng[1471]: Couldn't bind socket: Cannot assign requested address
janv. 16 10:31:09 amonecole systemd[1]: Started Apt-Cacher NG software download proxy.

Test du port 3142 sur les interfaces localhost et 192.0.2.1:

root@amonecole:~# tcpcheck 3 localhost:3142
localhost:3142 is alive

root@amonecole:~# tcpcheck 3 192.0.2.1:3142
192.0.2.1:3142 failed

A chaque reboot la situation est la même, le service écoute sur localhost mais pas sur 192.0.2.1.

- On peut redémarrer le service après le démarrage sans erreur.
- On peut remplacer localhost par 127.0.0.1 dans le fchier /etc/acng.conf (le service démarre alors convenablement)

#6 Updated by Laurent Flori over 1 year ago

  • Status changed from Nouveau to En cours

#7 Updated by Laurent Flori over 1 year ago

  • Assigned To set to Laurent Flori

#8 Updated by Laurent Flori over 1 year ago

  • Remaining (hours) changed from 1.0 to 0.25

#9 Updated by Scrum Master over 1 year ago

  • Status changed from En cours to Résolu

#10 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 0.25 to 0.0

Problème non reproduit

Also available in: Atom PDF