Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A50AE200CFD for ; Wed, 6 Sep 2017 19:53:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A37F01609BB; Wed, 6 Sep 2017 17:53:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7B3351609C5 for ; Wed, 6 Sep 2017 19:53:38 +0200 (CEST) Received: (qmail 14213 invoked by uid 500); 6 Sep 2017 17:53:37 -0000 Mailing-List: contact commits-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list commits@ariatosca.incubator.apache.org Received: (qmail 14204 invoked by uid 99); 6 Sep 2017 17:53:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 17:53:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 00BB7CCCD3 for ; Wed, 6 Sep 2017 17:53:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.022 X-Spam-Level: X-Spam-Status: No, score=-3.022 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dLqT79wIKng4 for ; Wed, 6 Sep 2017 17:53:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 941F061267 for ; Wed, 6 Sep 2017 17:53:25 +0000 (UTC) Received: (qmail 13972 invoked by uid 99); 6 Sep 2017 17:53:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 17:53:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 545B2F564C; Wed, 6 Sep 2017 17:53:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: arthurberezin@apache.org To: commits@ariatosca.incubator.apache.org Date: Wed, 06 Sep 2017 17:53:32 -0000 Message-Id: <823a3d48e80748d28e25476a6c404448@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [10/51] [partial] incubator-ariatosca-website git commit: Fixing workdir rm bug archived-at: Wed, 06 Sep 2017 17:53:40 -0000 http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/b53e431b/_site/docs/html/aria.orchestrator.workflows.builtin.html ---------------------------------------------------------------------- diff --git a/_site/docs/html/aria.orchestrator.workflows.builtin.html b/_site/docs/html/aria.orchestrator.workflows.builtin.html new file mode 100644 index 0000000..118c973 --- /dev/null +++ b/_site/docs/html/aria.orchestrator.workflows.builtin.html @@ -0,0 +1,461 @@ + + + + + + + + + + + aria.orchestrator.workflows.builtin — ARIA TOSCA 0.1.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

aria.orchestrator.workflows.builtin

+

Built-in workflows.

+
+
+aria.orchestrator.workflows.builtin.install(ctx, **workflow_parameters)
+

Built-in install workflow.

+
+ +
+
+aria.orchestrator.workflows.builtin.uninstall(ctx, **workflow_parameters)
+

Built-in uninstall workflow.

+
+ +
+
+aria.orchestrator.workflows.builtin.start(ctx, **workflow_parameters)
+

Built-in start workflow.

+
+ +
+
+aria.orchestrator.workflows.builtin.stop(ctx, **workflow_parameters)
+

Built-in stop workflow.

+
+ +
+

aria.orchestrator.workflows.builtin.execute_operation

+

Built-in operation execution Workflow.

+
+
+aria.orchestrator.workflows.builtin.execute_operation.execute_operation(ctx, **workflow_parameters)
+

Built-in operation execution Workflow.

+ +++ + + + + + +
Parameters:
    +
  • workflow_context – workflow context
  • +
  • graph – graph which will describe the workflow
  • +
  • operation – operation name to execute
  • +
  • operation_kwargs
  • +
  • run_by_dependency_order
  • +
  • type_names
  • +
  • node_template_ids
  • +
  • node_ids
  • +
  • kwargs
  • +
+
Returns:

+
+
+ +
+
+

aria.orchestrator.workflows.builtin.heal

+

Built-in heal workflow.

+
+
+aria.orchestrator.workflows.builtin.heal.heal(ctx, **workflow_parameters)
+

Built-in heal workflow..

+ +++ + + + + + +
Parameters:
    +
  • ctx – workflow context
  • +
  • graph – graph which will describe the workflow.
  • +
  • node_id – ID of the node to heal
  • +
+
Returns:

+
+
+ +
+
+aria.orchestrator.workflows.builtin.heal.heal_install(ctx, **workflow_parameters)
+

Install phase of the heal mechanism.

+ +++ + + + +
Parameters:
    +
  • ctx – workflow context
  • +
  • graph – task graph to edit.
  • +
  • failing_nodes – failing nodes to heal
  • +
  • targeted_nodes – targets of the relationships where the failing node are
  • +
+
+
+ +
+
+aria.orchestrator.workflows.builtin.heal.heal_uninstall(ctx, **workflow_parameters)
+

Uninstall phase of the heal mechanism.

+ +++ + + + +
Parameters:
    +
  • ctx – workflow context
  • +
  • graph – task graph to edit
  • +
  • failing_nodes – failing nodes to heal
  • +
  • targeted_nodes – targets of the relationships where the failing node are
  • +
+
+
+ +
+
+

aria.orchestrator.workflows.builtin.install

+

Built-in install workflow.

+
+
+aria.orchestrator.workflows.builtin.install.install(ctx, **workflow_parameters)
+

Built-in install workflow.

+
+ +
+
+

aria.orchestrator.workflows.builtin.start

+

Built-in start workflow.

+
+
+aria.orchestrator.workflows.builtin.start.start(ctx, **workflow_parameters)
+

Built-in start workflow.

+
+ +
+
+

aria.orchestrator.workflows.builtin.stop

+

Built-in stop workflow.

+
+
+aria.orchestrator.workflows.builtin.stop.stop(ctx, **workflow_parameters)
+

Built-in stop workflow.

+
+ +
+
+

aria.orchestrator.workflows.builtin.uninstall

+

Built-in uninstall workflow.

+
+
+aria.orchestrator.workflows.builtin.uninstall.uninstall(ctx, **workflow_parameters)
+

Built-in uninstall workflow.

+
+ +
+
+

aria.orchestrator.workflows.builtin.workflows

+

TSOCA normative lifecycle workflows.

+
+
+aria.orchestrator.workflows.builtin.workflows.install_node(ctx, **workflow_parameters)
+
+ +
+
+aria.orchestrator.workflows.builtin.workflows.uninstall_node(ctx, **workflow_parameters)
+
+ +
+
+aria.orchestrator.workflows.builtin.workflows.start_node(ctx, **workflow_parameters)
+
+ +
+
+aria.orchestrator.workflows.builtin.workflows.stop_node(ctx, **workflow_parameters)
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/b53e431b/_site/docs/html/aria.orchestrator.workflows.executor.html ---------------------------------------------------------------------- diff --git a/_site/docs/html/aria.orchestrator.workflows.executor.html b/_site/docs/html/aria.orchestrator.workflows.executor.html new file mode 100644 index 0000000..a9d0d93 --- /dev/null +++ b/_site/docs/html/aria.orchestrator.workflows.executor.html @@ -0,0 +1,393 @@ + + + + + + + + + + + aria.orchestrator.workflows.executor — ARIA TOSCA 0.1.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

aria.orchestrator.workflows.executor

+

Task executors.

+
+

aria.orchestrator.workflows.executor.base

+

Base class for task executors.

+
+
+class aria.orchestrator.workflows.executor.base.BaseExecutor(*args, **kwargs)
+

Bases: aria.logger.LoggerMixin

+

Base class for task executors.

+
+
+close()
+

Closes the executor.

+
+ +
+
+execute(ctx)
+

Executes a task.

+ +++ + + + +
Parameters:task – task to execute
+
+ +
+
+terminate(ctx)
+

Terminate the executing task +:return:

+
+ +
+ +
+
+class aria.orchestrator.workflows.executor.base.StubTaskExecutor(*args, **kwargs)
+

Bases: aria.orchestrator.workflows.executor.base.BaseExecutor

+
+
+execute(ctx, *args, **kwargs)
+
+ +
+ +
+
+

aria.orchestrator.workflows.executor.celery

+

Celery task executor.

+
+
+class aria.orchestrator.workflows.executor.celery.CeleryExecutor(app, *args, **kwargs)
+

Bases: aria.orchestrator.workflows.executor.base.BaseExecutor

+

Celery task executor.

+
+
+close()
+
+ +
+ +
+
+

aria.orchestrator.workflows.executor.dry

+

Dry task executor.

+
+
+class aria.orchestrator.workflows.executor.dry.DryExecutor(*args, **kwargs)
+

Bases: aria.orchestrator.workflows.executor.base.BaseExecutor

+

Dry task executor: prints task information without causing any side effects.

+
+
+execute(ctx)
+
+ +
+ +
+
+

aria.orchestrator.workflows.executor.process

+

Sub-process task executor.

+
+
+class aria.orchestrator.workflows.executor.process.ProcessExecutor(plugin_manager=None, python_path=None, *args, **kwargs)
+

Bases: aria.orchestrator.workflows.executor.base.BaseExecutor

+

Sub-process task executor.

+
+
+close()
+
+ +
+
+terminate(task_id)
+
+ +
+ +
+
+

aria.orchestrator.workflows.executor.thread

+

Thread task executor.

+
+
+class aria.orchestrator.workflows.executor.thread.ThreadExecutor(pool_size=1, *args, **kwargs)
+

Bases: aria.orchestrator.workflows.executor.base.BaseExecutor

+

Thread task executor.

+

It’s easier writing tests using this executor rather than the full-blown sub-process executor.

+

Note: This executor is incapable of running plugin operations.

+
+
+close()
+
+ +
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ariatosca-website/blob/b53e431b/_site/docs/html/aria.orchestrator.workflows.html ---------------------------------------------------------------------- diff --git a/_site/docs/html/aria.orchestrator.workflows.html b/_site/docs/html/aria.orchestrator.workflows.html new file mode 100644 index 0000000..0e962ac --- /dev/null +++ b/_site/docs/html/aria.orchestrator.workflows.html @@ -0,0 +1,395 @@ + + + + + + + + + + + aria.orchestrator.workflows — ARIA TOSCA 0.1.1 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + + + +
+
+
+
+ +
+

aria.orchestrator.workflows

+

Workflows package.

+ +
+

aria.orchestrator.workflows.exceptions

+

Workflow exceptions.

+
+
+exception aria.orchestrator.workflows.exceptions.AriaEngineError
+

Bases: aria.exceptions.AriaError

+

Raised by the workflow engine.

+
+ +
+
+exception aria.orchestrator.workflows.exceptions.ExecutorException
+

Bases: aria.exceptions.AriaError

+

General executor exception.

+
+ +
+
+exception aria.orchestrator.workflows.exceptions.OperationNotFoundException
+

Bases: aria.orchestrator.workflows.exceptions.TaskCreationException

+

Could not find an operation on the node or relationship.

+
+ +
+
+exception aria.orchestrator.workflows.exceptions.PluginNotFoundException
+

Bases: aria.orchestrator.workflows.exceptions.TaskCreationException

+

Could not find a plugin matching the plugin specification.

+
+ +
+
+exception aria.orchestrator.workflows.exceptions.ProcessException(command, stderr=None, stdout=None, return_code=None)
+

Bases: aria.orchestrator.workflows.exceptions.ExecutorException

+

Raised when subprocess execution fails.

+

Process class Exception +:param list command: child process command +:param str message: custom message +:param str stderr: child process stderr +:param str stdout: child process stdout +:param int return_code: child process exit code

+
+
+explanation
+

Describes the error in detail

+
+ +
+ +
+
+exception aria.orchestrator.workflows.exceptions.TaskCreationException
+

Bases: aria.orchestrator.workflows.exceptions.TaskException

+

Could not create the task.

+
+ +
+
+exception aria.orchestrator.workflows.exceptions.TaskException
+

Bases: aria.exceptions.AriaError

+

Raised by the task.

+
+ +
+ +
+

aria.orchestrator.workflows.core.graph_compiler

+
+
+class aria.orchestrator.workflows.core.graph_compiler.GraphCompiler(ctx, default_executor)
+

Bases: object

+
+
+compile(task_graph, start_stub_type='start_workflow', end_stub_type='end_workflow', depends_on=())
+

Translates the user graph to the execution graph +:param task_graph: The user’s graph +:param start_stub_type: internal use +:param end_stub_type: internal use +:param depends_on: internal use

+
+ +
+ +
+
+

aria.orchestrator.workflows.core.engine

+

Workflow execution.

+
+
+class aria.orchestrator.workflows.core.engine.Engine(executors, **kwargs)
+

Bases: aria.logger.LoggerMixin

+

Executes workflows.

+
+
+static cancel_execution(ctx)
+

Send a cancel request to the engine. If execution already started, execution status +will be modified to cancelling status. If execution is in pending mode, execution status +will be modified to cancelled directly.

+
+ +
+
+execute(ctx, resuming=False)
+

Executes the workflow.

+
+ +
+ +
+ +
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file