Projet

Général

Profil

Tâche #23774

Scénario #23699: Créer l'application "Déploiement" (working title) dans Zéphir UI

Corriger le problème d'insertion du retour d'exécution d'un job

Ajouté par William Petit il y a environ 6 ans. Mis à jour il y a environ 6 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
23/04/2018
Echéance:
% réalisé:

0%

Restant à faire (heures):
0.0

Description

Après l'envoi d'un message 'v1.execution.salt.configuration.deploy', le message d'erreur suivant apparaît dans les logs de Zéphir:

postgres_1             | 2018-04-26T09:59:43.195585253Z 2018-04-26 09:59:43.195 UTC [11430] ERROR:  duplicate key value violates unique constraint "jids_pkey" 
postgres_1             | 2018-04-26T09:59:43.195674427Z 2018-04-26 09:59:43.195 UTC [11430] DETAIL:  Key (jid)=(20180426095942815135) already exists.
postgres_1             | 2018-04-26T09:59:43.206001683Z 2018-04-26 09:59:43.195 UTC [11430] STATEMENT:  INSERT INTO jids
postgres_1             | 2018-04-26T09:59:43.206030727Z                    (jid, load)
postgres_1             | 2018-04-26T09:59:43.206068786Z                     VALUES ('20180426095942815135', '{"fun_args": ["eole.configuration.deploy"], "jid": "20180426095942815135", "return": {"file_|-Deploy config.eol_|-/etc/eole/config.eol_|-managed": {"comment": "Source file salt://eole/configuration/files/1/config.eol not found", "pchanges": {}, "name": "/etc/eole/config.eol", "start_time": "12:58:43.001456", "result": false, "duration": 4.952, "__run_num__": 1, "__sls__": "eole.configuration.deploy", "changes": {}, "__id__": "Deploy config.eol"}, "file_|-Deploy aggregate.xml_|-/etc/eole/aggregate.xml_|-managed": {"comment": "Source file salt://eole/configuration/files/1/aggregate.xml not found", "pchanges": {}, "name": "/etc/eole/aggregate.xml", "start_time": "12:58:42.975258", "result": false, "duration": 25.946, "__run_num__": 0, "__sls__": "eole.configuration.deploy", "changes": {}, "__id__": "Deploy aggregate.xml"}}, "retcode": 2, "success": true, "cmd": "_return", "_stamp": "2018-04-26T09:59:43.185191", "fun": "state.apply", "id": "1", "out": "highstate"}')

Révisions associées

Révision 67864c9c (diff)
Ajouté par William Petit il y a environ 6 ans

Get around 'pgjsonb' saltmaster's return limitations

The current 'pgjsonb' returner do not enable us to detect the state of a job by
looking into the 'jids' table (see
https://github.com/saltstack/salt/issues/47327).

This change adds a 'completed' column to the query result that circumvent
this limitation.

ref #23774

Révision 0e3a1257 (diff)
Ajouté par William Petit il y a environ 6 ans

Complete execution.salt.jobs.list results with job status

ref #23730
ref #23774

Révision b66ffbe0 (diff)
Ajouté par William Petit il y a environ 6 ans

Properly extract jobs status in jobs listing query

ref #23774

Révision ff7a6f5b (diff)
Ajouté par William Petit il y a environ 6 ans

Properly extract jobs status in jobs listing query

ref #23774

Révision 80830770 (diff)
Ajouté par William Petit il y a environ 6 ans

Fix job status display

ref #23774
ref #23699

Historique

#1 Mis à jour par William Petit il y a environ 6 ans

  • Description mis à jour (diff)

#2 Mis à jour par William Petit il y a environ 6 ans

  • Statut changé de Nouveau à En cours

#3 Mis à jour par William Petit il y a environ 6 ans

  • Assigné à mis à William Petit

#4 Mis à jour par William Petit il y a environ 6 ans

  • Statut changé de En cours à Nouveau
  • Tâche parente changé de #23735 à #23699

#5 Mis à jour par William Petit il y a environ 6 ans

  • Statut changé de Nouveau à En cours

#6 Mis à jour par William Petit il y a environ 6 ans

Problème lié au bug upstream https://github.com/saltstack/salt/issues/22171

#7 Mis à jour par William Petit il y a environ 6 ans

  • Statut changé de En cours à Résolu

#8 Mis à jour par Joël Cuissinat il y a environ 6 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF