Project

General

Profile

Demande #28476

reconfigure - Erreur : posttemplate

Added by Anthony RAULT 9 months ago. Updated 29 days ago.

Status:
Classée sans suite
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
06/03/2019
Due date:
% Done:

0%


Description

Bonjour,

il y a une erreur lors du reconfigure automatique (En PJ, reconfigure.log) MAIS fonctionne bien lorsqu'il est lancé manuellement.

Cdlt

reconfigure.log View (67.4 KB) Anthony RAULT, 06/03/2019 01:51 PM

reconfigure.log View (821 KB) Anthony RAULT, 09/13/2019 01:37 PM


Related issues

Related to Distribution EOLE - Demande #26920: Gestion upgrade du fichier extra/schedule Classée sans suite
Related to creole - Tâche #19710: Le chargement des jours (weekday et montday) du schedule doivent tout le temps se charger Fermé 03/06/2017

History

#1 Updated by Anthony RAULT 9 months ago

Re,
des informations supplémentaires, il semblerait qu'il manque un "exit 0" dans /usr/share/eole/schedule/weekly/post/majauto

cat /var/log/syslog:

2019-06-02T03:44:33.743123+04:00 one.sae-nord.lan zephir: RECONFIGURE => ERR : Erreur : posttemplate
2019-06-02T03:44:33.743932+04:00 one.sae-nord.lan zephir: MAJ => ERR : Erreur : posttemplate
2019-06-02T03:44:33.820517+04:00 one.sae-nord.lan eole-schedule: Erreur : posttemplate
2019-06-02T03:44:33.820637+04:00 one.sae-nord.lan eole-schedule: run-parts: /usr/share/eole/schedule/weekly/post/majauto exited with return code 1
2019-06-02T03:44:33.820759+04:00 one.sae-nord.lan eole-schedule: Sortie de post schedule weekly avec un code d'erreur

Cdlt

#2 Updated by Anthony RAULT 9 months ago

Bonjour,
apres avoir ajout d'un "exit 0" indiqué dans mon precedent ticket, j'ai toujours l'erreur au reconfigure:

2019-06-09T03:46:15.711654+04:00 one.sae-nord.lan zephir: RECONFIGURE => ERR : Erreur : posttemplate
2019-06-09T03:46:15.712964+04:00 one.sae-nord.lan zephir: MAJ => ERR : Erreur : posttemplate

Ces erreurs au reconfigure font qu'il n'y a plus de connexion avec le service libvirtd:

virsh list
erreur : impossible de se connecter à l'hyperviseur
erreur : pas de connexion valide
erreur : Failed to connect socket to '/var/run/libvirt/libvirt-sock': Aucun fichier ou dossier de ce type

onevm list
Failed to open TCP connection to localhost:2633 (Connection refused - connect(2) for "localhost" port 2633)
systemctl status libvirtd.service 
● libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/libvirt-bin.service.d
           └─bastion-dep.conf
   *Active: inactive (dead) since dim. 2019-06-09 03:45:55 +04; 3 days ago*
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 19793 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/libvirt-bin.service
           ├─ 9590 /usr/bin/qemu-system-x86_64 -name one-2 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu qemu64,hv_relaxed,hv_vapic,hv_spinlocks=0x10
           ├─10548 /usr/bin/qemu-system-x86_64 -name one-0 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu qemu64,hv_relaxed,hv_vapic,hv_spinlocks=0x10
           └─11542 /usr/bin/qemu-system-x86_64 -name one-1 -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu qemu64,hv_relaxed,hv_vapic,hv_spinlocks=0x10
systemctl status libvirt-bin.socket 
● libvirt-bin.socket
   Loaded: loaded (/lib/systemd/system/libvirt-bin.socket; static; vendor preset: enabled)
   Active: inactive (dead)
   Listen: /var/run/libvirt/libvirt-sock (Stream)
           /var/run/libvirt/libvirt-sock-ro (Stream)

#3 Updated by Anthony RAULT 6 months ago

Bonjour,

ONE (hapy 2.6) en établissement ayant cette erreur intervenant lors du reconfigure: Du coup, aucun service ne fonctionne. Un reconfigure manuel obligatoire pour revenir à un état normal.
En PJ, le log du reconfigure.

Merci de prendre en compte cette demande.

Cordialement


# ll /var/log/reconfigure.log
-rw-r--r-- 1 root root 840761 *sept. 13 05:21* /var/log/reconfigure.log

# service cron status
● cron.service - Regular background program processing daemon
   Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
   Active: *inactive (dead) since ven. 2019-09-13 05:20:50* +04; 10h ago
     Docs: man:cron(8)
 Main PID: 209421 (code=killed, signal=TERM)
   CGroup: /system.slice/cron.service
           └─198669 /usr/bin/atop -a -w /var/log/atop/atop_20190913 600

sept. 13 05:21:22 one eole-schedule[180360]: --------------------------------------------------------------------------------
sept. 13 05:21:22 one eole-schedule[180360]: Erreur : posttemplate
sept. 13 05:21:22 one eole-schedule[180360]: run-parts: /usr/share/eole/schedule/weekly/post/majauto exited with return code 1
sept. 13 05:21:22 one eole-schedule[180360]: Sortie de post schedule weekly avec un code d'erreur
sept. 13 05:21:22 one exim[186100]: 2019-09-13 05:21:22 1i8aH4-000mPc-FD <= root@one.lnord.ac-reunion.fr U=root P=local S=17596
sept. 13 05:21:22 one CRON[180352]: pam_unix(cron:session): session closed for user root

# systemctl list-units --all --state=inactive --type=service
  UNIT                                  LOAD      ACTIVE   SUB  DESCRIPTION
● auditd.service                        not-found inactive dead auditd.service
  bastion.service                       loaded    inactive dead Bastion firewall manager
● bind9.service                         not-found inactive dead bind9.service
  certbot.service                       loaded    inactive dead Certbot
  cgproxy.service                       loaded    inactive dead Cgroup management proxy
● clamav-daemon.service                 not-found inactive dead clamav-daemon.service
● console-screen.service                not-found inactive dead console-screen.service
  cron.service                          loaded    inactive dead Regular background program processing daemon
● devfsd.service                        not-found inactive dead devfsd.service
● display-manager.service               not-found inactive dead display-manager.service
  dm-event.service                      loaded    inactive dead Device-mapper event daemon
  dns-clean.service                     loaded    inactive dead Clean up any mess left by 0dns-up
  ead-server.service                    loaded    inactive dead EAD backend server
  ead-web.service                       loaded    inactive dead EAD web server
  emergency.service                     loaded    inactive dead Emergency Shell
  eoleflask.service                     loaded    inactive dead Eole flask server
  exim4.service                         loaded    inactive dead LSB: exim Mail Transport Agent
  ferme-firewall.service                loaded    inactive dead Fermeture du firewall
● fuse.service                          masked    inactive dead fuse.service
  getty-static.service                  loaded    inactive dead getty on tty2-tty6 if dbus and logind are not available
● greylist.service                      not-found inactive dead greylist.service
● iscsid.service                        not-found inactive dead iscsid.service
● kbd.service                           not-found inactive dead kbd.service
  libvirt-bin.service                   loaded    inactive dead Virtualization daemon
● libvirt-guests.service                masked    inactive dead libvirt-guests.service
● lvm2-activation.service               not-found inactive dead lvm2-activation.service
  lvm2-lvmpolld.service                 loaded    inactive dead LVM2 poll daemon
● mariadb.service                       not-found inactive dead mariadb.service
● mountkernfs.service                   masked    inactive dead mountkernfs.service
● mysql.service                         not-found inactive dead mysql.service
● network-manager.service               not-found inactive dead network-manager.service
● network-pre.service                   not-found inactive dead network-pre.service
● nfs-blkmap.service                    not-found inactive dead nfs-blkmap.service
  nfs-utils.service                     loaded    inactive dead NFS server and client services
  nginx.service                         loaded    inactive dead A high performance web server and a reverse proxy server
  ntp.service                           loaded    inactive dead LSB: Start NTP daemon
● nut-monitor.service                   not-found inactive dead nut-monitor.service
● nut-server.service                    masked    inactive dead nut-server.service
  opennebula-scheduler.service          loaded    inactive dead OpenNebula Cloud Scheduler Daemon
  opennebula.service                    loaded    inactive dead OpenNebula Cloud Controller Daemon
  openvswitch-nonetwork.service         loaded    inactive dead Open vSwitch Internal Unit
  openvswitch-switch.service            loaded    inactive dead Open vSwitch
  plymouth-quit-wait.service            loaded    inactive dead Hold until boot process finishes up
  plymouth-quit.service                 loaded    inactive dead Terminate Plymouth Boot Screen
  plymouth-read-write.service           loaded    inactive dead Tell Plymouth To Write Out Runtime Data
  plymouth-start.service                loaded    inactive dead Show Plymouth Boot Screen
● postgresql.service                    not-found inactive dead postgresql.service
  pppd-dns.service                      loaded    inactive dead Restore /etc/resolv.conf if the system crashed before the ppp link was sh
  rescue.service                        loaded    inactive dead Rescue Shell
● resolvconf.service                    not-found inactive dead resolvconf.service
  rpc-gssd.service                      loaded    inactive dead RPC security service for NFS client and server
  rpcbind.service                       loaded    inactive dead RPC bind portmap service
● spamassassin.service                  not-found inactive dead spamassassin.service
  systemd-ask-password-console.service  loaded    inactive dead Dispatch Password Requests to Console
  systemd-ask-password-plymouth.service loaded    inactive dead Forward Password Requests to Plymouth
  systemd-ask-password-wall.service     loaded    inactive dead Forward Password Requests to Wall
  systemd-binfmt.service                loaded    inactive dead Set Up Additional Binary Formats
  systemd-fsck-root.service             loaded    inactive dead File System Check on Root Device
  systemd-fsckd.service                 loaded    inactive dead File System Check Daemon to report status
  systemd-hwdb-update.service           loaded    inactive dead Rebuild Hardware Database
  systemd-initctl.service               loaded    inactive dead /dev/initctl Compatibility Daemon
  systemd-machine-id-commit.service     loaded    inactive dead Commit a transient machine-id on disk
  systemd-networkd.service              loaded    inactive dead Network Service
  systemd-rfkill.service                loaded    inactive dead Load/Save RF Kill Switch Status
● systemd-sysusers.service              not-found inactive dead systemd-sysusers.service
  systemd-timesyncd.service             loaded    inactive dead Network Time Synchronization
  systemd-tmpfiles-clean.service        loaded    inactive dead Cleanup of Temporary Directories
● systemd-update-done.service           not-found inactive dead systemd-update-done.service
  systemd-update-utmp-runlevel.service  loaded    inactive dead Update UTMP about System Runlevel Changes
● systemd-vconsole-setup.service        not-found inactive dead systemd-vconsole-setup.service
  ureadahead-stop.service               loaded    inactive dead Stop ureadahead data collection
  ureadahead.service                    loaded    inactive dead Read required files in advance
  z_stats.service                       loaded    inactive dead Agent zephir

#4 Updated by Anthony RAULT 5 months ago

Bonjour,
en faite c'est le Maj-Auto qui lance le reconfigure qui plante.

Cdlt

#5 Updated by Anthony RAULT 5 months ago

Bonjour,
je ne sais pas si c'est lié mais, sur un one de test, à la fin du reconfigure, l'erreur suivante appairait:

Erreur creole 3 : "{u'owner': u'creoled', u'val': 3}" est une valeur invalide pour l'option "Jour des tâches mensuelles la première semaine du mois (1 : lundi)" de type choix, seulement 1, 2, 3, 4, 5, 6 et 7 sont autorisés

Cdlt

#6 Updated by Gilles Grandgérard 4 months ago

  • Related to Demande #26920: Gestion upgrade du fichier extra/schedule added

#7 Updated by Gilles Grandgérard 4 months ago

  • Related to Tâche #19710: Le chargement des jours (weekday et montday) du schedule doivent tout le temps se charger added

#8 Updated by Joël Cuissinat about 1 month ago

  • Status changed from Nouveau to Classée sans suite

#9 Updated by Anthony RAULT 29 days ago

Bonjour,

Pourquoi ce changement!
Qu'en est-il de ce bug?
Actuellement nous migrons notre centaine de Hapy en 2.6 et nous ne pouvons mettre à jour en automatique ces serveurs.

Trouvez-vous cette situation normale?

Cordialement

Also available in: Atom PDF