[jira] [Commented] (ARIA-88) Add blueprint examples

2017-02-19 Thread Ran Ziv (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873778#comment-15873778
 ] 

Ran Ziv commented on ARIA-88:
-

The royal decree did mention "henceforth". If only it were that we could 
prosecute all past violators...
Alas, it is time for reconciliation, and as such they've been all issued with 
pardons :)

> Add blueprint examples
> --
>
> Key: ARIA-88
> URL: https://issues.apache.org/jira/browse/ARIA-88
> Project: AriaTosca
>  Issue Type: Story
>Reporter: Ran Ziv
>Assignee: Tal Liron
>Priority: Minor
> Fix For: 0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ARIA-88) Add blueprint examples

2017-02-19 Thread Suneel Marthi (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873758#comment-15873758
 ] 

Suneel Marthi commented on ARIA-88:
---

This is in blatant violation of the Royal decree - it says 'Blueprints'. Thou 
shall be condemned to the gallows.

> Add blueprint examples
> --
>
> Key: ARIA-88
> URL: https://issues.apache.org/jira/browse/ARIA-88
> Project: AriaTosca
>  Issue Type: Story
>Reporter: Ran Ziv
>Assignee: Tal Liron
>Priority: Minor
> Fix For: 0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ARIA-108) Add "Delete" API for resources API

2017-02-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873754#comment-15873754
 ] 

ASF subversion and git services commented on ARIA-108:
--

Commit d347212289e0427f06a6d08097a453c3f0449e4b in incubator-ariatosca's branch 
refs/heads/ARIA-106-Create-sqla-logging-handler from [~ran]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-ariatosca.git;h=d347212 ]

ARIA-108 Add API for deleting a resource for resource storage


> Add "Delete" API for resources API
> --
>
> Key: ARIA-108
> URL: https://issues.apache.org/jira/browse/ARIA-108
> Project: AriaTosca
>  Issue Type: Story
>Reporter: Ran Ziv
>Assignee: Ran Ziv
> Fix For: 0.1.0
>
>
> Resources API currently only has "Upload", "Download", "Read" - it should 
> also expose "Delete" functionality so removed service template's resources 
> may be removed once the template has been deleted.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ARIA-88) Add blueprint examples

2017-02-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873752#comment-15873752
 ] 

ASF subversion and git services commented on ARIA-88:
-

Commit 787d7e7e6d210adba96dc0057fdf43f4c0034658 in incubator-ariatosca's branch 
refs/heads/ARIA-106-Create-sqla-logging-handler from [~emblemparade]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-ariatosca.git;h=787d7e7 ]

ARIA-88 Add TOSCA use-case examples


> Add blueprint examples
> --
>
> Key: ARIA-88
> URL: https://issues.apache.org/jira/browse/ARIA-88
> Project: AriaTosca
>  Issue Type: Story
>Reporter: Ran Ziv
>Assignee: Tal Liron
>Priority: Minor
> Fix For: 0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ARIA-79) Handle attributes update concurrency issues

2017-02-19 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873753#comment-15873753
 ] 

ASF subversion and git services commented on ARIA-79:
-

Commit 96581d9f9b00736d3c83ecda20d2e9f81073d4da in incubator-ariatosca's branch 
refs/heads/ARIA-106-Create-sqla-logging-handler from [~d...@gigaspaces.com]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-ariatosca.git;h=96581d9 ]

ARIA-79-concurrent-modifications


> Handle attributes update concurrency issues
> ---
>
> Key: ARIA-79
> URL: https://issues.apache.org/jira/browse/ARIA-79
> Project: AriaTosca
>  Issue Type: Bug
>Reporter: Ran Ziv
>Assignee: Maxim Orlov
> Fix For: 0.1.0
>
>
> Multiple operations may update a node instance's attributes / 
> runtime-properties concurrently, overriding one another's changes.
> Some form of versioning lock should be used to prevent this from happening.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[1/7] incubator-ariatosca git commit: ARIA-88 Add TOSCA use-case examples [Forced Update!]

2017-02-19 Thread mxmrlv
Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-106-Create-sqla-logging-handler d483195bd -> a9bd63da2 
(forced update)


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/787d7e7e/extensions/aria_extension_tosca/simple_v1_0/functions.py
--
diff --git a/extensions/aria_extension_tosca/simple_v1_0/functions.py 
b/extensions/aria_extension_tosca/simple_v1_0/functions.py
index d17a960..e385817 100644
--- a/extensions/aria_extension_tosca/simple_v1_0/functions.py
+++ b/extensions/aria_extension_tosca/simple_v1_0/functions.py
@@ -171,15 +171,20 @@ class GetProperty(Function):
 def _evaluate(self, context, container):
 modelable_entities = get_modelable_entities(context, container, 
self.locator,
 self.modelable_entity_name)
-
 req_or_cap_name = self.nested_property_name_or_index[0]
 
 for modelable_entity in modelable_entities:
+properties = None
+
 if hasattr(modelable_entity, 'requirement_templates') \
 and modelable_entity.requirement_templates \
-and (req_or_cap_name in 
modelable_entity.requirement_templates):
-# First argument refers to a requirement
-properties = 
modelable_entity.requirement_templates[req_or_cap_name].properties
+and (req_or_cap_name in [v.name for v in 
modelable_entity.requirement_templates]):
+for requirement_template in 
modelable_entity.requirement_templates:
+if requirement_template.name == req_or_cap_name:
+# First argument refers to a requirement
+# TODO: should follow to matched capability in other 
node...
+raise CannotEvaluateFunctionException()
+break
 nested_property_name_or_index = 
self.nested_property_name_or_index[1:]
 elif hasattr(modelable_entity, 'capability_templates') \
 and modelable_entity.capability_templates \
@@ -501,8 +506,7 @@ def get_host(context, container): # pylint: 
disable=unused-argument
 ends.
 """
 
-print container.relationships
-exit()
+return []
 
 def get_source(context, container): # pylint: disable=unused-argument
 """
@@ -510,6 +514,8 @@ def get_source(context, container): # pylint: 
disable=unused-argument
 source end of the relationship that contains the referencing function.
 """
 
+return []
+
 def get_target(context, container): # pylint: disable=unused-argument
 """
 A TOSCA orchestrator will interpret this keyword as the Node Template 
instance that is at the

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/787d7e7e/extensions/aria_extension_tosca/simple_v1_0/misc.py
--
diff --git a/extensions/aria_extension_tosca/simple_v1_0/misc.py 
b/extensions/aria_extension_tosca/simple_v1_0/misc.py
index 4453c7a..42fc1ad 100644
--- a/extensions/aria_extension_tosca/simple_v1_0/misc.py
+++ b/extensions/aria_extension_tosca/simple_v1_0/misc.py
@@ -85,6 +85,7 @@ class MetaData(ExtensiblePresentation):
 :rtype: dict
 """
 
+@short_form_field('url')
 @has_fields
 @dsl_specification('3.5.5', 'tosca-simple-1.0')
 class Repository(ExtensiblePresentation):

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/787d7e7e/extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
--
diff --git a/extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py 
b/extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
index 811da19..f340954 100644
--- a/extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
+++ b/extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
@@ -22,6 +22,7 @@ from aria.parser.modeling import (Type, RelationshipType, 
PolicyType, ServiceMod
   ArtifactTemplate, Metadata, Parameter)
 
 from ..data_types import coerce_value
+from platform import node
 
 def create_service_model(context): # pylint: 
disable=too-many-locals,too-many-branches
 model = ServiceModel()
@@ -106,7 +107,8 @@ def create_service_model(context): # pylint: 
disable=too-many-locals,too-many-br
 return model
 
 def create_node_template(context, node_template):
-model = NodeTemplate(name=node_template._name, 
type_name=node_template.type)
+node_type = node_template._get_type(context)
+model = NodeTemplate(name=node_template._name, type_name=node_type._name)
 
 if node_template.description:
 model.description = node_template.description.value
@@ -137,12 +139,11 @@ def create_node_template(context, node_template):
 return model
 
 def create_interface_template(context, interface):
-

[7/7] incubator-ariatosca git commit: wip

2017-02-19 Thread mxmrlv
wip


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/a9bd63da
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/a9bd63da
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/a9bd63da

Branch: refs/heads/ARIA-106-Create-sqla-logging-handler
Commit: a9bd63da29ac846a892a6758a790dfd26b627db7
Parents: c3f4501
Author: mxmrlv 
Authored: Sun Feb 19 19:03:01 2017 +0200
Committer: mxmrlv 
Committed: Sun Feb 19 19:03:01 2017 +0200

--
 aria/logger.py  | 25 +++
 aria/orchestrator/context/common.py | 70 +++-
 aria/orchestrator/context/operation.py  | 17 +++--
 aria/orchestrator/context/workflow.py   |  5 +-
 aria/orchestrator/decorators.py | 10 +--
 .../orchestrator/execution_plugin/operations.py |  4 +-
 aria/orchestrator/runner.py |  4 --
 aria/orchestrator/workflows/core/engine.py  |  5 --
 aria/orchestrator/workflows/core/task.py| 11 ++-
 aria/orchestrator/workflows/executor/thread.py  | 17 ++---
 aria/storage/__init__.py|  1 -
 aria/storage/core.py|  4 +-
 aria/storage/modeling/orchestrator_elements.py  |  3 +-
 aria/storage/sql_mapi.py|  1 +
 aria/storage_initializer.py |  2 +-
 tests/orchestrator/context/test_operation.py| 48 --
 tests/orchestrator/context/test_serialize.py|  2 +-
 .../orchestrator/execution_plugin/test_local.py |  3 -
 tests/orchestrator/execution_plugin/test_ssh.py |  6 ++
 .../workflows/executor/test_executor.py |  4 ++
 20 files changed, 133 insertions(+), 109 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/a9bd63da/aria/logger.py
--
diff --git a/aria/logger.py b/aria/logger.py
index 6940d43..ef5e904 100644
--- a/aria/logger.py
+++ b/aria/logger.py
@@ -140,15 +140,15 @@ def create_file_log_handler(
 class SQLAlchemyHandler(logging.Handler):
 
 def __init__(self, session, engine, log_cls, **kwargs):
-from aria.storage.modeling import instance_elements
-
-self._instance_elements = instance_elements
 self._session = session
 self._engine = engine
 self._cls = log_cls
 super(SQLAlchemyHandler, self).__init__(**kwargs)
 
 def emit(self, record):
+# CHECK: why is this needed?
+self._cls.__table__.create(bind=self._engine, checkfirst=True)
+
 log = self._cls(
 prefix=record.prefix,
 logger=record.name,
@@ -157,22 +157,13 @@ class SQLAlchemyHandler(logging.Handler):
 created_at=datetime.utcnow(),
 )
 self._session.add(log)
-self._session.commit()
-
 
-class _SQLAlchemyHandlerFactory(object):
-# prevents circular imports
-from aria.storage.modeling.model import Log
-
-def __init__(self):
-self._handler = None
-
-def __call__(self, session, engine, model_cls=Log, level=logging.DEBUG):
-if not self._handler:
-self._handler = SQLAlchemyHandler(session, engine, model_cls, 
level=level)
-return self._handler
+try:
+self._session.commit()
+except BaseException:
+self._session.rollback()
+raise
 
-create_sqla_log_handler = _SQLAlchemyHandlerFactory()
 
 _default_file_formatter = logging.Formatter(
 '%(asctime)s [%(name)s:%(levelname)s] %(message)s 
<%(pathname)s:%(lineno)d>')

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/a9bd63da/aria/orchestrator/context/common.py
--
diff --git a/aria/orchestrator/context/common.py 
b/aria/orchestrator/context/common.py
index 7e84c0c..0c8c2f0 100644
--- a/aria/orchestrator/context/common.py
+++ b/aria/orchestrator/context/common.py
@@ -15,41 +15,39 @@
 """
 A common context for both workflow and operation
 """
+from contextlib import contextmanager
 from functools import partial
 from uuid import uuid4
 
 import logging
-
 import jinja2
 
-from aria import logger
-from aria.storage import exceptions
-
-
-class _Logger(object):
-def __init__(self, logger):
-self._logger = logger
-self._prefix = ''
+from aria import logger as aria_logger
+from aria.storage import exceptions, modeling
 
-def set_prefix(self, prefix):
-self._prefix = prefix
 
-def __getattr__(self, item):
-return partial(getattr(self._logger, item), extra={'prefix': 
self._prefix})
-
-
-class BaseContext(object):
+class BaseContext(aria_logger.LoggerMixin):
 """
 Base context 

[3/7] incubator-ariatosca git commit: ARIA-79-concurrent-modifications

2017-02-19 Thread mxmrlv
ARIA-79-concurrent-modifications


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/96581d9f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/96581d9f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/96581d9f

Branch: refs/heads/ARIA-106-Create-sqla-logging-handler
Commit: 96581d9f9b00736d3c83ecda20d2e9f81073d4da
Parents: 787d7e7
Author: Dan Kilman 
Authored: Mon Jan 30 16:49:00 2017 +0200
Committer: mxmrlv 
Committed: Fri Feb 17 21:12:36 2017 +0200

--
 aria/.pylintrc  |   2 +-
 aria/orchestrator/workflows/executor/process.py | 162 +++---
 aria/storage/instrumentation.py |  73 +++--
 aria/storage/modeling/instance_elements.py  |   5 +-
 aria/storage/sql_mapi.py|   4 +
 aria/storage_initializer.py |   1 -
 tests/mock/models.py|   2 -
 ...process_executor_concurrent_modifications.py | 164 +++
 tests/requirements.txt  |   3 +-
 tests/storage/test_structures.py|   1 -
 10 files changed, 338 insertions(+), 79 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/96581d9f/aria/.pylintrc
--
diff --git a/aria/.pylintrc b/aria/.pylintrc
index ee4d0ef..b7656a3 100644
--- a/aria/.pylintrc
+++ b/aria/.pylintrc
@@ -250,7 +250,7 @@ docstring-min-length=-1
 [ELIF]
 
 # Maximum number of nested blocks for function / method body
-max-nested-blocks=5
+max-nested-blocks=7
 
 
 [SIMILARITIES]

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/96581d9f/aria/orchestrator/workflows/executor/process.py
--
diff --git a/aria/orchestrator/workflows/executor/process.py 
b/aria/orchestrator/workflows/executor/process.py
index 560ac43..75bbbce 100644
--- a/aria/orchestrator/workflows/executor/process.py
+++ b/aria/orchestrator/workflows/executor/process.py
@@ -53,6 +53,8 @@ _IS_WIN = os.name == 'nt'
 
 _INT_FMT = 'I'
 _INT_SIZE = struct.calcsize(_INT_FMT)
+UPDATE_TRACKED_CHANGES_FAILED_STR = \
+'Some changes failed writing to storage. For more info refer to the log.'
 
 
 class ProcessExecutor(base.BaseExecutor):
@@ -74,6 +76,13 @@ class ProcessExecutor(base.BaseExecutor):
 # Contains reference to all currently running tasks
 self._tasks = {}
 
+self._request_handlers = {
+'started': self._handle_task_started_request,
+'succeeded': self._handle_task_succeeded_request,
+'failed': self._handle_task_failed_request,
+'apply_tracked_changes': self._handle_apply_tracked_changes_request
+}
+
 # Server socket used to accept task status messages from subprocesses
 self._server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 self._server_socket.bind(('localhost', 0))
@@ -131,58 +140,6 @@ class ProcessExecutor(base.BaseExecutor):
 def _remove_task(self, task_id):
 return self._tasks.pop(task_id)
 
-def _listener(self):
-# Notify __init__ method this thread has actually started
-self._listener_started.put(True)
-while not self._stopped:
-try:
-# Accept messages written to the server socket
-with contextlib.closing(self._server_socket.accept()[0]) as 
connection:
-message = self._recv_message(connection)
-message_type = message['type']
-if message_type == 'closed':
-break
-task_id = message['task_id']
-if message_type == 'started':
-self._task_started(self._tasks[task_id])
-elif message_type == 'apply_tracked_changes':
-task = self._tasks[task_id]
-instrumentation.apply_tracked_changes(
-tracked_changes=message['tracked_changes'],
-model=task.context.model)
-elif message_type == 'succeeded':
-task = self._remove_task(task_id)
-instrumentation.apply_tracked_changes(
-tracked_changes=message['tracked_changes'],
-model=task.context.model)
-self._task_succeeded(task)
-elif message_type == 'failed':
-task = self._remove_task(task_id)
-instrumentation.apply_tracked_changes(
-   

[4/7] incubator-ariatosca git commit: ARIA-108 Add API for deleting a resource for resource storage

2017-02-19 Thread mxmrlv
ARIA-108 Add API for deleting a resource for resource storage


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/d3472122
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/d3472122
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/d3472122

Branch: refs/heads/ARIA-106-Create-sqla-logging-handler
Commit: d347212289e0427f06a6d08097a453c3f0449e4b
Parents: 96581d9
Author: Ran Ziv 
Authored: Thu Feb 16 16:38:51 2017 +0200
Committer: Ran Ziv 
Committed: Sat Feb 18 13:01:13 2017 +0200

--
 aria/storage/api.py| 15 -
 aria/storage/filesystem_rapi.py| 41 -
 tests/storage/test_resource_storage.py | 90 -
 3 files changed, 129 insertions(+), 17 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/d3472122/aria/storage/api.py
--
diff --git a/aria/storage/api.py b/aria/storage/api.py
index 09a4dd9..ed8a2ff 100644
--- a/aria/storage/api.py
+++ b/aria/storage/api.py
@@ -135,7 +135,7 @@ class ResourceAPI(StorageAPI):
 """
 return self._name
 
-def read(self, entry_id, path=None, **kwargs):
+def read(self, entry_id, path, **kwargs):
 """
 Get a bytesteam from the storage.
 
@@ -144,7 +144,18 @@ class ResourceAPI(StorageAPI):
 :param kwargs:
 :return:
 """
-raise NotImplementedError('Subclass must implement abstract data 
method')
+raise NotImplementedError('Subclass must implement abstract read 
method')
+
+def delete(self, entry_id, path, **kwargs):
+"""
+Delete a resource from the storage.
+
+:param entry_id:
+:param path:
+:param kwargs:
+:return:
+"""
+raise NotImplementedError('Subclass must implement abstract delete 
method')
 
 def download(self, entry_id, destination, path=None, **kwargs):
 """

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/d3472122/aria/storage/filesystem_rapi.py
--
diff --git a/aria/storage/filesystem_rapi.py b/aria/storage/filesystem_rapi.py
index 6693dbd..3ddc520 100644
--- a/aria/storage/filesystem_rapi.py
+++ b/aria/storage/filesystem_rapi.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 """
-SQLalchemy based RAPI
+File system based RAPI
 """
 import os
 import shutil
@@ -92,14 +92,13 @@ class FileSystemResourceAPI(api.ResourceAPI):
 except (OSError, IOError):
 pass
 
-def read(self, entry_id, path=None, **_):
+def read(self, entry_id, path, **_):
 """
 Retrieve the content of a file system storage resource.
 
-:param str entry_type: the type of the entry.
 :param str entry_id: the id of the entry.
-:param str path: a path to a specific resource.
-:return: the content of the file
+:param str path: a path to the specific resource to read.
+:return: the content of the file.
 :rtype: bytes
 """
 resource_relative_path = os.path.join(self.name, entry_id, path or '')
@@ -110,7 +109,9 @@ class FileSystemResourceAPI(api.ResourceAPI):
 if not os.path.isfile(resource):
 resources = os.listdir(resource)
 if len(resources) != 1:
-raise exceptions.StorageError('No resource in path: 
{0}'.format(resource))
+raise exceptions.StorageError(
+'Failed to read {0}; Reading a directory is '
+'only allowed when it contains a single 
resource'.format(resource))
 resource = os.path.join(resource, resources[0])
 with open(resource, 'rb') as resource_file:
 return resource_file.read()
@@ -119,10 +120,9 @@ class FileSystemResourceAPI(api.ResourceAPI):
 """
 Download a specific file or dir from the file system resource storage.
 
-:param str entry_type: the name of the entry.
-:param str entry_id: the id of the entry
-:param str destination: the destination of the files.
-:param str path: a path on the remote machine relative to the root of 
the entry.
+:param str entry_id: the id of the entry.
+:param str destination: the destination to download to
+:param str path: the path to download relative to the root of the 
entry (otherwise all).
 """
 resource_relative_path = os.path.join(self.name, entry_id, path or '')
 resource = os.path.join(self.directory, resource_relative_path)
@@ 

[6/7] incubator-ariatosca git commit: added source to log

2017-02-19 Thread mxmrlv
added source to log


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/c3f4501d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/c3f4501d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/c3f4501d

Branch: refs/heads/ARIA-106-Create-sqla-logging-handler
Commit: c3f4501d45006b207211fd8b957f12ca966b395d
Parents: f881d0b
Author: mxmrlv 
Authored: Mon Feb 13 23:03:54 2017 +0200
Committer: mxmrlv 
Committed: Sun Feb 19 10:38:30 2017 +0200

--
 aria/logger.py | 14 +++---
 aria/orchestrator/context/common.py| 17 +++--
 aria/orchestrator/context/operation.py |  8 
 aria/orchestrator/context/workflow.py  |  1 +
 aria/storage/modeling/orchestrator_elements.py |  4 +++-
 tests/orchestrator/context/test_operation.py   | 19 ++-
 6 files changed, 44 insertions(+), 19 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/c3f4501d/aria/logger.py
--
diff --git a/aria/logger.py b/aria/logger.py
index ebe01ba..6940d43 100644
--- a/aria/logger.py
+++ b/aria/logger.py
@@ -138,7 +138,11 @@ def create_file_log_handler(
 
 
 class SQLAlchemyHandler(logging.Handler):
+
 def __init__(self, session, engine, log_cls, **kwargs):
+from aria.storage.modeling import instance_elements
+
+self._instance_elements = instance_elements
 self._session = session
 self._engine = engine
 self._cls = log_cls
@@ -146,10 +150,11 @@ class SQLAlchemyHandler(logging.Handler):
 
 def emit(self, record):
 log = self._cls(
+prefix=record.prefix,
 logger=record.name,
 level=record.levelname,
 msg=record.msg,
-created_at=datetime.utcnow()
+created_at=datetime.utcnow(),
 )
 self._session.add(log)
 self._session.commit()
@@ -163,15 +168,10 @@ class _SQLAlchemyHandlerFactory(object):
 self._handler = None
 
 def __call__(self, session, engine, model_cls=Log, level=logging.DEBUG):
-if self._handler is None or not self._is_eq(session, engine, 
model_cls):
+if not self._handler:
 self._handler = SQLAlchemyHandler(session, engine, model_cls, 
level=level)
 return self._handler
 
-def _is_eq(self, session, engine, model_cls):
-return all([self._handler._session == session,
-self._handler._engine == engine,
-self._handler._cls == model_cls])
-
 create_sqla_log_handler = _SQLAlchemyHandlerFactory()
 
 _default_file_formatter = logging.Formatter(

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/c3f4501d/aria/orchestrator/context/common.py
--
diff --git a/aria/orchestrator/context/common.py 
b/aria/orchestrator/context/common.py
index d5ef42c..7e84c0c 100644
--- a/aria/orchestrator/context/common.py
+++ b/aria/orchestrator/context/common.py
@@ -15,6 +15,7 @@
 """
 A common context for both workflow and operation
 """
+from functools import partial
 from uuid import uuid4
 
 import logging
@@ -25,6 +26,18 @@ from aria import logger
 from aria.storage import exceptions
 
 
+class _Logger(object):
+def __init__(self, logger):
+self._logger = logger
+self._prefix = ''
+
+def set_prefix(self, prefix):
+self._prefix = prefix
+
+def __getattr__(self, item):
+return partial(getattr(self._logger, item), extra={'prefix': 
self._prefix})
+
+
 class BaseContext(object):
 """
 Base context object for workflow and operation
@@ -45,7 +58,7 @@ class BaseContext(object):
 self._model = model_storage
 self._resource = resource_storage
 self._service_instance_id = service_instance_id
-self._logger = self._init_logger(ctx_logger)
+self._logger = self._init_logger(ctx_logger=ctx_logger)
 self._workdir = workdir
 
 def _init_logger(self, ctx_logger=None):
@@ -58,7 +71,7 @@ class BaseContext(object):
 
 ctx_logger.setLevel(logging.DEBUG)
 
-return ctx_logger
+return _Logger(ctx_logger)
 
 def __repr__(self):
 return (

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/c3f4501d/aria/orchestrator/context/operation.py
--
diff --git a/aria/orchestrator/context/operation.py 
b/aria/orchestrator/context/operation.py
index c5ac8f0..efe62ab 100644
--- a/aria/orchestrator/context/operation.py
+++ b/aria/orchestrator/context/operation.py
@@ -105,6 

[5/7] incubator-ariatosca git commit: wip

2017-02-19 Thread mxmrlv
wip


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/f881d0be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/f881d0be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/f881d0be

Branch: refs/heads/ARIA-106-Create-sqla-logging-handler
Commit: f881d0be04500893e2a0650e5927062858f37314
Parents: d347212
Author: mxmrlv 
Authored: Mon Feb 13 12:28:27 2017 +0200
Committer: mxmrlv 
Committed: Sun Feb 19 10:38:30 2017 +0200

--
 aria/__init__.py|  3 +-
 aria/logger.py  | 43 +++-
 aria/orchestrator/context/common.py | 22 +-
 aria/orchestrator/workflows/core/engine.py  |  5 ++
 aria/storage/__init__.py|  6 --
 aria/storage/core.py| 16 +++--
 aria/storage/modeling/model.py  |  4 ++
 aria/storage/modeling/orchestrator_elements.py  | 12 
 tests/mock/topology.py  |  2 +-
 tests/orchestrator/context/test_operation.py| 74 ++--
 .../execution_plugin/test_common.py |  2 +-
 tests/orchestrator/execution_plugin/test_ssh.py |  2 +-
 .../workflows/executor/test_process_executor.py |  6 +-
 tests/storage/__init__.py   | 23 +++---
 tests/storage/test_instrumentation.py   |  6 +-
 tests/storage/test_structures.py|  2 +-
 16 files changed, 182 insertions(+), 46 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/f881d0be/aria/__init__.py
--
diff --git a/aria/__init__.py b/aria/__init__.py
index 18eaa56..43529f0 100644
--- a/aria/__init__.py
+++ b/aria/__init__.py
@@ -97,7 +97,8 @@ def application_model_storage(api, api_kwargs=None, 
initiator=None, initiator_kw
 storage.modeling.model.ServiceInstanceUpdateStep,
 storage.modeling.model.ServiceInstanceModification,
 storage.modeling.model.Plugin,
-storage.modeling.model.Task
+storage.modeling.model.Task,
+storage.modeling.model.Log
 ]
 return storage.ModelStorage(api_cls=api,
 api_kwargs=api_kwargs,

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/f881d0be/aria/logger.py
--
diff --git a/aria/logger.py b/aria/logger.py
index 0002cb5..ebe01ba 100644
--- a/aria/logger.py
+++ b/aria/logger.py
@@ -17,8 +17,10 @@
 Logging related mixins and functions
 """
 
+
 import logging
-from logging.handlers import RotatingFileHandler
+from logging import handlers as logging_handlers
+from datetime import datetime
 
 _base_logger = logging.getLogger('aria')
 
@@ -124,7 +126,7 @@ def create_file_log_handler(
 """
 Create a logging.handlers.RotatingFileHandler
 """
-rotating_file = RotatingFileHandler(
+rotating_file = logging_handlers.RotatingFileHandler(
 filename=file_path,
 maxBytes=max_bytes,
 backupCount=backup_count,
@@ -135,5 +137,42 @@ def create_file_log_handler(
 return rotating_file
 
 
+class SQLAlchemyHandler(logging.Handler):
+def __init__(self, session, engine, log_cls, **kwargs):
+self._session = session
+self._engine = engine
+self._cls = log_cls
+super(SQLAlchemyHandler, self).__init__(**kwargs)
+
+def emit(self, record):
+log = self._cls(
+logger=record.name,
+level=record.levelname,
+msg=record.msg,
+created_at=datetime.utcnow()
+)
+self._session.add(log)
+self._session.commit()
+
+
+class _SQLAlchemyHandlerFactory(object):
+# prevents circular imports
+from aria.storage.modeling.model import Log
+
+def __init__(self):
+self._handler = None
+
+def __call__(self, session, engine, model_cls=Log, level=logging.DEBUG):
+if self._handler is None or not self._is_eq(session, engine, 
model_cls):
+self._handler = SQLAlchemyHandler(session, engine, model_cls, 
level=level)
+return self._handler
+
+def _is_eq(self, session, engine, model_cls):
+return all([self._handler._session == session,
+self._handler._engine == engine,
+self._handler._cls == model_cls])
+
+create_sqla_log_handler = _SQLAlchemyHandlerFactory()
+
 _default_file_formatter = logging.Formatter(
 '%(asctime)s [%(name)s:%(levelname)s] %(message)s 
<%(pathname)s:%(lineno)d>')

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/f881d0be/aria/orchestrator/context/common.py

[jira] [Commented] (ARIA-111) Royal decree: TOSCA terminology

2017-02-19 Thread Tal Liron (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873732#comment-15873732
 ] 

Tal Liron commented on ARIA-111:


I can't work under these draconian conditions! Freedom for the people! Down 
with the tyrants!

> Royal decree: TOSCA terminology
> ---
>
> Key: ARIA-111
> URL: https://issues.apache.org/jira/browse/ARIA-111
> Project: AriaTosca
>  Issue Type: Task
>Reporter: Ran Ziv
>Priority: Minor
>
> Hear, hear!
> Let it be known that from this day forth, the following terms are banned from 
> the realm of ARIA's code, by decree of the royal TOSCA:
> Thou shall not use "Blueprint", but "Service template".
> Thou shall not use "Deployment", but "Service instance".
> Thou shall not use "Node", but "Node template".
> Thou shall not use "Node instance", but "Node".
> He who shall come across any of these banned terms anywhere in the realm is 
> henceforth bound by law to take action and bring justice upon them.
> Failure to comply shall bring about severe consequences - Including 
> confusion, lack of consistency, and in extreme cases, death.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (ARIA-111) Royal decree: TOSCA terminology

2017-02-19 Thread Ran Ziv (JIRA)
Ran Ziv created ARIA-111:


 Summary: Royal decree: TOSCA terminology
 Key: ARIA-111
 URL: https://issues.apache.org/jira/browse/ARIA-111
 Project: AriaTosca
  Issue Type: Task
Reporter: Ran Ziv
Priority: Minor


Hear, hear!
Let it be known that from this day forth, the following terms are banned from 
the realm of ARIA's code, by decree of the royal TOSCA:

Thou shall not use "Blueprint", but "Service template".
Thou shall not use "Deployment", but "Service instance".
Thou shall not use "Node", but "Node template".
Thou shall not use "Node instance", but "Node".

He who shall come across any of these banned terms anywhere in the realm is 
henceforth bound by law to take action and bring justice upon them.
Failure to comply shall bring about severe consequences - Including confusion, 
lack of consistency, and in extreme cases, death.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


Re: GIT/JIRA Integration

2017-02-19 Thread John D. Ament
I am not challenged for credentials (no one really has credentials in
fisheye at this time) and I am able to see the code.

Can you add this note to https://issues.apache.org/jira/browse/INFRA-13431

 ?

John

On Sun, Feb 19, 2017 at 8:05 AM Ran Ziv  wrote:

> Yes, I see it now, although when I click any of these (e.g. "commits") I'm
> asked to authenticate with Fisheye, but I think it's not my user that's
> needed for this authentication is it..?
> Can you actually see the commits etc.?
>
> On Sun, Feb 19, 2017 at 2:16 PM, John D. Ament 
> wrote:
>
> > Take a look now.  Just checked a few tickets
> >
> > - Branches are shown
> > - Commits are shown
> > - everything is under the dev tag
> >
> > Assuming that's good, I'll shut off the commit edits inline.
> >
> > John
> >
> > On Thu, Feb 16, 2017 at 9:38 AM Ran Ziv  wrote:
> >
> > > How about now? :)
> > >
> > > On Tue, Jan 31, 2017 at 5:21 AM, John D. Ament 
> > > wrote:
> > >
> > > > I just pinged them again.
> > > >
> > > > On Mon, Jan 30, 2017 at 7:41 PM Ran Ziv  wrote:
> > > >
> > > > > Bumping this again.
> > > > >
> > > > > On Sun, Jan 22, 2017 at 11:49 AM, Ran Ziv 
> > wrote:
> > > > >
> > > > > > Any news about this perhaps?
> > > > > >
> > > > > > On Wed, Jan 4, 2017 at 5:17 PM, Ran Ziv 
> > wrote:
> > > > > >
> > > > > >> Sounds good. Any idea when it's supposed to happen so I'll know
> > when
> > > > to
> > > > > >> check?
> > > > > >>
> > > > > >> On Wed, Jan 4, 2017 at 3:58 PM, John D. Ament <
> > > johndam...@apache.org>
> > > > > >> wrote:
> > > > > >>
> > > > > >>> So it looks like its there.  INFRA is currently enabling
> fisheye
> > > for
> > > > > ASF,
> > > > > >>> since Atlassian is shutting down its public offering.  Assuming
> > no
> > > > > qualms
> > > > > >>> with enabling fisheye for ARIAs repos, this will happen
> > > > automatically.
> > > > > >>> Any
> > > > > >>> concerns with that?  Once its up, we can turn off the other
> > format.
> > > > > >>>
> > > > > >>> John
> > > > > >>>
> > > > > >>> On Wed, Jan 4, 2017 at 7:05 AM Ran Ziv 
> > wrote:
> > > > > >>>
> > > > > >>> > Yes, that's what I was referring to.
> > > > > >>> > I indeed don't know about version compatibility, I hope it
> > > applies
> > > > > for
> > > > > >>> the
> > > > > >>> > Apache JIRA version as well.
> > > > > >>> >
> > > > > >>> > Ran
> > > > > >>> >
> > > > > >>> > On Wed, Jan 4, 2017 at 2:02 PM, John D. Ament <
> > > > johndam...@apache.org
> > > > > >
> > > > > >>> > wrote:
> > > > > >>> >
> > > > > >>> > > Ran,
> > > > > >>> > >
> > > > > >>> > > Maybe I have to be logged in to see it.  I don't have an
> > > account
> > > > on
> > > > > >>> that
> > > > > >>> > > JIRA.  Are you talking about the "Development" section on
> the
> > > far
> > > > > >>> right?
> > > > > >>> > >
> > > > > >>> > > That's a feature in newer JIRA versions.  We're on 6.3.
> I'd
> > > have
> > > > > to
> > > > > >>> see
> > > > > >>> > if
> > > > > >>> > > that's an option first.
> > > > > >>> > >
> > > > > >>> > > John
> > > > > >>> > >
> > > > > >>> > > On Tue, Jan 3, 2017 at 8:31 AM Ran Ziv  >
> > > > wrote:
> > > > > >>> > >
> > > > > >>> > > > Thanks John,
> > > > > >>> > > > I see that basically all git traffic now appears on JIRA
> as
> > > > > >>> comments -
> > > > > >>> > > that
> > > > > >>> > > > indeed seems too noisy IMO.
> > > > > >>> > > > Is it possible to configure it so that the git-jira
> > > integration
> > > > > >>> will
> > > > > >>> > > simply
> > > > > >>> > > > present commits/branches/PRs related to a specific JIRA
> on
> > a
> > > > > >>> separate
> > > > > >>> > > > section rather than in comments (like it's done here
> > > > > >>> > > > 
> for
> > > > > >>> example)?
> > > > > >>> > > >
> > > > > >>> > > > thanks
> > > > > >>> > > >
> > > > > >>> > > > On Fri, Dec 30, 2016 at 4:52 PM, John D. Ament <
> > > > > >>> johndam...@apache.org>
> > > > > >>> > > > wrote:
> > > > > >>> > > >
> > > > > >>> > > > > Just as an FYI, I've enabled GIT/JIRA integration for
> > > > > >>> AriaTosca.  If
> > > > > >>> > it
> > > > > >>> > > > > gets too noisy we can switch to worklog entries.  LMK.
> > > > > >>> > > > >
> > > > > >>> > > >
> > > > > >>> > >
> > > > > >>> >
> > > > > >>>
> > > > > >>
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: GIT/JIRA Integration

2017-02-19 Thread Ran Ziv
Yes, I see it now, although when I click any of these (e.g. "commits") I'm
asked to authenticate with Fisheye, but I think it's not my user that's
needed for this authentication is it..?
Can you actually see the commits etc.?

On Sun, Feb 19, 2017 at 2:16 PM, John D. Ament 
wrote:

> Take a look now.  Just checked a few tickets
>
> - Branches are shown
> - Commits are shown
> - everything is under the dev tag
>
> Assuming that's good, I'll shut off the commit edits inline.
>
> John
>
> On Thu, Feb 16, 2017 at 9:38 AM Ran Ziv  wrote:
>
> > How about now? :)
> >
> > On Tue, Jan 31, 2017 at 5:21 AM, John D. Ament 
> > wrote:
> >
> > > I just pinged them again.
> > >
> > > On Mon, Jan 30, 2017 at 7:41 PM Ran Ziv  wrote:
> > >
> > > > Bumping this again.
> > > >
> > > > On Sun, Jan 22, 2017 at 11:49 AM, Ran Ziv 
> wrote:
> > > >
> > > > > Any news about this perhaps?
> > > > >
> > > > > On Wed, Jan 4, 2017 at 5:17 PM, Ran Ziv 
> wrote:
> > > > >
> > > > >> Sounds good. Any idea when it's supposed to happen so I'll know
> when
> > > to
> > > > >> check?
> > > > >>
> > > > >> On Wed, Jan 4, 2017 at 3:58 PM, John D. Ament <
> > johndam...@apache.org>
> > > > >> wrote:
> > > > >>
> > > > >>> So it looks like its there.  INFRA is currently enabling fisheye
> > for
> > > > ASF,
> > > > >>> since Atlassian is shutting down its public offering.  Assuming
> no
> > > > qualms
> > > > >>> with enabling fisheye for ARIAs repos, this will happen
> > > automatically.
> > > > >>> Any
> > > > >>> concerns with that?  Once its up, we can turn off the other
> format.
> > > > >>>
> > > > >>> John
> > > > >>>
> > > > >>> On Wed, Jan 4, 2017 at 7:05 AM Ran Ziv 
> wrote:
> > > > >>>
> > > > >>> > Yes, that's what I was referring to.
> > > > >>> > I indeed don't know about version compatibility, I hope it
> > applies
> > > > for
> > > > >>> the
> > > > >>> > Apache JIRA version as well.
> > > > >>> >
> > > > >>> > Ran
> > > > >>> >
> > > > >>> > On Wed, Jan 4, 2017 at 2:02 PM, John D. Ament <
> > > johndam...@apache.org
> > > > >
> > > > >>> > wrote:
> > > > >>> >
> > > > >>> > > Ran,
> > > > >>> > >
> > > > >>> > > Maybe I have to be logged in to see it.  I don't have an
> > account
> > > on
> > > > >>> that
> > > > >>> > > JIRA.  Are you talking about the "Development" section on the
> > far
> > > > >>> right?
> > > > >>> > >
> > > > >>> > > That's a feature in newer JIRA versions.  We're on 6.3.  I'd
> > have
> > > > to
> > > > >>> see
> > > > >>> > if
> > > > >>> > > that's an option first.
> > > > >>> > >
> > > > >>> > > John
> > > > >>> > >
> > > > >>> > > On Tue, Jan 3, 2017 at 8:31 AM Ran Ziv 
> > > wrote:
> > > > >>> > >
> > > > >>> > > > Thanks John,
> > > > >>> > > > I see that basically all git traffic now appears on JIRA as
> > > > >>> comments -
> > > > >>> > > that
> > > > >>> > > > indeed seems too noisy IMO.
> > > > >>> > > > Is it possible to configure it so that the git-jira
> > integration
> > > > >>> will
> > > > >>> > > simply
> > > > >>> > > > present commits/branches/PRs related to a specific JIRA on
> a
> > > > >>> separate
> > > > >>> > > > section rather than in comments (like it's done here
> > > > >>> > > >  for
> > > > >>> example)?
> > > > >>> > > >
> > > > >>> > > > thanks
> > > > >>> > > >
> > > > >>> > > > On Fri, Dec 30, 2016 at 4:52 PM, John D. Ament <
> > > > >>> johndam...@apache.org>
> > > > >>> > > > wrote:
> > > > >>> > > >
> > > > >>> > > > > Just as an FYI, I've enabled GIT/JIRA integration for
> > > > >>> AriaTosca.  If
> > > > >>> > it
> > > > >>> > > > > gets too noisy we can switch to worklog entries.  LMK.
> > > > >>> > > > >
> > > > >>> > > >
> > > > >>> > >
> > > > >>> >
> > > > >>>
> > > > >>
> > > > >>
> > > > >
> > > >
> > >
> >
>


Re: GIT/JIRA Integration

2017-02-19 Thread John D. Ament
Take a look now.  Just checked a few tickets

- Branches are shown
- Commits are shown
- everything is under the dev tag

Assuming that's good, I'll shut off the commit edits inline.

John

On Thu, Feb 16, 2017 at 9:38 AM Ran Ziv  wrote:

> How about now? :)
>
> On Tue, Jan 31, 2017 at 5:21 AM, John D. Ament 
> wrote:
>
> > I just pinged them again.
> >
> > On Mon, Jan 30, 2017 at 7:41 PM Ran Ziv  wrote:
> >
> > > Bumping this again.
> > >
> > > On Sun, Jan 22, 2017 at 11:49 AM, Ran Ziv  wrote:
> > >
> > > > Any news about this perhaps?
> > > >
> > > > On Wed, Jan 4, 2017 at 5:17 PM, Ran Ziv  wrote:
> > > >
> > > >> Sounds good. Any idea when it's supposed to happen so I'll know when
> > to
> > > >> check?
> > > >>
> > > >> On Wed, Jan 4, 2017 at 3:58 PM, John D. Ament <
> johndam...@apache.org>
> > > >> wrote:
> > > >>
> > > >>> So it looks like its there.  INFRA is currently enabling fisheye
> for
> > > ASF,
> > > >>> since Atlassian is shutting down its public offering.  Assuming no
> > > qualms
> > > >>> with enabling fisheye for ARIAs repos, this will happen
> > automatically.
> > > >>> Any
> > > >>> concerns with that?  Once its up, we can turn off the other format.
> > > >>>
> > > >>> John
> > > >>>
> > > >>> On Wed, Jan 4, 2017 at 7:05 AM Ran Ziv  wrote:
> > > >>>
> > > >>> > Yes, that's what I was referring to.
> > > >>> > I indeed don't know about version compatibility, I hope it
> applies
> > > for
> > > >>> the
> > > >>> > Apache JIRA version as well.
> > > >>> >
> > > >>> > Ran
> > > >>> >
> > > >>> > On Wed, Jan 4, 2017 at 2:02 PM, John D. Ament <
> > johndam...@apache.org
> > > >
> > > >>> > wrote:
> > > >>> >
> > > >>> > > Ran,
> > > >>> > >
> > > >>> > > Maybe I have to be logged in to see it.  I don't have an
> account
> > on
> > > >>> that
> > > >>> > > JIRA.  Are you talking about the "Development" section on the
> far
> > > >>> right?
> > > >>> > >
> > > >>> > > That's a feature in newer JIRA versions.  We're on 6.3.  I'd
> have
> > > to
> > > >>> see
> > > >>> > if
> > > >>> > > that's an option first.
> > > >>> > >
> > > >>> > > John
> > > >>> > >
> > > >>> > > On Tue, Jan 3, 2017 at 8:31 AM Ran Ziv 
> > wrote:
> > > >>> > >
> > > >>> > > > Thanks John,
> > > >>> > > > I see that basically all git traffic now appears on JIRA as
> > > >>> comments -
> > > >>> > > that
> > > >>> > > > indeed seems too noisy IMO.
> > > >>> > > > Is it possible to configure it so that the git-jira
> integration
> > > >>> will
> > > >>> > > simply
> > > >>> > > > present commits/branches/PRs related to a specific JIRA on a
> > > >>> separate
> > > >>> > > > section rather than in comments (like it's done here
> > > >>> > > >  for
> > > >>> example)?
> > > >>> > > >
> > > >>> > > > thanks
> > > >>> > > >
> > > >>> > > > On Fri, Dec 30, 2016 at 4:52 PM, John D. Ament <
> > > >>> johndam...@apache.org>
> > > >>> > > > wrote:
> > > >>> > > >
> > > >>> > > > > Just as an FYI, I've enabled GIT/JIRA integration for
> > > >>> AriaTosca.  If
> > > >>> > it
> > > >>> > > > > gets too noisy we can switch to worklog entries.  LMK.
> > > >>> > > > >
> > > >>> > > >
> > > >>> > >
> > > >>> >
> > > >>>
> > > >>
> > > >>
> > > >
> > >
> >
>


[jira] [Closed] (ARIA-110) Extensions aren't installed when installing in editable mode

2017-02-19 Thread Ran Ziv (JIRA)

 [ 
https://issues.apache.org/jira/browse/ARIA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ran Ziv closed ARIA-110.


> Extensions aren't installed when installing in editable mode
> 
>
> Key: ARIA-110
> URL: https://issues.apache.org/jira/browse/ARIA-110
> Project: AriaTosca
>  Issue Type: Bug
>Reporter: Ran Ziv
>Assignee: Ran Ziv
>Priority: Trivial
>
> When installing ARIA in editable mode (i.e. `pip install -e aria`), which is 
> very useful for developers, the extensions dir doesn't get installed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Resolved] (ARIA-110) Extensions aren't installed when installing in editable mode

2017-02-19 Thread Ran Ziv (JIRA)

 [ 
https://issues.apache.org/jira/browse/ARIA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ran Ziv resolved ARIA-110.
--
Resolution: Won't Fix

> Extensions aren't installed when installing in editable mode
> 
>
> Key: ARIA-110
> URL: https://issues.apache.org/jira/browse/ARIA-110
> Project: AriaTosca
>  Issue Type: Bug
>Reporter: Ran Ziv
>Assignee: Ran Ziv
>Priority: Trivial
>
> When installing ARIA in editable mode (i.e. `pip install -e aria`), which is 
> very useful for developers, the extensions dir doesn't get installed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ARIA-110) Extensions aren't installed when installing in editable mode

2017-02-19 Thread Ran Ziv (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15873589#comment-15873589
 ] 

Ran Ziv commented on ARIA-110:
--

This is a known bug in pip/setup-tools, which has to do with installing in 
editable mode when the project has multiple top level directories.

Until this gets fixed, here's a simple workaround:
1) Under your virtualenv, find the file `easy-install.pth` (e.g. 
lib/python2.7/site-packages/easy-install.pth).
2) Add the path for the extensions directory in it.

Changes to the extensions directory will of course be reflected when working in 
this manner.


> Extensions aren't installed when installing in editable mode
> 
>
> Key: ARIA-110
> URL: https://issues.apache.org/jira/browse/ARIA-110
> Project: AriaTosca
>  Issue Type: Bug
>Reporter: Ran Ziv
>Assignee: Ran Ziv
>Priority: Trivial
>
> When installing ARIA in editable mode (i.e. `pip install -e aria`), which is 
> very useful for developers, the extensions dir doesn't get installed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (ARIA-110) Extensions aren't installed when installing in editable mode

2017-02-19 Thread Ran Ziv (JIRA)
Ran Ziv created ARIA-110:


 Summary: Extensions aren't installed when installing in editable 
mode
 Key: ARIA-110
 URL: https://issues.apache.org/jira/browse/ARIA-110
 Project: AriaTosca
  Issue Type: Bug
Reporter: Ran Ziv
Assignee: Ran Ziv
Priority: Trivial


When installing ARIA in editable mode (i.e. `pip install -e aria`), which is 
very useful for developers, the extensions dir doesn't get installed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)