Details

    • Type: Improvement
    • Status: Deferred
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Profile-YAML
    • Labels:
      None
    • Proposal:
      Hide

      node_templates:
      mysql:
      type: tosca.nodes.DBMS.MySQL
      properties:

      1. ...
        requirements:
      • host: db_server
        interfaces:
        Standard:
        configure:
        implementation: scripts/my_own_configure.sh
        timeout: 30 # timeout in seconds
        retry: 3 # If operation fails (exit code != 0), TOSCA container should retry
      Show
      node_templates: mysql: type: tosca.nodes.DBMS.MySQL properties: ... requirements: host: db_server interfaces: Standard: configure: implementation: scripts/my_own_configure.sh timeout: 30 # timeout in seconds retry: 3 # If operation fails (exit code != 0), TOSCA container should retry

      Description

      1. Allow the user to define a timeout for a single operation execution. On expiration, the TOSCA container will mark the execution as failed with an indication that the cause was timeout.
      We can choose a default time unit for this value, we can decide of a pattern "20 m" or we can have another keyname "timeout_unit" that will describe it.
      IMHO, I think that seconds is the minimal time unit that will be required and it is a good default.

      2. Allow the user to define a retry for an operation execution.
      If an operation fails to execute (exit code != 0 or timeout), the TOSCA container will execute the operation again until reaching the number of retries.

        Attachments

          Activity

            People

            • Assignee:
              MosheElisha Moshe Elisha (Inactive)
              Reporter:
              MosheElisha Moshe Elisha (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: