Project

General

Profile

Tâche #22220

Scénario #21405: Epic 1: Interroger l'état Salt et renvoyer le résultat à la demande

Réusinage du code et des commits

Added by Daniel Dehennin over 2 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/28/2017
Due date:
% Done:

100%

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

Associated revisions

Revision 809de6b1 (diff)
Added by Daniel Dehennin over 2 years ago

SaltStack: controller must be easily extendable

Refactor executor code in its own submodule to permit addition of new
feature without too much pain.

  • services/saltmaster/src/salt_ctrl/salt_exec.py: code of the executor.
  • services/saltmaster/src/salt_ctrl/salt_ctrl.py (_build_CallResult):
    new utility to wrap responses in “CallResult”.
    (SaltRunner): rename Salt controller class.
    Initialise a new executor object and register all its exposed
    methods.

Ref: #22131

Revision 6f7fc40e (diff)
Added by Fabrice Barconnière over 2 years ago

SaltStack: exec_command must be async and v1.exec.salt response must be in a namespace

  • services/common/messages/v1/exec.salt.yml : describe “exec.salt“ response and related messages
  • services/saltmaster/src/salt_ctrl/salt_exec.py : “exec_command” method mapped to “exec.salt” crossbar message.

ref #22220

History

#1 Updated by Daniel Dehennin over 2 years ago

  • Estimated time set to 4.00 h
  • Remaining (hours) set to 4.0

#2 Updated by Daniel Dehennin over 2 years ago

  • Subject changed from Réusinage du code et des commits to Réusinage du code et des commits
  • Assigned To set to Daniel Dehennin

#3 Updated by Daniel Dehennin over 2 years ago

  • Status changed from Nouveau to En cours

#4 Updated by Fabrice Barconnière over 2 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 4.0 to 2.0

#5 Updated by Daniel Dehennin over 2 years ago

  • Remaining (hours) changed from 2.0 to 4.0

#6 Updated by Daniel Dehennin over 2 years ago

  • Remaining (hours) changed from 4.0 to 0.0

#7 Updated by Scrum Master over 2 years ago

  • Status changed from En cours to Résolu

#8 Updated by Lionel Morin over 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF