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 26252200CFD for ; Wed, 6 Sep 2017 21:17:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24B7C1609E2; Wed, 6 Sep 2017 19:17:42 +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 1CEC61609C0 for ; Wed, 6 Sep 2017 21:17:40 +0200 (CEST) Received: (qmail 44060 invoked by uid 500); 6 Sep 2017 19:17:39 -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 44051 invoked by uid 99); 6 Sep 2017 19:17:39 -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, 06 Sep 2017 19:17:39 +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 18D8418B4B7 for ; Wed, 6 Sep 2017 19:17:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kkwG-QdB4dnC for ; Wed, 6 Sep 2017 19:17:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 25C8861042 for ; Wed, 6 Sep 2017 19:17:35 +0000 (UTC) Received: (qmail 44011 invoked by uid 99); 6 Sep 2017 19:17:34 -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 19:17:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B8EC8E97E0; Wed, 6 Sep 2017 19:17:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: emblemparade@apache.org To: commits@ariatosca.incubator.apache.org Message-Id: <3f20a0b2090b4948b35f48076ce14325@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ariatosca git commit: Requested fixes [Forced Update!] Date: Wed, 6 Sep 2017 19:17:33 +0000 (UTC) archived-at: Wed, 06 Sep 2017 19:17:42 -0000 Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-321-clearwater 0c3f53d80 -> b36d45010 (forced update) Requested fixes Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/b36d4501 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/b36d4501 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/b36d4501 Branch: refs/heads/ARIA-321-clearwater Commit: b36d450102e64ce884d831157e404bc2c9b4174d Parents: fe48186 Author: Tal Liron Authored: Wed Sep 6 08:38:56 2017 -0500 Committer: Tal Liron Committed: Wed Sep 6 14:17:26 2017 -0500 ---------------------------------------------------------------------- .travis.yml | 25 ++++++++++++--- README.rst | 33 +++++++++++--------- aria/modeling/service_instance.py | 26 --------------- examples/clearwater/scripts/bono/delete.sh | 2 ++ examples/clearwater/scripts/dime/delete.sh | 2 ++ examples/clearwater/scripts/ellis/delete.sh | 2 ++ examples/clearwater/scripts/homer/delete.sh | 2 ++ examples/clearwater/scripts/homestead/delete.sh | 2 ++ examples/clearwater/scripts/memento/delete.sh | 2 ++ examples/clearwater/scripts/ralf/delete.sh | 2 ++ examples/clearwater/scripts/sprout/delete.sh | 2 ++ examples/clearwater/scripts/vellum/delete.sh | 2 ++ tox.ini | 7 +++-- 13 files changed, 61 insertions(+), 48 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index a7362e7..e82ccc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,10 @@ sudo: false +dist: trusty + language: python -dist: precise python: - '2.7' @@ -29,15 +30,31 @@ env: - TOX_ENV=py26ssh - TOX_ENV=docs -install: +addons: + apt: + sources: + - sourceline: 'ppa:fkrull/deadsnakes' + packages: + - python2.6 + - python2.6-dev + +before_install: - pip install --upgrade pip - pip install --upgrade setuptools - pip install tox +# - pip install pythonbrew +# - pythonbrew_install +# - source "$HOME/.pythonbrew/etc/bashrc" +# - sudo apt install libsqlite3-dev +# - pythonbrew install 2.6.9 -j $(nproc) +# - pythonbrew symlink script: - - pip --version + - uname -a + - nproc - tox --version - - PYTEST_PROCESSES=1 tox -e $TOX_ENV + - PYTEST_PROCESSES=$(nproc) tox -e $TOX_ENV +# - PYTEST_PROCESSES=$(nproc) PY26="$HOME/.pythonbrew/bin/py2.6.9" tox -e $TOX_ENV # The PYTEST_PROCESSES environment var is used in tox.ini to override the --numprocesses argument # for PyTest's xdist plugin. The reason this is necessary is that conventional Travis environments http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/README.rst ---------------------------------------------------------------------- diff --git a/README.rst b/README.rst index c488335..6f8885c 100644 --- a/README.rst +++ b/README.rst @@ -36,26 +36,28 @@ To install ARIA directly from PyPI (using a ``wheel``), use:: pip install apache-ariatosca To install ARIA from source, download the source tarball from -`PyPI `__, extract and ``cd`` into the extract dir, and run:: +`PyPI `__, extract and ``cd`` into the extract dir, +and run:: pip install --upgrade pip setuptools pip install . -| The source package comes along with relevant examples, documentation, ``requirements.txt`` (for installing specifically the frozen dependencies' versions with which ARIA was tested) and more. -| +| The source package comes along with relevant examples, documentation, ``requirements.txt`` (for +| installing specifically the frozen dependencies' versions with which ARIA was tested) and more. | | ARIA has additional optional dependencies. These are required for running operations over SSH. -| Below are instructions on how to install these dependencies, including required system dependencies per OS. -| -| Note: These dependencies may have varying licenses which may not be compatible with Apache license 2.0. +| Below are instructions on how to install these dependencies, including required system +| dependencies per OS. | +| Note: These dependencies may have varying licenses which may not be compatible with Apache license +| 2.0. -**Ubuntu/Debian** (tested on Ubuntu14.04, Ubuntu16.04):: +**Ubuntu/Debian** (tested on Ubuntu 14.04, Ubuntu 16.04):: apt-get install -y python-dev gcc libffi-dev libssl-dev pip install apache-ariatosca[ssh] -**Centos** (tested on Centos6.6, Centos7):: +**CentOS/Fedora** (tested on CentOS 6.6, CentOS 7):: yum install -y python-devel gcc libffi-devel openssl-devel pip install apache-ariatosca[ssh] @@ -65,7 +67,7 @@ To install ARIA from source, download the source tarball from pacman -Syu --noconfirm python2 gcc libffi openssl pip2 install apache-ariatosca[ssh] -**Windows** (tested on Win10):: +**Windows** (tested on Windows 10):: # no additional system requirements are needed pip install apache-ariatosca[ssh] @@ -76,7 +78,7 @@ To install ARIA from source, download the source tarball from -To install ``pip``, either use your distro's package management system, or run:: +To install ``pip``, either use your operating system's package management system, or run:: wget http://bootstrap.pypa.io/get-pip.py python get-pip.py @@ -117,7 +119,8 @@ Contribution You are welcome and encouraged to participate and contribute to the ARIA project. Please see our guide to -`Contributing to ARIA `__. +`Contributing to ARIA +`__. Feel free to also provide feedback on the mailing lists (see `Resources <#user-content-resources>`__ section). @@ -126,12 +129,12 @@ section). Resources --------- -- `ARIA homepage `__ -- `ARIA wiki `__ +- `ARIA homepage `__ +- `ARIA wiki `__ - `Issue tracker `__ -- Dev mailing list: dev@ariatosca.incubator.apache.org -- User mailing list: user@ariatosca.incubator.apache.org +- Dev mailing list: dev@ariatosca.incubator.apache.org +- User mailing list: user@ariatosca.incubator.apache.org Subscribe by sending a mail to ``-subscribe@ariatosca.incubator.apache.org`` (e.g. ``dev-subscribe@ariatosca.incubator.apache.org``). See information on how to subscribe to mailing http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/aria/modeling/service_instance.py ---------------------------------------------------------------------- diff --git a/aria/modeling/service_instance.py b/aria/modeling/service_instance.py index df16bb8..01c4da9 100644 --- a/aria/modeling/service_instance.py +++ b/aria/modeling/service_instance.py @@ -258,32 +258,6 @@ class ServiceBase(InstanceModelMixin): return None - def satisfy_requirements(self): - satisfied = True - for node in self.nodes.itervalues(): - if not node.satisfy_requirements(): - satisfied = False - return satisfied - - def validate_capabilities(self): - satisfied = True - for node in self.nodes.itervalues(): - if not node.validate_capabilities(): - satisfied = False - return satisfied - - def find_hosts(self): - for node in self.nodes.itervalues(): - node.find_host() - - def configure_operations(self): - for node in self.nodes.itervalues(): - node.configure_operations() - for group in self.groups.itervalues(): - group.configure_operations() - for operation in self.workflows.itervalues(): - operation.configure() - @property def as_raw(self): return collections.OrderedDict(( http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/bono/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/bono/delete.sh b/examples/clearwater/scripts/bono/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/bono/delete.sh +++ b/examples/clearwater/scripts/bono/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/dime/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/dime/delete.sh b/examples/clearwater/scripts/dime/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/dime/delete.sh +++ b/examples/clearwater/scripts/dime/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/ellis/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/ellis/delete.sh b/examples/clearwater/scripts/ellis/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/ellis/delete.sh +++ b/examples/clearwater/scripts/ellis/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/homer/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/homer/delete.sh b/examples/clearwater/scripts/homer/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/homer/delete.sh +++ b/examples/clearwater/scripts/homer/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/homestead/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/homestead/delete.sh b/examples/clearwater/scripts/homestead/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/homestead/delete.sh +++ b/examples/clearwater/scripts/homestead/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/memento/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/memento/delete.sh b/examples/clearwater/scripts/memento/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/memento/delete.sh +++ b/examples/clearwater/scripts/memento/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/ralf/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/ralf/delete.sh b/examples/clearwater/scripts/ralf/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/ralf/delete.sh +++ b/examples/clearwater/scripts/ralf/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/sprout/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/sprout/delete.sh b/examples/clearwater/scripts/sprout/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/sprout/delete.sh +++ b/examples/clearwater/scripts/sprout/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/examples/clearwater/scripts/vellum/delete.sh ---------------------------------------------------------------------- diff --git a/examples/clearwater/scripts/vellum/delete.sh b/examples/clearwater/scripts/vellum/delete.sh index 5cae7ef..73485c3 100644 --- a/examples/clearwater/scripts/vellum/delete.sh +++ b/examples/clearwater/scripts/vellum/delete.sh @@ -13,3 +13,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +TODO http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b36d4501/tox.ini ---------------------------------------------------------------------- diff --git a/tox.ini b/tox.ini index ff71e05..765435a 100644 --- a/tox.ini +++ b/tox.ini @@ -13,6 +13,7 @@ [tox] envlist=py27,py26,py27e2e,py26e2e,pywin,py27ssh,pylint_code,pylint_tests,docs processes={env:PYTEST_PROCESSES:auto} +py26={env:PY26:python2.6} [testenv] whitelist_externals= @@ -28,11 +29,11 @@ deps= --requirement tests/requirements.txt basepython= - py26: python2.6 + py26: {[tox]py26} py27: python2.7 - py26e2e: python2.6 + py26e2e: {[tox]py26} py27e2e: python2.7 - py26ssh: python2.6 + py26ssh: {[tox]py26} py27ssh: python2.7 pywin: {env:PYTHON:}\python.exe pylint_code: python2.7