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 CAAE8200C54 for ; Wed, 12 Apr 2017 15:22:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C92EA160BA8; Wed, 12 Apr 2017 13:22:46 +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 1E653160B8A for ; Wed, 12 Apr 2017 15:22:45 +0200 (CEST) Received: (qmail 56771 invoked by uid 500); 12 Apr 2017 13:22:45 -0000 Mailing-List: contact dev-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 dev@ariatosca.incubator.apache.org Received: (qmail 56721 invoked by uid 99); 12 Apr 2017 13:22:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2017 13:22:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BFE6B181059 for ; Wed, 12 Apr 2017 13:22:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NU5Pa0AkIAL7 for ; Wed, 12 Apr 2017 13:22:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 638525FC4A for ; Wed, 12 Apr 2017 13:22:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 02B17E095D for ; Wed, 12 Apr 2017 13:22:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B499E24069 for ; Wed, 12 Apr 2017 13:22:41 +0000 (UTC) Date: Wed, 12 Apr 2017 13:22:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@ariatosca.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARIA-92) Execution plugin operations default mappings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Apr 2017 13:22:47 -0000 [ https://issues.apache.org/jira/browse/ARIA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15965831#comment-15965831 ] ASF GitHub Bot commented on ARIA-92: ------------------------------------ Github user ran-z commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/95#discussion_r111147585 --- Diff: aria/modeling/service_instance.py --- @@ -522,17 +524,10 @@ def properties(cls): __mapper_args__ = {'version_id_col': version} # Enable SQLAlchemy automatic version counting @property - def ip(self): - # TODO: totally broken - if not self.host_fk: - return None - host_node = self.host - if 'ip' in host_node.runtime_properties: # pylint: disable=no-member - return host_node.runtime_properties['ip'] # pylint: disable=no-member - host_node = host_node.node_template # pylint: disable=no-member - host_ip_property = host_node.properties.get('ip') - if host_ip_property: - return host_ip_property.value + def host_address(self): + if self.host: + if self.host.runtime_properties: + return self.host.runtime_properties.get('host_address') --- End diff -- while I understand your reasoning to using "host_address" instead of "ip" everywhere, the actual runtime property that gets set by plugins remains to be "ip". this can't change at this stage. > Execution plugin operations default mappings > -------------------------------------------- > > Key: ARIA-92 > URL: https://issues.apache.org/jira/browse/ARIA-92 > Project: AriaTosca > Issue Type: Story > Reporter: Ran Ziv > Assignee: Tal Liron > > The execution plugin serves as the default plugin, i.e. if no other plugin was specified, it'll be used to execute scripts in operations. > These scripts will currently only execute locally. The execution plugin also supports running scripts on remote machines (via SSH). > One option is to have the parser recognize whether the node in question is contained inside a host node, in which case the script should be executed remotely (by default, yet overridable by specifying the full plugin operation mapping), and if not then it should be executed locally. > Another option is to have the user specify it using special syntax, e.g.: > "local > script.sh" and "remote > script.sh" -- This message was sent by Atlassian JIRA (v6.3.15#6346)