Project

General

Profile

Tâche #29916

Scénario #30934: Traitement express MEN (46-48)

EOLE 2.8.0 : logs de salt ead3 dans /var/log/syslog + traceback workstation

Added by Fabrice Barconnière over 1 year ago. Updated 9 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/21/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Chaque seconde, cette ligne est ajoutée dans /var/log/syslog :

2020-04-15T13:17:41.889733+02:00 zephir.ac-test.fr salt-minion-ead3[salt.minion      ][CRITICAL] Unexpected error while connecting to 127.0.0.1#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/salt/minion.py", line 1037, in _connect_minion#012    yield minion.connect_master(failed=failed)#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/gen.py", line 1056, in run#012    value = future.result()#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/concurrent.py", line 239, in result#012    raise_exc_info(self._exc_info)#012  File "<string>", line 4, in raise_exc_info#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/gen.py", line 1064, in run#012    yielded = self.gen.throw(*exc_info)#012  File "/usr/lib/python3/dist-packages/salt/minion.py", line 1236, in connect_master#012    yield self._post_master_init(master)#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/gen.py", line 1056, in run#012    value = future.result()#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/concurrent.py", line 239, in result#012    raise_exc_info(self._exc_info)#012  File "<string>", line 4, in raise_exc_info#012  File "/usr/lib/python3/dist-packages/salt/ext/tornado/gen.py", line 1070, in run#012    yielded = self.gen.send(value)#012  File "/usr/lib/python3/dist-packages/salt/minion.py", line 1279, in _post_master_init#012    self.schedule = salt.utils.schedule.Schedule(#012  File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 99, in __new__#012    instance.__singleton_init__(opts, functions,#012  File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 152, in __singleton_init__#012    self.time_offset = self.functions.get('timezone.get_offset', lambda: '0000')()#012  File "/usr/lib/python3/dist-packages/salt/modules/timezone.py", line 234, in get_offset#012    if 'AIX' not in __grains__['os_family']:#012  File "/usr/lib/python3/dist-packages/salt/utils/context.py", line 236, in __getitem__#012    return self._dict()[key]#012KeyError: 'os_family'

Associated revisions

Revision 45520ad3 (diff)
Added by Joël Cuissinat 11 months ago

  • dumpconfig.py : portage python3

Ref: #29916

Revision f765df9c (diff)
Added by Daniel Dehennin 10 months ago

We need samba for the schedule task extracting Veyon groups

Only add a weak dependency to start the minion after samba but don't
fail if the dependency doesn't exist or failed to start.

Ref: #29916

History

#1 Updated by Fabrice Barconnière over 1 year ago

  • Subject changed from EOLE 2.8.0 : logs de salt ead3 cdans /var/log/syslog to EOLE 2.8.0 : logs de salt ead3 cdans /var/log/syslog (constaté sur Zéphir)

#2 Updated by Fabrice Barconnière over 1 year ago

  • Parent task changed from #29849 to #29783

#3 Updated by Joël Cuissinat 11 months ago

  • Parent task changed from #29783 to #30863

C'est toujours le cas, mais c'est peut-être le comportement souhaité que les logs [ERROR ] et [CRITICAL] remontent dans le syslog général ?

#4 Updated by Joël Cuissinat 11 months ago

  • Subject changed from EOLE 2.8.0 : logs de salt ead3 cdans /var/log/syslog (constaté sur Zéphir) to EOLE 2.8.0 : logs de salt ead3 cdans /var/log/syslog + traceback workstation

Idem sur Scribe, où l'on obtient cette ligne à l'arrêt du service eole-workstation-manager :

2020-11-03T14:29:39.384310+01:00 scribe.domscribe.ac-test.fr eole-workstation-manager[salt.utils.process][ERROR   ] [Errno 3] No such process#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/salt/utils/process.py", line 779, in kill_children#012    os.kill(pid, signal.SIGKILL)#012ProcessLookupError: [Errno 3] No such process

Cela ne me semble pas normal d'ailleurs !

#5 Updated by Joël Cuissinat 11 months ago

  • Subject changed from EOLE 2.8.0 : logs de salt ead3 cdans /var/log/syslog + traceback workstation to EOLE 2.8.0 : logs de salt ead3 dans /var/log/syslog + traceback workstation

#6 Updated by Daniel Dehennin 11 months ago

Sur aca.scribe-2.8.0 je n’ai que ce traceback dans les logs eole-workstation-manager:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 166, in render_tmpl
    output = render_str(tmplstr, context, tmplpath)
  File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 424, in render_jinja_tmpl
    raise SaltRenderError(
salt.exceptions.SaltRenderError: Problem running salt function in Jinja template: Failed to bind to LDAP server ldap://addc.domscribe.ac-test.fr:389 as cn=eole-workstation-reader,cn=Users,dc=domscribe,dc=ac-test,dc=fr: {'desc': "Can't contact LDAP server", 'errno': 107, 'info': 'Transport endpoint is not connected'}; line 10

Mais c’est totalement normale car le LXC est arrêté à ce moment là.

Nous pourrions ajouter une dépendance à eole-wait-addc pour eole-workstation-manager.

#7 Updated by Daniel Dehennin 11 months ago

Daniel Dehennin a écrit :

Nous pourrions ajouter une dépendance à eole-wait-addc pour eole-workstation-manager.

Une dépendance non forte car le service est fonctionnel sans le conteneur :

Wants=eole-wait-addc.service
After=eole-wait-addc.service

Cela ne résoudra pas totalement le soucis car durant la première instance, le compte d’accès à l’annuaire n’est créé qu’en postservice et son absence entraîne le message d’erreur suivant :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 166, in render_tmpl
    output = render_str(tmplstr, context, tmplpath)
  File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 424, in render_jinja_tmpl
    raise SaltRenderError(
salt.exceptions.SaltRenderError: Problem running salt function in Jinja template: Failed to bind to LDAP server ldap://addc.domscribe.ac-test.fr:389 as cn=eole-workstation-reader,cn=Users,dc=domscribe,dc=ac-test,dc=fr: {'desc': 'Invalid credentials', 'info': '80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1'}; line 10

Mais au moins, au reconfigure suivant il n’y aura plus d’erreur.

#8 Updated by Gilles Grandgérard 11 months ago

  • Parent task changed from #30863 to #30934

#9 Updated by Daniel Dehennin 10 months ago

  • Status changed from Nouveau to En cours

#10 Updated by Daniel Dehennin 10 months ago

  • Assigned To set to Daniel Dehennin

#11 Updated by Daniel Dehennin 10 months ago

Je ne vois pas comment reproduire l’erreur de salt-minion-ead3.

#12 Updated by Daniel Dehennin 10 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#13 Updated by Joël Cuissinat 9 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0
~/git/eole-workstation-manager$ git branch -r --contains   f765df9cb5
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

Also available in: Atom PDF