Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-1180

Modify extension execution structure in Python Cartridge Agent

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0 RC3
    • Cartridge Agent
    • None

    Description

      Currently we have bash scripts as extensions however if we could introduce a python extension layer in between that would make it much easier to implement extension logic.

      The current extension setup is as follows. A set of bash scripts are available in the <PCA_HOME>/extensions. The file name of the extension that should be executed for each event is defined in the agent configuration (agent.conf in PCA, stratos.sh in JCA). The event handler executes these bash scripts as new shell commands when the respective events are received.

      We can introduce a layer between the bash scripts and the python code that calls them. The names of the python scripts corresponding to each event can be defined as before.

      Additionally we can extend this behavior to the Git artifact management component of the PCA. The contract that the artifact management component should adhere to is "checkout" and "push". We can separate the current python code relating to these two operations in to two extension scripts.

      Attachments

        Activity

          People

            chamilad Chamila de Alwis
            chamilad Chamila de Alwis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: