Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Great! Glad to hear it worked :) On Wed, Aug 30, 2017 at 4:42 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Ran, > > Per your suggestion, I am no longer modifying the example using sed, but > am checking out tags/0.1.1. > > I now finally have a successful run on ubuntu 16.04 fresh install by > following the below steps. > > > sudo apt-get update > > sudo apt install -y python-pip git > > sudo pip install --upgrade pip setuptools > > sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > sudo pip install apache-ariatosca[ssh] --no-binary apache-ariatosca > > git clone https://github.com/apache/incubator-ariatosca.git > > cd incubator-ariatosca > > git checkout tags/0.1.1 > > aria service-templates store examples/hello-world/helloworld.yaml > my-service-template > > aria services create my-service -t my-service-template > > aria executions start install -s my-service > > > > I was also able to launch the url http://:9090 successfully. > > Thanks a lot for your patience and guidance. > > Vish > > > ____ > From: Ran Ziv <r...@cloudify.co> > Sent: Wednesday, August 30, 2017 6:32 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > You should not attempt to modify the example yourself using sed the way you > do in your dockerfile - The change you're making is but a single one, while > there's been other changes to the example since the 0.1.1 version as well - > and more so, some changes took place in the service-templates scripts > rather than the service template yaml file. > > See here: > https://github.com/apache/incubator-ariatosca/blob/ > master/examples/hello-world/scripts/configure.sh#L35 > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca/blob/master/examples/hello- > world/scripts/configure.sh#L35> > > apache/incubator-ariatosca<https://github.com/apache/ > incubator-ariatosca/blob/master/examples/hello-world/ > scripts/configure.sh#L35> > github.com > incubator-ariatosca - Mirror of Apache incubator > > > > vs > https://github.com/apache/incubator-ariatosca/blob/0.1. > 1/examples/hello-world/scripts/configure.sh#L35 > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca/blob/0.1.1/examples/hello- > world/scripts/configure.sh#L35> > > apache/incubator-ariatosca<https://github.com/apache/ > incubator-ariatosca/blob/0.1.1/examples/hello-world/ > scripts/configure.sh#L35> > github.com > incubator-ariatosca - Mirror of Apache incubator > > > > > > Since you're using ARIA 0.1.1, it'd be best to use the 0.1.1 example. To do > this, simply check out the "0.1.1" tag after git cloning the > incubator-ariatosca repository from github. > > > Ran > > > On Tue, Aug 29, 2017 at 6:12 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > I edited line 6 in master file from 'tosca:Root' to 'tosca.nodes.Root' > > > > > > Below is the modified Dockerfile that I am using > > > > > > FROM ubuntu:16.04 > > > > > > RUN apt-get update && apt-get install -y \ > > > > python-dev \ > > > > gcc \ > > > > libffi-dev \ > > > > libssl-dev \ > > > > python-pip \ > > > > git \ > > > > wget > > > > > > RUN pip install --upgrade pip setuptools > > > > > > #RUN pip install apache-ariatosca > > > > > > RUN pip install apache-ariatosca[ssh] --no-binary apache-ariatosca > > > > > > WORKDIR /tmp > > > > > > RUN git clone https://github.com/apache/incubator-ariatosca.git > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca.git> > > apache/incubator-ariatosca<https://github.com/apache/ > incubator-ariatosca.git> > github.com > incubator-ariatosca - Mirror of Apache incubator > > > > > /tmp/incubator-ariatosca > > > > > > RUN sed -i "s/tosca:Root/tosca.nodes.Root/g" /tmp/incubator-ariatosca/ > > examples/hello-world/helloworld.yaml > > > > > > > > Vish > > > > > > > > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > > Sent: Tuesday, August 29, 2017 10:09 AM > > To: dev@ariatosca.incubator.apache.org >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Ran, Per your suggestion, I am no longer modifying the example using sed, but am checking out tags/0.1.1. I now finally have a successful run on ubuntu 16.04 fresh install by following the below steps. sudo apt-get update sudo apt install -y python-pip git sudo pip install --upgrade pip setuptools sudo apt-get install -y python-dev gcc libffi-dev libssl-dev sudo pip install apache-ariatosca[ssh] --no-binary apache-ariatosca git clone https://github.com/apache/incubator-ariatosca.git cd incubator-ariatosca git checkout tags/0.1.1 aria service-templates store examples/hello-world/helloworld.yaml my-service-template aria services create my-service -t my-service-template aria executions start install -s my-service I was also able to launch the url http://:9090 successfully. Thanks a lot for your patience and guidance. Vish From: Ran Ziv <r...@cloudify.co> Sent: Wednesday, August 30, 2017 6:32 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" You should not attempt to modify the example yourself using sed the way you do in your dockerfile - The change you're making is but a single one, while there's been other changes to the example since the 0.1.1 version as well - and more so, some changes took place in the service-templates scripts rather than the service template yaml file. See here: https://github.com/apache/incubator-ariatosca/blob/master/examples/hello-world/scripts/configure.sh#L35 [https://avatars3.githubusercontent.com/u/47359?v=4=400]<https://github.com/apache/incubator-ariatosca/blob/master/examples/hello-world/scripts/configure.sh#L35> apache/incubator-ariatosca<https://github.com/apache/incubator-ariatosca/blob/master/examples/hello-world/scripts/configure.sh#L35> github.com incubator-ariatosca - Mirror of Apache incubator vs https://github.com/apache/incubator-ariatosca/blob/0.1.1/examples/hello-world/scripts/configure.sh#L35 [https://avatars3.githubusercontent.com/u/47359?v=4=400]<https://github.com/apache/incubator-ariatosca/blob/0.1.1/examples/hello-world/scripts/configure.sh#L35> apache/incubator-ariatosca<https://github.com/apache/incubator-ariatosca/blob/0.1.1/examples/hello-world/scripts/configure.sh#L35> github.com incubator-ariatosca - Mirror of Apache incubator Since you're using ARIA 0.1.1, it'd be best to use the 0.1.1 example. To do this, simply check out the "0.1.1" tag after git cloning the incubator-ariatosca repository from github. Ran On Tue, Aug 29, 2017 at 6:12 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > I edited line 6 in master file from 'tosca:Root' to 'tosca.nodes.Root' > > > Below is the modified Dockerfile that I am using > > > FROM ubuntu:16.04 > > > RUN apt-get update && apt-get install -y \ > > python-dev \ > > gcc \ > > libffi-dev \ > > libssl-dev \ > > python-pip \ > > git \ > > wget > > > RUN pip install --upgrade pip setuptools > > > #RUN pip install apache-ariatosca > > > RUN pip install apache-ariatosca[ssh] --no-binary apache-ariatosca > > > WORKDIR /tmp > > > RUN git clone https://github.com/apache/incubator-ariatosca.git [https://avatars3.githubusercontent.com/u/47359?v=4=400]<https://github.com/apache/incubator-ariatosca.git> apache/incubator-ariatosca<https://github.com/apache/incubator-ariatosca.git> github.com incubator-ariatosca - Mirror of Apache incubator > /tmp/incubator-ariatosca > > > RUN sed -i "s/tosca:Root/tosca.nodes.Root/g" /tmp/incubator-ariatosca/ > examples/hello-world/helloworld.yaml > > > > Vish > > > ________ > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > Sent: Tuesday, August 29, 2017 10:09 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > > Below is what I am using > > > tosca_definitions_version: tosca_simple_yaml_1_0 > > > node_types: > > > WebServer: > > derived_from: tosca.nodes.Root > > capabilities: > > host: > > type: tosca.capabilities.Container > > > WebApp: > > derived_from: tosca.nodes.WebApplication > > properties: > > port: > > type: integer > > > topology_template: > > > node_templates: > > web_server: > > type: WebServer > > > web_app: > > type: WebApp > > properties: > > port: 9090 > > requirements: > > - host: web_server > > i
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
You should not attempt to modify the example yourself using sed the way you do in your dockerfile - The change you're making is but a single one, while there's been other changes to the example since the 0.1.1 version as well - and more so, some changes took place in the service-templates scripts rather than the service template yaml file. See here: https://github.com/apache/incubator-ariatosca/blob/master/examples/hello-world/scripts/configure.sh#L35 vs https://github.com/apache/incubator-ariatosca/blob/0.1.1/examples/hello-world/scripts/configure.sh#L35 Since you're using ARIA 0.1.1, it'd be best to use the 0.1.1 example. To do this, simply check out the "0.1.1" tag after git cloning the incubator-ariatosca repository from github. Ran On Tue, Aug 29, 2017 at 6:12 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > I edited line 6 in master file from 'tosca:Root' to 'tosca.nodes.Root' > > > Below is the modified Dockerfile that I am using > > > FROM ubuntu:16.04 > > > RUN apt-get update && apt-get install -y \ > > python-dev \ > > gcc \ > > libffi-dev \ > > libssl-dev \ > > python-pip \ > > git \ > > wget > > > RUN pip install --upgrade pip setuptools > > > #RUN pip install apache-ariatosca > > > RUN pip install apache-ariatosca[ssh] --no-binary apache-ariatosca > > > WORKDIR /tmp > > > RUN git clone https://github.com/apache/incubator-ariatosca.git > /tmp/incubator-ariatosca > > > RUN sed -i "s/tosca:Root/tosca.nodes.Root/g" /tmp/incubator-ariatosca/ > examples/hello-world/helloworld.yaml > > > > Vish > > > ____________ > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > Sent: Tuesday, August 29, 2017 10:09 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > > Below is what I am using > > > tosca_definitions_version: tosca_simple_yaml_1_0 > > > node_types: > > > WebServer: > > derived_from: tosca.nodes.Root > > capabilities: > > host: > > type: tosca.capabilities.Container > > > WebApp: > > derived_from: tosca.nodes.WebApplication > > properties: > > port: > > type: integer > > > topology_template: > > > node_templates: > > web_server: > > type: WebServer > > > web_app: > > type: WebApp > > properties: > > port: 9090 > > requirements: > > - host: web_server > > interfaces: > > Standard: > > configure: scripts/configure.sh > > start: scripts/start.sh > > stop: scripts/stop.sh > > > outputs: > > port: > > type: integer > > value: { get_property: [ web_app, port ] } > > > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Tuesday, August 29, 2017 10:04 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Are you using the hello-world example from the 0.1.1 tag? > > > On Tue, Aug 29, 2017 at 6:00 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > Ran, > > > > Thanks a lot for figuring out the root cause for the issue and also > > providing a work around. > > > > With the work around you provided I am able to go past the issue related > > to "ctx" not being found. > > > > However, I am seeing the below new issue on ubuntu 16.04 when I execute " > > > > aria executions start install -s my-service -vvv" > > > > > > > > root@3f9951e417b3:/tmp# aria executions start install -s my-service -vvv > > > > Starting execution. Press Ctrl+C cancel > > > > 14:56:16 | I | install | {} | Starting 'install' workflow execution > > > > 14:56:17 | D | None | {} | web_server_1 Standard.create has no > > implementation > > > > 14:56:17 | D | None | {} | web_server_1 Standard.configure has no > > implementation > > > > 14:56:17 | D | None | {} | web_server_1 Standard.start has no > > implementation > > > > 14:56:18 | D | None | {} | web_app_1 Standard.create has no > implementation > > > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > > Configure.pre_configure_source has no implementation > > > > 14:
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
I edited line 6 in master file from 'tosca:Root' to 'tosca.nodes.Root' Below is the modified Dockerfile that I am using FROM ubuntu:16.04 RUN apt-get update && apt-get install -y \ python-dev \ gcc \ libffi-dev \ libssl-dev \ python-pip \ git \ wget RUN pip install --upgrade pip setuptools #RUN pip install apache-ariatosca RUN pip install apache-ariatosca[ssh] --no-binary apache-ariatosca WORKDIR /tmp RUN git clone https://github.com/apache/incubator-ariatosca.git /tmp/incubator-ariatosca RUN sed -i "s/tosca:Root/tosca.nodes.Root/g" /tmp/incubator-ariatosca/examples/hello-world/helloworld.yaml Vish From: Vishwanath Jayaraman <vishwana...@hotmail.com> Sent: Tuesday, August 29, 2017 10:09 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Below is what I am using tosca_definitions_version: tosca_simple_yaml_1_0 node_types: WebServer: derived_from: tosca.nodes.Root capabilities: host: type: tosca.capabilities.Container WebApp: derived_from: tosca.nodes.WebApplication properties: port: type: integer topology_template: node_templates: web_server: type: WebServer web_app: type: WebApp properties: port: 9090 requirements: - host: web_server interfaces: Standard: configure: scripts/configure.sh start: scripts/start.sh stop: scripts/stop.sh outputs: port: type: integer value: { get_property: [ web_app, port ] } Vish From: Ran Ziv <r...@cloudify.co> Sent: Tuesday, August 29, 2017 10:04 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Are you using the hello-world example from the 0.1.1 tag? On Tue, Aug 29, 2017 at 6:00 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Ran, > > Thanks a lot for figuring out the root cause for the issue and also > providing a work around. > > With the work around you provided I am able to go past the issue related > to "ctx" not being found. > > However, I am seeing the below new issue on ubuntu 16.04 when I execute " > > aria executions start install -s my-service -vvv" > > > > root@3f9951e417b3:/tmp# aria executions start install -s my-service -vvv > > Starting execution. Press Ctrl+C cancel > > 14:56:16 | I | install | {} | Starting 'install' workflow execution > > 14:56:17 | D | None | {} | web_server_1 Standard.create has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.configure has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.start has no > implementation > > 14:56:18 | D | None | {} | web_app_1 Standard.create has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_source has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_target has no implementation > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure started... > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: > /tmp/tmposBljn-configure.sh > > 14:56:21 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution > done (exit_code=1): /tmp/tmposBljn-configure.sh > > 14:56:22 | E | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure failed > > |Traceback (most recent call last): > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/workflows/executor/process.py", line 342, in _main > > |task_func(ctx=ctx, **operation_arguments) > > | File > "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", > line 78, in _wrapper > > |return func(**fun
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Below is what I am using tosca_definitions_version: tosca_simple_yaml_1_0 node_types: WebServer: derived_from: tosca.nodes.Root capabilities: host: type: tosca.capabilities.Container WebApp: derived_from: tosca.nodes.WebApplication properties: port: type: integer topology_template: node_templates: web_server: type: WebServer web_app: type: WebApp properties: port: 9090 requirements: - host: web_server interfaces: Standard: configure: scripts/configure.sh start: scripts/start.sh stop: scripts/stop.sh outputs: port: type: integer value: { get_property: [ web_app, port ] } Vish From: Ran Ziv <r...@cloudify.co> Sent: Tuesday, August 29, 2017 10:04 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Are you using the hello-world example from the 0.1.1 tag? On Tue, Aug 29, 2017 at 6:00 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Ran, > > Thanks a lot for figuring out the root cause for the issue and also > providing a work around. > > With the work around you provided I am able to go past the issue related > to "ctx" not being found. > > However, I am seeing the below new issue on ubuntu 16.04 when I execute " > > aria executions start install -s my-service -vvv" > > > > root@3f9951e417b3:/tmp# aria executions start install -s my-service -vvv > > Starting execution. Press Ctrl+C cancel > > 14:56:16 | I | install | {} | Starting 'install' workflow execution > > 14:56:17 | D | None | {} | web_server_1 Standard.create has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.configure has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.start has no > implementation > > 14:56:18 | D | None | {} | web_app_1 Standard.create has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_source has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_target has no implementation > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure started... > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: > /tmp/tmposBljn-configure.sh > > 14:56:21 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution > done (exit_code=1): /tmp/tmposBljn-configure.sh > > 14:56:22 | E | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure failed > > |Traceback (most recent call last): > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/workflows/executor/process.py", line 342, in _main > > |task_func(ctx=ctx, **operation_arguments) > > | File > "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", > line 78, in _wrapper > > |return func(**func_kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/operations.py", line 33, in > run_script_locally > > |**kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 43, in run_script > > |operation_kwargs=kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 107, in _execute_func > > |return common.check_error(ctx, error_check_func=error_check_func) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/common.py", line 150, in check_error > > |error_check_func() > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 106, in error_check_func > > |stderr=stderr_consumer
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Are you using the hello-world example from the 0.1.1 tag? On Tue, Aug 29, 2017 at 6:00 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Ran, > > Thanks a lot for figuring out the root cause for the issue and also > providing a work around. > > With the work around you provided I am able to go past the issue related > to "ctx" not being found. > > However, I am seeing the below new issue on ubuntu 16.04 when I execute " > > aria executions start install -s my-service -vvv" > > > > root@3f9951e417b3:/tmp# aria executions start install -s my-service -vvv > > Starting execution. Press Ctrl+C cancel > > 14:56:16 | I | install | {} | Starting 'install' workflow execution > > 14:56:17 | D | None | {} | web_server_1 Standard.create has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.configure has no > implementation > > 14:56:17 | D | None | {} | web_server_1 Standard.start has no > implementation > > 14:56:18 | D | None | {} | web_app_1 Standard.create has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_source has no implementation > > 14:56:18 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_target has no implementation > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure started... > > 14:56:20 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: > /tmp/tmposBljn-configure.sh > > 14:56:21 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ > > 14:56:22 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution > done (exit_code=1): /tmp/tmposBljn-configure.sh > > 14:56:22 | E | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure failed > > |Traceback (most recent call last): > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/workflows/executor/process.py", line 342, in _main > > |task_func(ctx=ctx, **operation_arguments) > > | File > "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", > line 78, in _wrapper > > |return func(**func_kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/operations.py", line 33, in > run_script_locally > > |**kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 43, in run_script > > |operation_kwargs=kwargs) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 107, in _execute_func > > |return common.check_error(ctx, error_check_func=error_check_func) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/common.py", line 150, in check_error > > |error_check_func() > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 106, in error_check_func > > |stderr=stderr_consumer.read_output()) > > |ProcessException: Traceback (most recent call last): > > | File "/usr/local/bin/ctx", line 11, in > > |load_entry_point('apache-ariatosca==0.1.1', 'console_scripts', > 'ctx')() > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/ctx_proxy/client.py", line 101, in main > > |timeout=args.timeout) > > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/ctx_proxy/client.py", line 65, in > _client_request > > |raise _RequestError(ex_message, ex_type, ex_traceback) > > |aria.orchestrator.execution_plugin.ctx_proxy.client._RequestError: > (_RequestError(...), 'TypeError: download_resource_and_render() takes at > most 4 arguments (5 given)') > > | > > > Thanks a lot for all your help. > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Tuesday, August 29, 2017 4:22
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Ran, Thanks a lot for figuring out the root cause for the issue and also providing a work around. With the work around you provided I am able to go past the issue related to "ctx" not being found. However, I am seeing the below new issue on ubuntu 16.04 when I execute " aria executions start install -s my-service -vvv" root@3f9951e417b3:/tmp# aria executions start install -s my-service -vvv Starting execution. Press Ctrl+C cancel 14:56:16 | I | install | {} | Starting 'install' workflow execution 14:56:17 | D | None | {} | web_server_1 Standard.create has no implementation 14:56:17 | D | None | {} | web_server_1 Standard.configure has no implementation 14:56:17 | D | None | {} | web_server_1 Standard.start has no implementation 14:56:18 | D | None | {} | web_app_1 Standard.create has no implementation 14:56:18 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_source has no implementation 14:56:18 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_target has no implementation 14:56:20 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure started... 14:56:20 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: /tmp/tmposBljn-configure.sh 14:56:21 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ 14:56:22 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | [ 14:56:22 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution done (exit_code=1): /tmp/tmposBljn-configure.sh 14:56:22 | E | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure failed |Traceback (most recent call last): | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/workflows/executor/process.py", line 342, in _main |task_func(ctx=ctx, **operation_arguments) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", line 78, in _wrapper |return func(**func_kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/operations.py", line 33, in run_script_locally |**kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 43, in run_script |operation_kwargs=kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 107, in _execute_func |return common.check_error(ctx, error_check_func=error_check_func) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/common.py", line 150, in check_error |error_check_func() | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 106, in error_check_func |stderr=stderr_consumer.read_output()) |ProcessException: Traceback (most recent call last): | File "/usr/local/bin/ctx", line 11, in |load_entry_point('apache-ariatosca==0.1.1', 'console_scripts', 'ctx')() | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/ctx_proxy/client.py", line 101, in main |timeout=args.timeout) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/ctx_proxy/client.py", line 65, in _client_request |raise _RequestError(ex_message, ex_type, ex_traceback) |aria.orchestrator.execution_plugin.ctx_proxy.client._RequestError: (_RequestError(...), 'TypeError: download_resource_and_render() takes at most 4 arguments (5 given)') | Thanks a lot for all your help. Vish ________ From: Ran Ziv <r...@cloudify.co> Sent: Tuesday, August 29, 2017 4:22 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Well, this is awkward. After some short testing, it seems the problem is that the 0.1.1 (and 0.1.0) wheels don't treat "ctx" as an entry points (as is evident by unzipping the wheel and viewing the "entry_points.txt" file). One simple way to work around this is to install ARIA not via wheel, e.g. by running: pip install apache-ariatosca[ssh] --no-binary apache-ariatosca I still can't quite say what's caused this - if I try to build a wheel from the current state of master (0.2.0), the wheel does treat "ctx" as an entry point, and it's indeed recognized post-install. AFAI
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Well, this is awkward. After some short testing, it seems the problem is that the 0.1.1 (and 0.1.0) wheels don't treat "ctx" as an entry points (as is evident by unzipping the wheel and viewing the "entry_points.txt" file). One simple way to work around this is to install ARIA not via wheel, e.g. by running: pip install apache-ariatosca[ssh] --no-binary apache-ariatosca I still can't quite say what's caused this - if I try to build a wheel from the current state of master (0.2.0), the wheel does treat "ctx" as an entry point, and it's indeed recognized post-install. AFAIK, nothing's changed about the installation mechanism since 0.1.1. It's likely to be related to the fact that "ctx" is not set directly into "entry_points" in "setup.py", but rather is added dynamically by default: https://github.com/apache/incubator-ariatosca/blob/0.1.1/setup.py#L101 However, as I mentioned, nothing much has changed there since 0.1.1, and I don't see any changes in pip, wheel, or setuptools that might have caused this either. The easiest way to avoid this in the future is possibly to simply make "ctx" written statically into the "entry_points". I'll create a JIRA for this. On Tue, Aug 29, 2017 at 11:42 AM, Ran Ziv <r...@cloudify.co> wrote: > Vishwanath, > Sorry for not having followed up this issue earlier. > I tried launching a 16.04 container earlier and following your steps, and > indeed ctx was nowhere to be found. > I'm looking into this. > > > > On Mon, Aug 28, 2017 at 11:17 PM, Tal Liron <t...@cloudify.co> wrote: > >> Vish, I would very much appreciate if you could verify if ctx is available >> in these cases: >> >> 1) 0.1.1: system install >> 2) 0.1.1: virtualenv >> 3) git master: system install >> 4) git master: virtualenv >> >> Also, what OS are you using, and is there anything special about your >> install? >> >> >> On Mon, Aug 28, 2017 at 1:42 PM, DeWayne Filppi <dewa...@cloudify.co> >> wrote: >> >> > I have 0.1.1 and ctx is there. >> > >> > On Mon, Aug 28, 2017 at 11:34 AM, Vishwanath Jayaraman < >> > vishwana...@hotmail.com> wrote: >> > >> > > Tal, >> > > >> > > Appreciate the prompt response. >> > > >> > > Looks like the apache-ariatosca version that gets installed when >> > following >> > > instructions at http://ariatosca.incubator.apa >> che.org/getting-started/ >> > > is 0.1.1 (in my case) and in your output, the version is 0.2.0. >> > > >> > > So, like you mentioned in your earlier email, there could be a bug in >> > > 0.1.1. >> > > >> > > Also, I do not see in the "Requires:" section of the output anything >> > > related to "ctx", I am guessing ctx is installed when >> apache-ariatosca is >> > > installed. >> > > >> > > >> > > If one other person can confirm that "ctx" is not installed when >> > > apache-ariatosca version 0.1.1 is installed, do you think we should >> open >> > a >> > > bug? >> > > >> > > Thoughts, suggestions? >> > > >> > > Thanks >> > > >> > > Vish >> > > >> > > >> > > >> > > From: Tal Liron <t...@cloudify.co> >> > > Sent: Monday, August 28, 2017 1:11 PM >> > > To: dev@ariatosca.incubator.apache.org >> > > Subject: Re: Seeing error "Validation issues: unknown parent type >> > > "tosca:Root" in WebServer" >> > > >> > > Name: apache-ariatosca >> > > Version: 0.2.0 >> > > Summary: ARIA >> > > Home-page: http://ariatosca.incubator.apache.org/ >> > > Welcome to The Apache Software Foundation!<http://ariatosca. >> > > incubator.apache.org/> >> > > ariatosca.incubator.apache.org >> > > Open. The Apache Software Foundation. provides support for the Apache >> > > Community of open-source software projects, which provide software >> > products >> > > for the public good. >> > > >> > > >> > > >> > > Author: ARIA >> > > Author-email: dev@ariatosca.incubator.apache.org >> > > License: Apache License 2.0 >> > > Location: /home/user/ariatosca >> > > Requires: requests, networkx, retrying, blinker, jsonpickle, >> ruamel.yaml, >> > > J
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Vishwanath, Sorry for not having followed up this issue earlier. I tried launching a 16.04 container earlier and following your steps, and indeed ctx was nowhere to be found. I'm looking into this. On Mon, Aug 28, 2017 at 11:17 PM, Tal Liron <t...@cloudify.co> wrote: > Vish, I would very much appreciate if you could verify if ctx is available > in these cases: > > 1) 0.1.1: system install > 2) 0.1.1: virtualenv > 3) git master: system install > 4) git master: virtualenv > > Also, what OS are you using, and is there anything special about your > install? > > > On Mon, Aug 28, 2017 at 1:42 PM, DeWayne Filppi <dewa...@cloudify.co> > wrote: > > > I have 0.1.1 and ctx is there. > > > > On Mon, Aug 28, 2017 at 11:34 AM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > Tal, > > > > > > Appreciate the prompt response. > > > > > > Looks like the apache-ariatosca version that gets installed when > > following > > > instructions at http://ariatosca.incubator.apache.org/getting-started/ > > > is 0.1.1 (in my case) and in your output, the version is 0.2.0. > > > > > > So, like you mentioned in your earlier email, there could be a bug in > > > 0.1.1. > > > > > > Also, I do not see in the "Requires:" section of the output anything > > > related to "ctx", I am guessing ctx is installed when apache-ariatosca > is > > > installed. > > > > > > > > > If one other person can confirm that "ctx" is not installed when > > > apache-ariatosca version 0.1.1 is installed, do you think we should > open > > a > > > bug? > > > > > > Thoughts, suggestions? > > > > > > Thanks > > > > > > Vish > > > > > > > > > > > > From: Tal Liron <t...@cloudify.co> > > > Sent: Monday, August 28, 2017 1:11 PM > > > To: dev@ariatosca.incubator.apache.org > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > "tosca:Root" in WebServer" > > > > > > Name: apache-ariatosca > > > Version: 0.2.0 > > > Summary: ARIA > > > Home-page: http://ariatosca.incubator.apache.org/ > > > Welcome to The Apache Software Foundation!<http://ariatosca. > > > incubator.apache.org/> > > > ariatosca.incubator.apache.org > > > Open. The Apache Software Foundation. provides support for the Apache > > > Community of open-source software projects, which provide software > > products > > > for the public good. > > > > > > > > > > > > Author: ARIA > > > Author-email: dev@ariatosca.incubator.apache.org > > > License: Apache License 2.0 > > > Location: /home/user/ariatosca > > > Requires: requests, networkx, retrying, blinker, jsonpickle, > ruamel.yaml, > > > Jinja2, shortuuid, CacheControl, SQLAlchemy, wagon, bottle, setuptools, > > > click, colorama, PrettyTable, click-didyoumean, > > > backports.shutil-get-terminal-size, logutils, psutil > > > > > > > > > On Mon, Aug 28, 2017 at 12:48 PM, Vishwanath Jayaraman < > > > vishwana...@hotmail.com> wrote: > > > > > > > Tal, > > > > > > > > Do you mind sharing the output of command "pip show apache-ariatosca" > > > from > > > > your development environment? > > > > > > > > Thanks > > > > > > > > > > > > Vish > > > > > > > > > > > > > > > > From: Tal Liron <t...@cloudify.co> > > > > Sent: Monday, August 28, 2017 11:49 AM > > > > To: dev@ariatosca.incubator.apache.org > > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > > "tosca:Root" in WebServer" > > > > > > > > That is definitely a bug. Could you please try installing > > > apache-ariatosca > > > > in a virtualenv and see if you get the ctx link there? We mostly test > > in > > > > virtualenvs. > > > > > > > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > > > > vishwana...@hotmail.com> wrote: > > > > > > > > > After the installation of apache-ariatosca, I executed the "pip > show > > > > > apache-ariatosca" comman
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Vish, I would very much appreciate if you could verify if ctx is available in these cases: 1) 0.1.1: system install 2) 0.1.1: virtualenv 3) git master: system install 4) git master: virtualenv Also, what OS are you using, and is there anything special about your install? On Mon, Aug 28, 2017 at 1:42 PM, DeWayne Filppi <dewa...@cloudify.co> wrote: > I have 0.1.1 and ctx is there. > > On Mon, Aug 28, 2017 at 11:34 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > Tal, > > > > Appreciate the prompt response. > > > > Looks like the apache-ariatosca version that gets installed when > following > > instructions at http://ariatosca.incubator.apache.org/getting-started/ > > is 0.1.1 (in my case) and in your output, the version is 0.2.0. > > > > So, like you mentioned in your earlier email, there could be a bug in > > 0.1.1. > > > > Also, I do not see in the "Requires:" section of the output anything > > related to "ctx", I am guessing ctx is installed when apache-ariatosca is > > installed. > > > > > > If one other person can confirm that "ctx" is not installed when > > apache-ariatosca version 0.1.1 is installed, do you think we should open > a > > bug? > > > > Thoughts, suggestions? > > > > Thanks > > > > Vish > > > > > > ________ > > From: Tal Liron <t...@cloudify.co> > > Sent: Monday, August 28, 2017 1:11 PM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > Name: apache-ariatosca > > Version: 0.2.0 > > Summary: ARIA > > Home-page: http://ariatosca.incubator.apache.org/ > > Welcome to The Apache Software Foundation!<http://ariatosca. > > incubator.apache.org/> > > ariatosca.incubator.apache.org > > Open. The Apache Software Foundation. provides support for the Apache > > Community of open-source software projects, which provide software > products > > for the public good. > > > > > > > > Author: ARIA > > Author-email: dev@ariatosca.incubator.apache.org > > License: Apache License 2.0 > > Location: /home/user/ariatosca > > Requires: requests, networkx, retrying, blinker, jsonpickle, ruamel.yaml, > > Jinja2, shortuuid, CacheControl, SQLAlchemy, wagon, bottle, setuptools, > > click, colorama, PrettyTable, click-didyoumean, > > backports.shutil-get-terminal-size, logutils, psutil > > > > > > On Mon, Aug 28, 2017 at 12:48 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > Tal, > > > > > > Do you mind sharing the output of command "pip show apache-ariatosca" > > from > > > your development environment? > > > > > > Thanks > > > > > > > > > Vish > > > > > > > > > > > > From: Tal Liron <t...@cloudify.co> > > > Sent: Monday, August 28, 2017 11:49 AM > > > To: dev@ariatosca.incubator.apache.org > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > "tosca:Root" in WebServer" > > > > > > That is definitely a bug. Could you please try installing > > apache-ariatosca > > > in a virtualenv and see if you get the ctx link there? We mostly test > in > > > virtualenvs. > > > > > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > > > vishwana...@hotmail.com> wrote: > > > > > > > After the installation of apache-ariatosca, I executed the "pip show > > > > apache-ariatosca" command and below is the console output. Which of > the > > > > below is related to "ctx"? Also, the /usr/local/bin/ is missing the > > 'ctx' > > > > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in > that > > > > location. > > > > > > > > > > > > ==Begin Console Output=== > > > > > > > > Name: apache-ariatosca > > > > > > > > Version: 0.1.1 > > > > > > > > Summary: ARIA > > > > > > > > Home-page: http://ariatosca.incubator.apache.org/ > > Welcome to The Apache Software Foundation!<http://ariatosca. > > incubator.apache.org/> > > ariatosca.incubator.apache.org > > Open. The Apache Software Found
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
I have 0.1.1 and ctx is there. On Mon, Aug 28, 2017 at 11:34 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Tal, > > Appreciate the prompt response. > > Looks like the apache-ariatosca version that gets installed when following > instructions at http://ariatosca.incubator.apache.org/getting-started/ > is 0.1.1 (in my case) and in your output, the version is 0.2.0. > > So, like you mentioned in your earlier email, there could be a bug in > 0.1.1. > > Also, I do not see in the "Requires:" section of the output anything > related to "ctx", I am guessing ctx is installed when apache-ariatosca is > installed. > > > If one other person can confirm that "ctx" is not installed when > apache-ariatosca version 0.1.1 is installed, do you think we should open a > bug? > > Thoughts, suggestions? > > Thanks > > Vish > > > > From: Tal Liron <t...@cloudify.co> > Sent: Monday, August 28, 2017 1:11 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Name: apache-ariatosca > Version: 0.2.0 > Summary: ARIA > Home-page: http://ariatosca.incubator.apache.org/ > Welcome to The Apache Software Foundation!<http://ariatosca. > incubator.apache.org/> > ariatosca.incubator.apache.org > Open. The Apache Software Foundation. provides support for the Apache > Community of open-source software projects, which provide software products > for the public good. > > > > Author: ARIA > Author-email: dev@ariatosca.incubator.apache.org > License: Apache License 2.0 > Location: /home/user/ariatosca > Requires: requests, networkx, retrying, blinker, jsonpickle, ruamel.yaml, > Jinja2, shortuuid, CacheControl, SQLAlchemy, wagon, bottle, setuptools, > click, colorama, PrettyTable, click-didyoumean, > backports.shutil-get-terminal-size, logutils, psutil > > > On Mon, Aug 28, 2017 at 12:48 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > Tal, > > > > Do you mind sharing the output of command "pip show apache-ariatosca" > from > > your development environment? > > > > Thanks > > > > > > Vish > > > > > > > > From: Tal Liron <t...@cloudify.co> > > Sent: Monday, August 28, 2017 11:49 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > That is definitely a bug. Could you please try installing > apache-ariatosca > > in a virtualenv and see if you get the ctx link there? We mostly test in > > virtualenvs. > > > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > After the installation of apache-ariatosca, I executed the "pip show > > > apache-ariatosca" command and below is the console output. Which of the > > > below is related to "ctx"? Also, the /usr/local/bin/ is missing the > 'ctx' > > > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > > > location. > > > > > > > > > ==Begin Console Output=== > > > > > > Name: apache-ariatosca > > > > > > Version: 0.1.1 > > > > > > Summary: ARIA > > > > > > Home-page: http://ariatosca.incubator.apache.org/ > Welcome to The Apache Software Foundation!<http://ariatosca. > incubator.apache.org/> > ariatosca.incubator.apache.org > Open. The Apache Software Foundation. provides support for the Apache > Community of open-source software projects, which provide software products > for the public good. > > > > > Welcome to The Apache Software Foundation!<http://ariatosca. > > incubator.apache.org/> > > ariatosca.incubator.apache.org > > Open. The Apache Software Foundation. provides support for the Apache > > Community of open-source software projects, which provide software > products > > for the public good. > > > > > > > > > > > > Author: ARIA > > > > > > Author-email: dev@ariatosca.incubator.apache.org > > > > > > License: Apache License 2.0 > > > > > > Location: /usr/local/lib/python2.7/dist-packages > > > > > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > > > PrettyTable, jsonpickle, click-didyoumean, blinker, > &
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Tal, Appreciate the prompt response. Looks like the apache-ariatosca version that gets installed when following instructions at http://ariatosca.incubator.apache.org/getting-started/ is 0.1.1 (in my case) and in your output, the version is 0.2.0. So, like you mentioned in your earlier email, there could be a bug in 0.1.1. Also, I do not see in the "Requires:" section of the output anything related to "ctx", I am guessing ctx is installed when apache-ariatosca is installed. If one other person can confirm that "ctx" is not installed when apache-ariatosca version 0.1.1 is installed, do you think we should open a bug? Thoughts, suggestions? Thanks Vish From: Tal Liron <t...@cloudify.co> Sent: Monday, August 28, 2017 1:11 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Name: apache-ariatosca Version: 0.2.0 Summary: ARIA Home-page: http://ariatosca.incubator.apache.org/ Welcome to The Apache Software Foundation!<http://ariatosca.incubator.apache.org/> ariatosca.incubator.apache.org Open. The Apache Software Foundation. provides support for the Apache Community of open-source software projects, which provide software products for the public good. Author: ARIA Author-email: dev@ariatosca.incubator.apache.org License: Apache License 2.0 Location: /home/user/ariatosca Requires: requests, networkx, retrying, blinker, jsonpickle, ruamel.yaml, Jinja2, shortuuid, CacheControl, SQLAlchemy, wagon, bottle, setuptools, click, colorama, PrettyTable, click-didyoumean, backports.shutil-get-terminal-size, logutils, psutil On Mon, Aug 28, 2017 at 12:48 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Tal, > > Do you mind sharing the output of command "pip show apache-ariatosca" from > your development environment? > > Thanks > > > Vish > > > > From: Tal Liron <t...@cloudify.co> > Sent: Monday, August 28, 2017 11:49 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > That is definitely a bug. Could you please try installing apache-ariatosca > in a virtualenv and see if you get the ctx link there? We mostly test in > virtualenvs. > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > After the installation of apache-ariatosca, I executed the "pip show > > apache-ariatosca" command and below is the console output. Which of the > > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > > location. > > > > > > ==Begin Console Output=== > > > > Name: apache-ariatosca > > > > Version: 0.1.1 > > > > Summary: ARIA > > > > Home-page: http://ariatosca.incubator.apache.org/ Welcome to The Apache Software Foundation!<http://ariatosca.incubator.apache.org/> ariatosca.incubator.apache.org Open. The Apache Software Foundation. provides support for the Apache Community of open-source software projects, which provide software products for the public good. > Welcome to The Apache Software Foundation!<http://ariatosca. > incubator.apache.org/> > ariatosca.incubator.apache.org > Open. The Apache Software Foundation. provides support for the Apache > Community of open-source software projects, which provide software products > for the public good. > > > > > > > Author: ARIA > > > > Author-email: dev@ariatosca.incubator.apache.org > > > > License: Apache License 2.0 > > > > Location: /usr/local/lib/python2.7/dist-packages > > > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > > PrettyTable, jsonpickle, click-didyoumean, blinker, > > backports.shutil-get-terminal-size, clint, colorama, wagon, > CacheControl, > > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > > > ==End Console output= > > > > > > Vish > > > > > > > > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > > Sent: Friday, August 25, 2017 11:20 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > > > Ran, > > > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > > >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Name: apache-ariatosca Version: 0.2.0 Summary: ARIA Home-page: http://ariatosca.incubator.apache.org/ Author: ARIA Author-email: dev@ariatosca.incubator.apache.org License: Apache License 2.0 Location: /home/user/ariatosca Requires: requests, networkx, retrying, blinker, jsonpickle, ruamel.yaml, Jinja2, shortuuid, CacheControl, SQLAlchemy, wagon, bottle, setuptools, click, colorama, PrettyTable, click-didyoumean, backports.shutil-get-terminal-size, logutils, psutil On Mon, Aug 28, 2017 at 12:48 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Tal, > > Do you mind sharing the output of command "pip show apache-ariatosca" from > your development environment? > > Thanks > > > Vish > > > > From: Tal Liron <t...@cloudify.co> > Sent: Monday, August 28, 2017 11:49 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > That is definitely a bug. Could you please try installing apache-ariatosca > in a virtualenv and see if you get the ctx link there? We mostly test in > virtualenvs. > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > After the installation of apache-ariatosca, I executed the "pip show > > apache-ariatosca" command and below is the console output. Which of the > > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > > location. > > > > > > ==Begin Console Output=== > > > > Name: apache-ariatosca > > > > Version: 0.1.1 > > > > Summary: ARIA > > > > Home-page: http://ariatosca.incubator.apache.org/ > Welcome to The Apache Software Foundation!<http://ariatosca. > incubator.apache.org/> > ariatosca.incubator.apache.org > Open. The Apache Software Foundation. provides support for the Apache > Community of open-source software projects, which provide software products > for the public good. > > > > > > > Author: ARIA > > > > Author-email: dev@ariatosca.incubator.apache.org > > > > License: Apache License 2.0 > > > > Location: /usr/local/lib/python2.7/dist-packages > > > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > > PrettyTable, jsonpickle, click-didyoumean, blinker, > > backports.shutil-get-terminal-size, clint, colorama, wagon, > CacheControl, > > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > > > ==End Console output= > > > > > > Vish > > > > > > > > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > > Sent: Friday, August 25, 2017 11:20 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > > > Ran, > > > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > > > 1 sudo apt-get update -y > > 2 sudo apt install -y python-pip git > > 3 sudo pip install --upgrade pip setuptools > > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > 5 sudo pip install apache-ariatosca > > 6 sudo pip install apache-ariatosca[ssh] > > 7 ctx (console output message is "ctx: command not found") > > > > From the above steps, does it look like I could be missing something that > > is not installing the 'ctx' binary. > > > > > > Thanks > > > > Vish > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > Sent: Friday, August 25, 2017 4:43 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > Hi Vishwanath, > > > > Thanks for helping in updating the hello-world example readme. Sorry > about > > the lack of clarity there regarding the need to copy the template's > > resources as well. > > > > Regarding the ctx error, the ctx is a binary that should get installed in > > your environment when you install ARIA. It should not be installed > > separately. > > try reinstalling ARIA and running "ctx" from the shell - that should give > > you an error, but one from the "ctx" program, not one that s
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Tal, Do you mind sharing the output of command "pip show apache-ariatosca" from your development environment? Thanks Vish From: Tal Liron <t...@cloudify.co> Sent: Monday, August 28, 2017 11:49 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" That is definitely a bug. Could you please try installing apache-ariatosca in a virtualenv and see if you get the ctx link there? We mostly test in virtualenvs. On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > After the installation of apache-ariatosca, I executed the "pip show > apache-ariatosca" command and below is the console output. Which of the > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > location. > > > ==Begin Console Output=== > > Name: apache-ariatosca > > Version: 0.1.1 > > Summary: ARIA > > Home-page: http://ariatosca.incubator.apache.org/ Welcome to The Apache Software Foundation!<http://ariatosca.incubator.apache.org/> ariatosca.incubator.apache.org Open. The Apache Software Foundation. provides support for the Apache Community of open-source software projects, which provide software products for the public good. > > Author: ARIA > > Author-email: dev@ariatosca.incubator.apache.org > > License: Apache License 2.0 > > Location: /usr/local/lib/python2.7/dist-packages > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > PrettyTable, jsonpickle, click-didyoumean, blinker, > backports.shutil-get-terminal-size, clint, colorama, wagon, CacheControl, > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > ==End Console output= > > > Vish > > > ________________ > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > Sent: Friday, August 25, 2017 11:20 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > > Ran, > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > 1 sudo apt-get update -y > 2 sudo apt install -y python-pip git > 3 sudo pip install --upgrade pip setuptools > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > 5 sudo pip install apache-ariatosca > 6 sudo pip install apache-ariatosca[ssh] > 7 ctx (console output message is "ctx: command not found") > > From the above steps, does it look like I could be missing something that > is not installing the 'ctx' binary. > > > Thanks > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Friday, August 25, 2017 4:43 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Hi Vishwanath, > > Thanks for helping in updating the hello-world example readme. Sorry about > the lack of clarity there regarding the need to copy the template's > resources as well. > > Regarding the ctx error, the ctx is a binary that should get installed in > your environment when you install ARIA. It should not be installed > separately. > try reinstalling ARIA and running "ctx" from the shell - that should give > you an error, but one from the "ctx" program, not one that such a program > was not found. > > > On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > For a first time user, its not apparent in the instructions at > > > > http://ariatosca.incubator.apache.org/getting-started/ that they may > need > > to copy the entire examples directory or clone the github repo, I will go > > ahead and open a JIRA to update the README.rst with those additional > > details. > > > > Only issue pending at this time is "ctx: command not found" error. Once, > I > > get a response on how that gets installed, I will include that in the > > dependencies section. > > > > > > Vish > > > > > > > > From: DeWayne Filppi <dewa...@cloudify.co> > > Sent: Thursday, August 24, 2017 1:28 PM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Ok, I will try installing in a virtualenv next. Just wanted to share that I tried the below steps on a ubuntu 16.04 Linux Container > 1 sudo apt-get update -y > 2 sudo apt install -y python-pip git > 3 sudo pip install --upgrade pip setuptools > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > 5 sudo pip install apache-ariatosca > 6 sudo pip install apache-ariatosca[ssh] > 7 ctx (console output message is "ctx: command not found") Additionally, I tried creating a Docker images using the below Dockerfile FROM ubuntu:16.04 RUN apt-get update && apt-get install -y \ python-dev \ gcc \ libffi-dev \ libssl-dev \ python-pip \ git \ wget RUN pip install --upgrade pip setuptools RUN pip install apache-ariatosca RUN pip install apache-ariatosca[ssh] WORKDIR /tmp RUN git clone https://github.com/apache/incubator-ariatosca.git /tmp/incubator-ariatosca RUN sed -i "s/tosca:Root/tosca.nodes.Root/g" /tmp/incubator-ariatosca/examples/hello-world/helloworld.yaml In both the cases which act as an isolated environment, I have seen the issue Vish From: Tal Liron <t...@cloudify.co> Sent: Monday, August 28, 2017 11:49 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" That is definitely a bug. Could you please try installing apache-ariatosca in a virtualenv and see if you get the ctx link there? We mostly test in virtualenvs. On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > After the installation of apache-ariatosca, I executed the "pip show > apache-ariatosca" command and below is the console output. Which of the > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > location. > > > ==Begin Console Output=== > > Name: apache-ariatosca > > Version: 0.1.1 > > Summary: ARIA > > Home-page: http://ariatosca.incubator.apache.org/ Welcome to The Apache Software Foundation!<http://ariatosca.incubator.apache.org/> ariatosca.incubator.apache.org Open. The Apache Software Foundation. provides support for the Apache Community of open-source software projects, which provide software products for the public good. > > Author: ARIA > > Author-email: dev@ariatosca.incubator.apache.org > > License: Apache License 2.0 > > Location: /usr/local/lib/python2.7/dist-packages > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > PrettyTable, jsonpickle, click-didyoumean, blinker, > backports.shutil-get-terminal-size, clint, colorama, wagon, CacheControl, > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > ==End Console output= > > > Vish > > > ________ > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > Sent: Friday, August 25, 2017 11:20 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > > Ran, > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > 1 sudo apt-get update -y > 2 sudo apt install -y python-pip git > 3 sudo pip install --upgrade pip setuptools > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > 5 sudo pip install apache-ariatosca > 6 sudo pip install apache-ariatosca[ssh] > 7 ctx (console output message is "ctx: command not found") > > From the above steps, does it look like I could be missing something that > is not installing the 'ctx' binary. > > > Thanks > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Friday, August 25, 2017 4:43 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Hi Vishwanath, > > Thanks for helping in updating the hello-world example readme. Sorry about > the lack of clarity there regarding the need to copy the template's > resources as well. > > Regarding the ctx error, the ctx is a binary that should get installed in > your environment when you install ARIA. It should not be installed > separately. > try reinstalling ARIA and running "ctx" from the shell - that should give > you an error, but one from the "ctx" program, not one that such a program > was not found. > > > On Fri, Aug 25, 2017 at 4:40 A
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Thats all I run in as well. On Mon, Aug 28, 2017 at 9:49 AM, Tal Liron <t...@cloudify.co> wrote: > That is definitely a bug. Could you please try installing apache-ariatosca > in a virtualenv and see if you get the ctx link there? We mostly test in > virtualenvs. > > On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > After the installation of apache-ariatosca, I executed the "pip show > > apache-ariatosca" command and below is the console output. Which of the > > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > > location. > > > > > > ==Begin Console Output=== > > > > Name: apache-ariatosca > > > > Version: 0.1.1 > > > > Summary: ARIA > > > > Home-page: http://ariatosca.incubator.apache.org/ > > > > Author: ARIA > > > > Author-email: dev@ariatosca.incubator.apache.org > > > > License: Apache License 2.0 > > > > Location: /usr/local/lib/python2.7/dist-packages > > > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > > PrettyTable, jsonpickle, click-didyoumean, blinker, > > backports.shutil-get-terminal-size, clint, colorama, wagon, > CacheControl, > > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > > > ==End Console output===== > > > > > > Vish > > > > > > > > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > > Sent: Friday, August 25, 2017 11:20 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > > > Ran, > > > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > > > 1 sudo apt-get update -y > > 2 sudo apt install -y python-pip git > > 3 sudo pip install --upgrade pip setuptools > > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > 5 sudo pip install apache-ariatosca > > 6 sudo pip install apache-ariatosca[ssh] > > 7 ctx (console output message is "ctx: command not found") > > > > From the above steps, does it look like I could be missing something that > > is not installing the 'ctx' binary. > > > > > > Thanks > > > > Vish > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > Sent: Friday, August 25, 2017 4:43 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > Hi Vishwanath, > > > > Thanks for helping in updating the hello-world example readme. Sorry > about > > the lack of clarity there regarding the need to copy the template's > > resources as well. > > > > Regarding the ctx error, the ctx is a binary that should get installed in > > your environment when you install ARIA. It should not be installed > > separately. > > try reinstalling ARIA and running "ctx" from the shell - that should give > > you an error, but one from the "ctx" program, not one that such a program > > was not found. > > > > > > On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > For a first time user, its not apparent in the instructions at > > > > > > http://ariatosca.incubator.apache.org/getting-started/ that they may > > need > > > to copy the entire examples directory or clone the github repo, I will > go > > > ahead and open a JIRA to update the README.rst with those additional > > > details. > > > > > > Only issue pending at this time is "ctx: command not found" error. > Once, > > I > > > get a response on how that gets installed, I will include that in the > > > dependencies section. > > > > > > > > > Vish > > > > > > > > > > > > From: DeWayne Filppi <dewa...@cloudify.co> > > > Sent: Thursday, August 24, 2017 1:28 PM > > > To: dev@ariatosca.incubator.apache.org > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > "tosca:Root" in WebServer" > >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
That is definitely a bug. Could you please try installing apache-ariatosca in a virtualenv and see if you get the ctx link there? We mostly test in virtualenvs. On Fri, Aug 25, 2017 at 9:27 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > After the installation of apache-ariatosca, I executed the "pip show > apache-ariatosca" command and below is the console output. Which of the > below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' > binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that > location. > > > ==Begin Console Output=== > > Name: apache-ariatosca > > Version: 0.1.1 > > Summary: ARIA > > Home-page: http://ariatosca.incubator.apache.org/ > > Author: ARIA > > Author-email: dev@ariatosca.incubator.apache.org > > License: Apache License 2.0 > > Location: /usr/local/lib/python2.7/dist-packages > > Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, > PrettyTable, jsonpickle, click-didyoumean, blinker, > backports.shutil-get-terminal-size, clint, colorama, wagon, CacheControl, > retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 > > ==End Console output= > > > Vish > > > > From: Vishwanath Jayaraman <vishwana...@hotmail.com> > Sent: Friday, August 25, 2017 11:20 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > > Ran, > > On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps > > 1 sudo apt-get update -y > 2 sudo apt install -y python-pip git > 3 sudo pip install --upgrade pip setuptools > 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > 5 sudo pip install apache-ariatosca > 6 sudo pip install apache-ariatosca[ssh] > 7 ctx (console output message is "ctx: command not found") > > From the above steps, does it look like I could be missing something that > is not installing the 'ctx' binary. > > > Thanks > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Friday, August 25, 2017 4:43 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Hi Vishwanath, > > Thanks for helping in updating the hello-world example readme. Sorry about > the lack of clarity there regarding the need to copy the template's > resources as well. > > Regarding the ctx error, the ctx is a binary that should get installed in > your environment when you install ARIA. It should not be installed > separately. > try reinstalling ARIA and running "ctx" from the shell - that should give > you an error, but one from the "ctx" program, not one that such a program > was not found. > > > On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > For a first time user, its not apparent in the instructions at > > > > http://ariatosca.incubator.apache.org/getting-started/ that they may > need > > to copy the entire examples directory or clone the github repo, I will go > > ahead and open a JIRA to update the README.rst with those additional > > details. > > > > Only issue pending at this time is "ctx: command not found" error. Once, > I > > get a response on how that gets installed, I will include that in the > > dependencies section. > > > > > > Vish > > > > > > > > From: DeWayne Filppi <dewa...@cloudify.co> > > Sent: Thursday, August 24, 2017 1:28 PM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > I'm running in a cloned github repo, so all is there. On another front, > > the Aria port type for Openstack requires that every port have a > > public/floating ip. > > > > On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > > > > > You need not just the helloworld YAML file, but also all the scripts it > > > references. Try copying the whole examples directory to make sure. > > > > > > We are planning to eventually display a validation error if the YAML > file > > > references artifacts that don't exist, so you wouldn't have to wait > until > > > execution to see the err
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
After the installation of apache-ariatosca, I executed the "pip show apache-ariatosca" command and below is the console output. Which of the below is related to "ctx"? Also, the /usr/local/bin/ is missing the 'ctx' binary on the 16.04 ubuntu, however, I do see the 'aria' binary in that location. ==Begin Console Output=== Name: apache-ariatosca Version: 0.1.1 Summary: ARIA Home-page: http://ariatosca.incubator.apache.org/ Author: ARIA Author-email: dev@ariatosca.incubator.apache.org License: Apache License 2.0 Location: /usr/local/lib/python2.7/dist-packages Requires: psutil, ruamel.yaml, SQLAlchemy, logutils, requests, PrettyTable, jsonpickle, click-didyoumean, blinker, backports.shutil-get-terminal-size, clint, colorama, wagon, CacheControl, retrying, bottle, click, setuptools, networkx, shortuuid, Jinja2 ==End Console output= Vish From: Vishwanath Jayaraman <vishwana...@hotmail.com> Sent: Friday, August 25, 2017 11:20 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Ran, On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps 1 sudo apt-get update -y 2 sudo apt install -y python-pip git 3 sudo pip install --upgrade pip setuptools 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev 5 sudo pip install apache-ariatosca 6 sudo pip install apache-ariatosca[ssh] 7 ctx (console output message is "ctx: command not found") >From the above steps, does it look like I could be missing something that is >not installing the 'ctx' binary. Thanks Vish From: Ran Ziv <r...@cloudify.co> Sent: Friday, August 25, 2017 4:43 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Hi Vishwanath, Thanks for helping in updating the hello-world example readme. Sorry about the lack of clarity there regarding the need to copy the template's resources as well. Regarding the ctx error, the ctx is a binary that should get installed in your environment when you install ARIA. It should not be installed separately. try reinstalling ARIA and running "ctx" from the shell - that should give you an error, but one from the "ctx" program, not one that such a program was not found. On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > For a first time user, its not apparent in the instructions at > > http://ariatosca.incubator.apache.org/getting-started/ that they may need > to copy the entire examples directory or clone the github repo, I will go > ahead and open a JIRA to update the README.rst with those additional > details. > > Only issue pending at this time is "ctx: command not found" error. Once, I > get a response on how that gets installed, I will include that in the > dependencies section. > > > Vish > > > ________________ > From: DeWayne Filppi <dewa...@cloudify.co> > Sent: Thursday, August 24, 2017 1:28 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > I'm running in a cloned github repo, so all is there. On another front, > the Aria port type for Openstack requires that every port have a > public/floating ip. > > On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > > > You need not just the helloworld YAML file, but also all the scripts it > > references. Try copying the whole examples directory to make sure. > > > > We are planning to eventually display a validation error if the YAML file > > references artifacts that don't exist, so you wouldn't have to wait until > > execution to see the error. This would be part of our general work on > > improving artifact support. > > > > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on > my > > > box. > > > > > > > > > From the instructions at http://ariatosca.incubator. > > > apache.org/getting-started/ > > > > > > I executed the > > > > > > aria service-templates store examples/helloworld.yaml > my-service-template > > > > > > command from the home directory. > > > > > > > > > > > > Additional Info: > > > > > > - I am running this on a fresh Ubuntu 16.04 system &
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Ran, On a fresh Ubuntu 16.04.3 LTS install, I followed the below steps 1 sudo apt-get update -y 2 sudo apt install -y python-pip git 3 sudo pip install --upgrade pip setuptools 4 sudo apt-get install -y python-dev gcc libffi-dev libssl-dev 5 sudo pip install apache-ariatosca 6 sudo pip install apache-ariatosca[ssh] 7 ctx (console output message is "ctx: command not found") >From the above steps, does it look like I could be missing something that is >not installing the 'ctx' binary. Thanks Vish From: Ran Ziv <r...@cloudify.co> Sent: Friday, August 25, 2017 4:43 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Hi Vishwanath, Thanks for helping in updating the hello-world example readme. Sorry about the lack of clarity there regarding the need to copy the template's resources as well. Regarding the ctx error, the ctx is a binary that should get installed in your environment when you install ARIA. It should not be installed separately. try reinstalling ARIA and running "ctx" from the shell - that should give you an error, but one from the "ctx" program, not one that such a program was not found. On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > For a first time user, its not apparent in the instructions at > > http://ariatosca.incubator.apache.org/getting-started/ that they may need > to copy the entire examples directory or clone the github repo, I will go > ahead and open a JIRA to update the README.rst with those additional > details. > > Only issue pending at this time is "ctx: command not found" error. Once, I > get a response on how that gets installed, I will include that in the > dependencies section. > > > Vish > > > > From: DeWayne Filppi <dewa...@cloudify.co> > Sent: Thursday, August 24, 2017 1:28 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > I'm running in a cloned github repo, so all is there. On another front, > the Aria port type for Openstack requires that every port have a > public/floating ip. > > On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > > > You need not just the helloworld YAML file, but also all the scripts it > > references. Try copying the whole examples directory to make sure. > > > > We are planning to eventually display a validation error if the YAML file > > references artifacts that don't exist, so you wouldn't have to wait until > > execution to see the error. This would be part of our general work on > > improving artifact support. > > > > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on > my > > > box. > > > > > > > > > From the instructions at http://ariatosca.incubator. > > > apache.org/getting-started/ > > > > > > I executed the > > > > > > aria service-templates store examples/helloworld.yaml > my-service-template > > > > > > command from the home directory. > > > > > > > > > > > > Additional Info: > > > > > > - I am running this on a fresh Ubuntu 16.04 system > > > > > > > > > ARIA Installation sequence followed is below > > > > > > - sudo apt-get update > > > > > > - sudo apt-install python-pip > > > > > > - pip install --upgrade pip setuptools > > > > > > - sudo pip install apache-ariatosca > > > > > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > > > > > - sudo pip install apache-ariatosca[ssh] > > > > > > > > > After I execute > > > > > > 'aria service-templates store examples/helloworld.yaml > > my-service-template > > > -vvv' > > > > > > I do not see the 'images', 'index.html' and 'scripts' in the > > > > > > '.aria/resources/service_template/1/'. > > > > > > I am guessing this is generated by the code. > > > > > > > > > Vish > > > > > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > > Sent: Thursday, August 24, 2017 4:22 AM > > > To: dev@ariatosca.incubator.apache.
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
I think I responded to the wrong thread. Thanks On Fri, Aug 25, 2017 at 2:44 AM, Ran Ziv <r...@cloudify.co> wrote: > DeWayne, not really sure how the port-floatingip issue got linked on this > thread, but in any case it's a known issue and the problem has already been > fixed in this PR: > https://github.com/cloudify-cosmo/aria-extension-cloudify/pull/52 > > But it hasn't been merged yet. Should happen over the next week. > > > Ran > > On Fri, Aug 25, 2017 at 12:43 PM, Ran Ziv <r...@cloudify.co> wrote: > > > Hi Vishwanath, > > > > Thanks for helping in updating the hello-world example readme. Sorry > about > > the lack of clarity there regarding the need to copy the template's > > resources as well. > > > > Regarding the ctx error, the ctx is a binary that should get installed in > > your environment when you install ARIA. It should not be installed > > separately. > > try reinstalling ARIA and running "ctx" from the shell - that should give > > you an error, but one from the "ctx" program, not one that such a program > > was not found. > > > > > > On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > >> For a first time user, its not apparent in the instructions at > >> > >> http://ariatosca.incubator.apache.org/getting-started/ that they may > >> need to copy the entire examples directory or clone the github repo, I > will > >> go ahead and open a JIRA to update the README.rst with those additional > >> details. > >> > >> Only issue pending at this time is "ctx: command not found" error. Once, > >> I get a response on how that gets installed, I will include that in the > >> dependencies section. > >> > >> > >> Vish > >> > >> > >> > >> From: DeWayne Filppi <dewa...@cloudify.co> > >> Sent: Thursday, August 24, 2017 1:28 PM > >> To: dev@ariatosca.incubator.apache.org > >> Subject: Re: Seeing error "Validation issues: unknown parent type > >> "tosca:Root" in WebServer" > >> > >> I'm running in a cloned github repo, so all is there. On another front, > >> the Aria port type for Openstack requires that every port have a > >> public/floating ip. > >> > >> On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > >> > >> > You need not just the helloworld YAML file, but also all the scripts > it > >> > references. Try copying the whole examples directory to make sure. > >> > > >> > We are planning to eventually display a validation error if the YAML > >> file > >> > references artifacts that don't exist, so you wouldn't have to wait > >> until > >> > execution to see the error. This would be part of our general work on > >> > improving artifact support. > >> > > >> > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > >> > vishwana...@hotmail.com> wrote: > >> > > >> > > I copied the helloworld.yaml to '~/examples' (i.e home directory) > on > >> my > >> > > box. > >> > > > >> > > > >> > > From the instructions at http://ariatosca.incubator. > >> > > apache.org/getting-started/ > >> > > > >> > > I executed the > >> > > > >> > > aria service-templates store examples/helloworld.yaml > >> my-service-template > >> > > > >> > > command from the home directory. > >> > > > >> > > > >> > > > >> > > Additional Info: > >> > > > >> > > - I am running this on a fresh Ubuntu 16.04 system > >> > > > >> > > > >> > > ARIA Installation sequence followed is below > >> > > > >> > > - sudo apt-get update > >> > > > >> > > - sudo apt-install python-pip > >> > > > >> > > - pip install --upgrade pip setuptools > >> > > > >> > > - sudo pip install apache-ariatosca > >> > > > >> > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > >> > > > >> > > - sudo pip install apache-ariatosca[ssh] > >> > > > >> > > > >> > > After I execute > >> >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
DeWayne, not really sure how the port-floatingip issue got linked on this thread, but in any case it's a known issue and the problem has already been fixed in this PR: https://github.com/cloudify-cosmo/aria-extension-cloudify/pull/52 But it hasn't been merged yet. Should happen over the next week. Ran On Fri, Aug 25, 2017 at 12:43 PM, Ran Ziv <r...@cloudify.co> wrote: > Hi Vishwanath, > > Thanks for helping in updating the hello-world example readme. Sorry about > the lack of clarity there regarding the need to copy the template's > resources as well. > > Regarding the ctx error, the ctx is a binary that should get installed in > your environment when you install ARIA. It should not be installed > separately. > try reinstalling ARIA and running "ctx" from the shell - that should give > you an error, but one from the "ctx" program, not one that such a program > was not found. > > > On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > >> For a first time user, its not apparent in the instructions at >> >> http://ariatosca.incubator.apache.org/getting-started/ that they may >> need to copy the entire examples directory or clone the github repo, I will >> go ahead and open a JIRA to update the README.rst with those additional >> details. >> >> Only issue pending at this time is "ctx: command not found" error. Once, >> I get a response on how that gets installed, I will include that in the >> dependencies section. >> >> >> Vish >> >> >> ________________ >> From: DeWayne Filppi <dewa...@cloudify.co> >> Sent: Thursday, August 24, 2017 1:28 PM >> To: dev@ariatosca.incubator.apache.org >> Subject: Re: Seeing error "Validation issues: unknown parent type >> "tosca:Root" in WebServer" >> >> I'm running in a cloned github repo, so all is there. On another front, >> the Aria port type for Openstack requires that every port have a >> public/floating ip. >> >> On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: >> >> > You need not just the helloworld YAML file, but also all the scripts it >> > references. Try copying the whole examples directory to make sure. >> > >> > We are planning to eventually display a validation error if the YAML >> file >> > references artifacts that don't exist, so you wouldn't have to wait >> until >> > execution to see the error. This would be part of our general work on >> > improving artifact support. >> > >> > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < >> > vishwana...@hotmail.com> wrote: >> > >> > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on >> my >> > > box. >> > > >> > > >> > > From the instructions at http://ariatosca.incubator. >> > > apache.org/getting-started/ >> > > >> > > I executed the >> > > >> > > aria service-templates store examples/helloworld.yaml >> my-service-template >> > > >> > > command from the home directory. >> > > >> > > >> > > >> > > Additional Info: >> > > >> > > - I am running this on a fresh Ubuntu 16.04 system >> > > >> > > >> > > ARIA Installation sequence followed is below >> > > >> > > - sudo apt-get update >> > > >> > > - sudo apt-install python-pip >> > > >> > > - pip install --upgrade pip setuptools >> > > >> > > - sudo pip install apache-ariatosca >> > > >> > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev >> > > >> > > - sudo pip install apache-ariatosca[ssh] >> > > >> > > >> > > After I execute >> > > >> > > 'aria service-templates store examples/helloworld.yaml >> > my-service-template >> > > -vvv' >> > > >> > > I do not see the 'images', 'index.html' and 'scripts' in the >> > > >> > > '.aria/resources/service_template/1/'. >> > > >> > > I am guessing this is generated by the code. >> > > >> > > >> > > Vish >> > > >> > > >> > > >> > > From: Ran Ziv <r...@cloudify.co> >> > > Sent: Thursday, August 24, 2017 4:22 AM >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Hi Vishwanath, Thanks for helping in updating the hello-world example readme. Sorry about the lack of clarity there regarding the need to copy the template's resources as well. Regarding the ctx error, the ctx is a binary that should get installed in your environment when you install ARIA. It should not be installed separately. try reinstalling ARIA and running "ctx" from the shell - that should give you an error, but one from the "ctx" program, not one that such a program was not found. On Fri, Aug 25, 2017 at 4:40 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > For a first time user, its not apparent in the instructions at > > http://ariatosca.incubator.apache.org/getting-started/ that they may need > to copy the entire examples directory or clone the github repo, I will go > ahead and open a JIRA to update the README.rst with those additional > details. > > Only issue pending at this time is "ctx: command not found" error. Once, I > get a response on how that gets installed, I will include that in the > dependencies section. > > > Vish > > > > From: DeWayne Filppi <dewa...@cloudify.co> > Sent: Thursday, August 24, 2017 1:28 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > I'm running in a cloned github repo, so all is there. On another front, > the Aria port type for Openstack requires that every port have a > public/floating ip. > > On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > > > You need not just the helloworld YAML file, but also all the scripts it > > references. Try copying the whole examples directory to make sure. > > > > We are planning to eventually display a validation error if the YAML file > > references artifacts that don't exist, so you wouldn't have to wait until > > execution to see the error. This would be part of our general work on > > improving artifact support. > > > > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on > my > > > box. > > > > > > > > > From the instructions at http://ariatosca.incubator. > > > apache.org/getting-started/ > > > > > > I executed the > > > > > > aria service-templates store examples/helloworld.yaml > my-service-template > > > > > > command from the home directory. > > > > > > > > > > > > Additional Info: > > > > > > - I am running this on a fresh Ubuntu 16.04 system > > > > > > > > > ARIA Installation sequence followed is below > > > > > > - sudo apt-get update > > > > > > - sudo apt-install python-pip > > > > > > - pip install --upgrade pip setuptools > > > > > > - sudo pip install apache-ariatosca > > > > > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > > > > > - sudo pip install apache-ariatosca[ssh] > > > > > > > > > After I execute > > > > > > 'aria service-templates store examples/helloworld.yaml > > my-service-template > > > -vvv' > > > > > > I do not see the 'images', 'index.html' and 'scripts' in the > > > > > > '.aria/resources/service_template/1/'. > > > > > > I am guessing this is generated by the code. > > > > > > > > > Vish > > > > > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > > Sent: Thursday, August 24, 2017 4:22 AM > > > To: dev@ariatosca.incubator.apache.org > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > "tosca:Root" in WebServer" > > > > > > No, it doesn't :) > > > This is what mine looks like: > > > > > > $ ls ~/.aria/resources/service_template/2/ > > > hello-world.yaml images index.html scripts > > > > > > How did you store the service-template? What was the directory you were > > in > > > when running the store command? (not that it should matter, but I don't > > > have any better clue at the moment) > > > > > > > > > > > > On Thu, Aug 24, 2017 at 10:51 AM, Vishwanath Jayaraman < > > > vishwana...@hotmail.com> wrote: > > > > > >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
For a first time user, its not apparent in the instructions at http://ariatosca.incubator.apache.org/getting-started/ that they may need to copy the entire examples directory or clone the github repo, I will go ahead and open a JIRA to update the README.rst with those additional details. Only issue pending at this time is "ctx: command not found" error. Once, I get a response on how that gets installed, I will include that in the dependencies section. Vish From: DeWayne Filppi <dewa...@cloudify.co> Sent: Thursday, August 24, 2017 1:28 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" I'm running in a cloned github repo, so all is there. On another front, the Aria port type for Openstack requires that every port have a public/floating ip. On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > You need not just the helloworld YAML file, but also all the scripts it > references. Try copying the whole examples directory to make sure. > > We are planning to eventually display a validation error if the YAML file > references artifacts that don't exist, so you wouldn't have to wait until > execution to see the error. This would be part of our general work on > improving artifact support. > > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on my > > box. > > > > > > From the instructions at http://ariatosca.incubator. > > apache.org/getting-started/ > > > > I executed the > > > > aria service-templates store examples/helloworld.yaml my-service-template > > > > command from the home directory. > > > > > > > > Additional Info: > > > > - I am running this on a fresh Ubuntu 16.04 system > > > > > > ARIA Installation sequence followed is below > > > > - sudo apt-get update > > > > - sudo apt-install python-pip > > > > - pip install --upgrade pip setuptools > > > > - sudo pip install apache-ariatosca > > > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > > > - sudo pip install apache-ariatosca[ssh] > > > > > > After I execute > > > > 'aria service-templates store examples/helloworld.yaml > my-service-template > > -vvv' > > > > I do not see the 'images', 'index.html' and 'scripts' in the > > > > '.aria/resources/service_template/1/'. > > > > I am guessing this is generated by the code. > > > > > > Vish > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > Sent: Thursday, August 24, 2017 4:22 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > No, it doesn't :) > > This is what mine looks like: > > > > $ ls ~/.aria/resources/service_template/2/ > > hello-world.yaml images index.html scripts > > > > How did you store the service-template? What was the directory you were > in > > when running the store command? (not that it should matter, but I don't > > have any better clue at the moment) > > > > > > > > On Thu, Aug 24, 2017 at 10:51 AM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > Find below the console output , does it look right? > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/ > > > total 6 > > > -rw-rw-r-- 1 ubuntu ubuntu 14897 Aug 23 20:53 cli.log > > > -rw-rw-r-- 1 ubuntu ubuntu 1246 Aug 23 20:48 config.yaml > > > drwxrwxr-x 2 ubuntu ubuntu 3 Aug 23 20:53 models > > > drwxrwxr-x 2 ubuntu ubuntu 2 Aug 23 20:48 plugins > > > drwxrwxr-x 5 ubuntu ubuntu 5 Aug 23 20:48 resources > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/models/ > > > total 29 > > > -rw-r--r-- 1 ubuntu ubuntu 188416 Aug 23 20:53 db.sqlite > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/resources/service_template/1/ > > > total 1 > > > -rw-rw-r-- 1 ubuntu ubuntu 720 Aug 23 20:48 helloworld.yaml > > > > > > > > > > > > Vish > > > > > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > > Sent: Thursday, August 24, 2017 2:27 AM > > > To: dev@ariatosca.i
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Ran/Tal, Is there a dependency that needs to be installed for 'ctx' to work that the instructions at http://ariatosca.incubator.apache.org/getting-started/ has missed calling out? Thanks Vish From: Vishwanath Jayaraman <vishwana...@hotmail.com> Sent: Thursday, August 24, 2017 4:53 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Tal, Thanks for pointing out that I have to copy the entire examples directory over. I am now able to go past the error that I was seeing earlier. I now see the directories 'images', 'scripts' in .aria/resource/service_template/1 directory. I am now seeing a new error when I execute the command "aria executions start install -s my-service -vvv" =Console output start Starting execution. Press Ctrl+C cancel 21:47:14 | I | install | {} | Starting 'install' workflow execution 21:47:16 | D | None | {} | web_server_1 Standard.create has no implementation 21:47:16 | D | None | {} | web_server_1 Standard.configure has no implementation 21:47:17 | D | None | {} | web_server_1 Standard.start has no implementation 21:47:18 | D | None | {} | web_app_1 Standard.create has no implementation 21:47:19 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_target has no implementation 21:47:19 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_source has no implementation 21:47:25 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure started... 21:47:26 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: /tmp/tmp6NKthb-configure.sh 21:47:26 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution done (exit_code=127): /tmp/tmp6NKthb-configure.sh 21:47:26 | E | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure failed |Traceback (most recent call last): | File "/tmp/pip-build-QHRGJU/apache-ariatosca/aria/orchestrator/workflows/executor/process.py", line 342, in _main | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", line 78, in _wrapper |return func(**func_kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/operations.py", line 33, in run_script_locally |**kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 43, in run_script |operation_kwargs=kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 107, in _execute_func |return common.check_error(ctx, error_check_func=error_check_func) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/common.py", line 150, in check_error |error_check_func() | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 106, in error_check_func |stderr=stderr_consumer.read_output()) |ProcessException: /tmp/tmp6NKthb-configure.sh: line 29: ctx: command not found =Console output end Thanks Vish From: Tal Liron <t...@cloudify.co> Sent: Thursday, August 24, 2017 1:11 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" You need not just the helloworld YAML file, but also all the scripts it references. Try copying the whole examples directory to make sure. We are planning to eventually display a validation error if the YAML file references artifacts that don't exist, so you wouldn't have to wait until execution to see the error. This would be part of our general work on improving artifact support. On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > I copied the helloworld.yaml to '~/examples' (i.e home directory) on my > box. > > > From the instructions at http://ariatosca.incubator. > apache.org/getting-started/ > > I executed the > > aria service-templates store examples/helloworld.yaml my-service-template > > command from the home directory. > > > > Additional Info: > > - I am running this on a fresh Ubuntu 16.04 system > > > ARIA Installation sequence followed is below > > - sudo
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Tal, Thanks for pointing out that I have to copy the entire examples directory over. I am now able to go past the error that I was seeing earlier. I now see the directories 'images', 'scripts' in .aria/resource/service_template/1 directory. I am now seeing a new error when I execute the command "aria executions start install -s my-service -vvv" =Console output start Starting execution. Press Ctrl+C cancel 21:47:14 | I | install | {} | Starting 'install' workflow execution 21:47:16 | D | None | {} | web_server_1 Standard.create has no implementation 21:47:16 | D | None | {} | web_server_1 Standard.configure has no implementation 21:47:17 | D | None | {} | web_server_1 Standard.start has no implementation 21:47:18 | D | None | {} | web_app_1 Standard.create has no implementation 21:47:19 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_target has no implementation 21:47:19 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_source has no implementation 21:47:25 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure started... 21:47:26 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Executing: /tmp/tmp6NKthb-configure.sh 21:47:26 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | Execution done (exit_code=127): /tmp/tmp6NKthb-configure.sh 21:47:26 | E | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure failed |Traceback (most recent call last): | File "/tmp/pip-build-QHRGJU/apache-ariatosca/aria/orchestrator/workflows/executor/process.py", line 342, in _main | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", line 78, in _wrapper |return func(**func_kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/operations.py", line 33, in run_script_locally |**kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 43, in run_script |operation_kwargs=kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 107, in _execute_func |return common.check_error(ctx, error_check_func=error_check_func) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/common.py", line 150, in check_error |error_check_func() | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 106, in error_check_func |stderr=stderr_consumer.read_output()) |ProcessException: /tmp/tmp6NKthb-configure.sh: line 29: ctx: command not found =Console output end Thanks Vish From: Tal Liron <t...@cloudify.co> Sent: Thursday, August 24, 2017 1:11 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" You need not just the helloworld YAML file, but also all the scripts it references. Try copying the whole examples directory to make sure. We are planning to eventually display a validation error if the YAML file references artifacts that don't exist, so you wouldn't have to wait until execution to see the error. This would be part of our general work on improving artifact support. On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > I copied the helloworld.yaml to '~/examples' (i.e home directory) on my > box. > > > From the instructions at http://ariatosca.incubator. > apache.org/getting-started/ > > I executed the > > aria service-templates store examples/helloworld.yaml my-service-template > > command from the home directory. > > > > Additional Info: > > - I am running this on a fresh Ubuntu 16.04 system > > > ARIA Installation sequence followed is below > > - sudo apt-get update > > - sudo apt-install python-pip > > - pip install --upgrade pip setuptools > > - sudo pip install apache-ariatosca > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > - sudo pip install apache-ariatosca[ssh] > > > After I execute > > 'aria service-templates store examples/helloworld.yaml my-service-template > -vvv' > > I do not see the 'images', 'index.html' and 'scripts' in the > > '.aria/r
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
I'm running in a cloned github repo, so all is there. On another front, the Aria port type for Openstack requires that every port have a public/floating ip. On Thu, Aug 24, 2017 at 11:11 AM, Tal Liron <t...@cloudify.co> wrote: > You need not just the helloworld YAML file, but also all the scripts it > references. Try copying the whole examples directory to make sure. > > We are planning to eventually display a validation error if the YAML file > references artifacts that don't exist, so you wouldn't have to wait until > execution to see the error. This would be part of our general work on > improving artifact support. > > On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > I copied the helloworld.yaml to '~/examples' (i.e home directory) on my > > box. > > > > > > From the instructions at http://ariatosca.incubator. > > apache.org/getting-started/ > > > > I executed the > > > > aria service-templates store examples/helloworld.yaml my-service-template > > > > command from the home directory. > > > > > > > > Additional Info: > > > > - I am running this on a fresh Ubuntu 16.04 system > > > > > > ARIA Installation sequence followed is below > > > > - sudo apt-get update > > > > - sudo apt-install python-pip > > > > - pip install --upgrade pip setuptools > > > > - sudo pip install apache-ariatosca > > > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > > > - sudo pip install apache-ariatosca[ssh] > > > > > > After I execute > > > > 'aria service-templates store examples/helloworld.yaml > my-service-template > > -vvv' > > > > I do not see the 'images', 'index.html' and 'scripts' in the > > > > '.aria/resources/service_template/1/'. > > > > I am guessing this is generated by the code. > > > > > > Vish > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > Sent: Thursday, August 24, 2017 4:22 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > No, it doesn't :) > > This is what mine looks like: > > > > $ ls ~/.aria/resources/service_template/2/ > > hello-world.yaml images index.html scripts > > > > How did you store the service-template? What was the directory you were > in > > when running the store command? (not that it should matter, but I don't > > have any better clue at the moment) > > > > > > > > On Thu, Aug 24, 2017 at 10:51 AM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > Find below the console output , does it look right? > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/ > > > total 6 > > > -rw-rw-r-- 1 ubuntu ubuntu 14897 Aug 23 20:53 cli.log > > > -rw-rw-r-- 1 ubuntu ubuntu 1246 Aug 23 20:48 config.yaml > > > drwxrwxr-x 2 ubuntu ubuntu 3 Aug 23 20:53 models > > > drwxrwxr-x 2 ubuntu ubuntu 2 Aug 23 20:48 plugins > > > drwxrwxr-x 5 ubuntu ubuntu 5 Aug 23 20:48 resources > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/models/ > > > total 29 > > > -rw-r--r-- 1 ubuntu ubuntu 188416 Aug 23 20:53 db.sqlite > > > > > > > > > ubuntu@intellij:~$ ls -l .aria/resources/service_template/1/ > > > total 1 > > > -rw-rw-r-- 1 ubuntu ubuntu 720 Aug 23 20:48 helloworld.yaml > > > > > > > > > > > > Vish > > > > > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > > Sent: Thursday, August 24, 2017 2:27 AM > > > To: dev@ariatosca.incubator.apache.org > > > Subject: Re: Seeing error "Validation issues: unknown parent type > > > "tosca:Root" in WebServer" > > > > > > Interesting. The script resource should have been placed in that > > directory > > > when you stored the service-template. > > > Try looking inside ~/.aria and see what you can find under the model > > > storage directory - the "service_template/1/.." path mentioned above > > should > > > be relative to there. > > > > > > > > > On Wed, Aug 23, 2017 at 11:52 PM, Vishwanath Jayaraman < > > > vishwana...@hotmail.com> wrote: > > > > > >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
You need not just the helloworld YAML file, but also all the scripts it references. Try copying the whole examples directory to make sure. We are planning to eventually display a validation error if the YAML file references artifacts that don't exist, so you wouldn't have to wait until execution to see the error. This would be part of our general work on improving artifact support. On Thu, Aug 24, 2017 at 12:26 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > I copied the helloworld.yaml to '~/examples' (i.e home directory) on my > box. > > > From the instructions at http://ariatosca.incubator. > apache.org/getting-started/ > > I executed the > > aria service-templates store examples/helloworld.yaml my-service-template > > command from the home directory. > > > > Additional Info: > > - I am running this on a fresh Ubuntu 16.04 system > > > ARIA Installation sequence followed is below > > - sudo apt-get update > > - sudo apt-install python-pip > > - pip install --upgrade pip setuptools > > - sudo pip install apache-ariatosca > > - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev > > - sudo pip install apache-ariatosca[ssh] > > > After I execute > > 'aria service-templates store examples/helloworld.yaml my-service-template > -vvv' > > I do not see the 'images', 'index.html' and 'scripts' in the > > '.aria/resources/service_template/1/'. > > I am guessing this is generated by the code. > > > Vish > > > ________________ > From: Ran Ziv <r...@cloudify.co> > Sent: Thursday, August 24, 2017 4:22 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > No, it doesn't :) > This is what mine looks like: > > $ ls ~/.aria/resources/service_template/2/ > hello-world.yaml images index.html scripts > > How did you store the service-template? What was the directory you were in > when running the store command? (not that it should matter, but I don't > have any better clue at the moment) > > > > On Thu, Aug 24, 2017 at 10:51 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > Find below the console output , does it look right? > > > > > > ubuntu@intellij:~$ ls -l .aria/ > > total 6 > > -rw-rw-r-- 1 ubuntu ubuntu 14897 Aug 23 20:53 cli.log > > -rw-rw-r-- 1 ubuntu ubuntu 1246 Aug 23 20:48 config.yaml > > drwxrwxr-x 2 ubuntu ubuntu 3 Aug 23 20:53 models > > drwxrwxr-x 2 ubuntu ubuntu 2 Aug 23 20:48 plugins > > drwxrwxr-x 5 ubuntu ubuntu 5 Aug 23 20:48 resources > > > > > > ubuntu@intellij:~$ ls -l .aria/models/ > > total 29 > > -rw-r--r-- 1 ubuntu ubuntu 188416 Aug 23 20:53 db.sqlite > > > > > > ubuntu@intellij:~$ ls -l .aria/resources/service_template/1/ > > total 1 > > -rw-rw-r-- 1 ubuntu ubuntu 720 Aug 23 20:48 helloworld.yaml > > > > > > > > Vish > > > > > > > > From: Ran Ziv <r...@cloudify.co> > > Sent: Thursday, August 24, 2017 2:27 AM > > To: dev@ariatosca.incubator.apache.org > > Subject: Re: Seeing error "Validation issues: unknown parent type > > "tosca:Root" in WebServer" > > > > Interesting. The script resource should have been placed in that > directory > > when you stored the service-template. > > Try looking inside ~/.aria and see what you can find under the model > > storage directory - the "service_template/1/.." path mentioned above > should > > be relative to there. > > > > > > On Wed, Aug 23, 2017 at 11:52 PM, Vishwanath Jayaraman < > > vishwana...@hotmail.com> wrote: > > > > > THanks for making me aware of the -vvv option > > > > > > > > > Below is what I see now > > > > > > Console output START > > > > > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > > > my-service-template > > > Storing service template my-service-template... > > > Service template my-service-template stored > > > ubuntu@intellij:~$ aria services create my-service -t > > my-service-template > > > -vvv > > > Creating new service from service template my-service-template... > > > Service created. The service's name is my-service > > > ubuntu@intellij:~$ aria executions start install -s my-service -vvv > > > Starting execution. Press Ctrl+C cancel > > > 20:49:28 |
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
I copied the helloworld.yaml to '~/examples' (i.e home directory) on my box. >From the instructions at http://ariatosca.incubator.apache.org/getting-started/ I executed the aria service-templates store examples/helloworld.yaml my-service-template command from the home directory. Additional Info: - I am running this on a fresh Ubuntu 16.04 system ARIA Installation sequence followed is below - sudo apt-get update - sudo apt-install python-pip - pip install --upgrade pip setuptools - sudo pip install apache-ariatosca - sudo apt-get install -y python-dev gcc libffi-dev libssl-dev - sudo pip install apache-ariatosca[ssh] After I execute 'aria service-templates store examples/helloworld.yaml my-service-template -vvv' I do not see the 'images', 'index.html' and 'scripts' in the '.aria/resources/service_template/1/'. I am guessing this is generated by the code. Vish From: Ran Ziv <r...@cloudify.co> Sent: Thursday, August 24, 2017 4:22 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" No, it doesn't :) This is what mine looks like: $ ls ~/.aria/resources/service_template/2/ hello-world.yaml images index.html scripts How did you store the service-template? What was the directory you were in when running the store command? (not that it should matter, but I don't have any better clue at the moment) On Thu, Aug 24, 2017 at 10:51 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Find below the console output , does it look right? > > > ubuntu@intellij:~$ ls -l .aria/ > total 6 > -rw-rw-r-- 1 ubuntu ubuntu 14897 Aug 23 20:53 cli.log > -rw-rw-r-- 1 ubuntu ubuntu 1246 Aug 23 20:48 config.yaml > drwxrwxr-x 2 ubuntu ubuntu 3 Aug 23 20:53 models > drwxrwxr-x 2 ubuntu ubuntu 2 Aug 23 20:48 plugins > drwxrwxr-x 5 ubuntu ubuntu 5 Aug 23 20:48 resources > > > ubuntu@intellij:~$ ls -l .aria/models/ > total 29 > -rw-r--r-- 1 ubuntu ubuntu 188416 Aug 23 20:53 db.sqlite > > > ubuntu@intellij:~$ ls -l .aria/resources/service_template/1/ > total 1 > -rw-rw-r-- 1 ubuntu ubuntu 720 Aug 23 20:48 helloworld.yaml > > > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Thursday, August 24, 2017 2:27 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Interesting. The script resource should have been placed in that directory > when you stored the service-template. > Try looking inside ~/.aria and see what you can find under the model > storage directory - the "service_template/1/.." path mentioned above should > be relative to there. > > > On Wed, Aug 23, 2017 at 11:52 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > THanks for making me aware of the -vvv option > > > > > > Below is what I see now > > > > Console output START > > > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > > my-service-template > > Storing service template my-service-template... > > Service template my-service-template stored > > ubuntu@intellij:~$ aria services create my-service -t > my-service-template > > -vvv > > Creating new service from service template my-service-template... > > Service created. The service's name is my-service > > ubuntu@intellij:~$ aria executions start install -s my-service -vvv > > Starting execution. Press Ctrl+C cancel > > 20:49:28 | I | install | {} | Starting 'install' workflow execution > > 20:49:30 | D | None | {} | web_server_1 Standard.create has no > > implementation > > 20:49:30 | D | None | {} | web_server_1 Standard.configure has no > > implementation > > 20:49:31 | D | None | {} | web_server_1 Standard.start has no > > implementation > > 20:49:33 | D | None | {} | web_app_1 Standard.create has no > implementation > > 20:49:34 | D | None | {} | web_app_1->web_server_1 > > Configure.pre_configure_source has no implementation > > 20:49:34 | D | None | {} | web_app_1->web_server_1 > > Configure.pre_configure_target has no implementation > > 20:49:41 | I | aria.orchestrator.execution_plugin.operations.run_script_ > locally > > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > > Standard.configure started... > > 20:49:42 | E | aria.orchestrator.execution_plugin.operations.run_script_ > locally > > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > > Standard.configure failed
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Find below the console output , does it look right? ubuntu@intellij:~$ ls -l .aria/ total 6 -rw-rw-r-- 1 ubuntu ubuntu 14897 Aug 23 20:53 cli.log -rw-rw-r-- 1 ubuntu ubuntu 1246 Aug 23 20:48 config.yaml drwxrwxr-x 2 ubuntu ubuntu 3 Aug 23 20:53 models drwxrwxr-x 2 ubuntu ubuntu 2 Aug 23 20:48 plugins drwxrwxr-x 5 ubuntu ubuntu 5 Aug 23 20:48 resources ubuntu@intellij:~$ ls -l .aria/models/ total 29 -rw-r--r-- 1 ubuntu ubuntu 188416 Aug 23 20:53 db.sqlite ubuntu@intellij:~$ ls -l .aria/resources/service_template/1/ total 1 -rw-rw-r-- 1 ubuntu ubuntu 720 Aug 23 20:48 helloworld.yaml Vish From: Ran Ziv <r...@cloudify.co> Sent: Thursday, August 24, 2017 2:27 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Interesting. The script resource should have been placed in that directory when you stored the service-template. Try looking inside ~/.aria and see what you can find under the model storage directory - the "service_template/1/.." path mentioned above should be relative to there. On Wed, Aug 23, 2017 at 11:52 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > THanks for making me aware of the -vvv option > > > Below is what I see now > > Console output START > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > my-service-template > Storing service template my-service-template... > Service template my-service-template stored > ubuntu@intellij:~$ aria services create my-service -t my-service-template > -vvv > Creating new service from service template my-service-template... > Service created. The service's name is my-service > ubuntu@intellij:~$ aria executions start install -s my-service -vvv > Starting execution. Press Ctrl+C cancel > 20:49:28 | I | install | {} | Starting 'install' workflow execution > 20:49:30 | D | None | {} | web_server_1 Standard.create has no > implementation > 20:49:30 | D | None | {} | web_server_1 Standard.configure has no > implementation > 20:49:31 | D | None | {} | web_server_1 Standard.start has no > implementation > 20:49:33 | D | None | {} | web_app_1 Standard.create has no implementation > 20:49:34 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_source has no implementation > 20:49:34 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_target has no implementation > 20:49:41 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure started... > 20:49:42 | E | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure failed > |Traceback (most recent call last): > | File "/tmp/pip-build-7Wa36U/apache-ariatosca/aria/orchestrator/ > workflows/executor/process.py", line 342, in _main > | File > "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", > line 78, in _wrapper > |return func(**func_kwargs) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/operations.py", line 33, in > run_script_locally > |**kwargs) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 37, in run_script > |script_path = common.download_script(ctx, script_path) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/common.py", line 50, in download_script > |ctx.download_resource(destination=dest_script_path, > path=script_path) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/context/common.py", line 163, in download_resource > |path=path) > | File > "/usr/local/lib/python2.7/dist-packages/aria/storage/filesystem_rapi.py", > line 128, in download > |format(resource_relative_path)) > |StorageError: Resource service_template/1/scripts/configure.sh > does not exist > > 20:50:18 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} > =END CONSOLE OUTPUT= > > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Wednesday, August 23, 2017 3:29 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issue
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Interesting. The script resource should have been placed in that directory when you stored the service-template. Try looking inside ~/.aria and see what you can find under the model storage directory - the "service_template/1/.." path mentioned above should be relative to there. On Wed, Aug 23, 2017 at 11:52 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > THanks for making me aware of the -vvv option > > > Below is what I see now > > Console output START > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > my-service-template > Storing service template my-service-template... > Service template my-service-template stored > ubuntu@intellij:~$ aria services create my-service -t my-service-template > -vvv > Creating new service from service template my-service-template... > Service created. The service's name is my-service > ubuntu@intellij:~$ aria executions start install -s my-service -vvv > Starting execution. Press Ctrl+C cancel > 20:49:28 | I | install | {} | Starting 'install' workflow execution > 20:49:30 | D | None | {} | web_server_1 Standard.create has no > implementation > 20:49:30 | D | None | {} | web_server_1 Standard.configure has no > implementation > 20:49:31 | D | None | {} | web_server_1 Standard.start has no > implementation > 20:49:33 | D | None | {} | web_app_1 Standard.create has no implementation > 20:49:34 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_source has no implementation > 20:49:34 | D | None | {} | web_app_1->web_server_1 > Configure.pre_configure_target has no implementation > 20:49:41 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure started... > 20:49:42 | E | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 > Standard.configure failed > |Traceback (most recent call last): > | File "/tmp/pip-build-7Wa36U/apache-ariatosca/aria/orchestrator/ > workflows/executor/process.py", line 342, in _main > | File > "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", > line 78, in _wrapper > |return func(**func_kwargs) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/operations.py", line 33, in > run_script_locally > |**kwargs) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/local.py", line 37, in run_script > |script_path = common.download_script(ctx, script_path) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/execution_plugin/common.py", line 50, in download_script > |ctx.download_resource(destination=dest_script_path, > path=script_path) > | File "/usr/local/lib/python2.7/dist-packages/aria/ > orchestrator/context/common.py", line 163, in download_resource > |path=path) > | File > "/usr/local/lib/python2.7/dist-packages/aria/storage/filesystem_rapi.py", > line 128, in download > |format(resource_relative_path)) > |StorageError: Resource service_template/1/scripts/configure.sh > does not exist > > 20:50:18 | I | > aria.orchestrator.execution_plugin.operations.run_script_locally > | {u'process': {}, u'script_path': u'scripts/configure.sh'} > =====END CONSOLE OUTPUT= > > > Vish > > > > From: Ran Ziv <r...@cloudify.co> > Sent: Wednesday, August 23, 2017 3:29 PM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Nope - It works fine for me. > Try to run it with "-vvv" for more verbose execution logging information. > > > On Wed, Aug 23, 2017 at 7:17 PM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > Hi Ran, > > > > Appreciate your response. > > > > I edited the helloworld.yaml (changed from tosca:Root to > tosca.nodes.Root) > > and was able to make progress. > > > > However, I see the below "web_app_1 Standard.configure failed" - refer > > console output below > > > > > > console output start > > > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > > my-service-template > > Sto
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
THanks for making me aware of the -vvv option Below is what I see now Console output START ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml my-service-template Storing service template my-service-template... Service template my-service-template stored ubuntu@intellij:~$ aria services create my-service -t my-service-template -vvv Creating new service from service template my-service-template... Service created. The service's name is my-service ubuntu@intellij:~$ aria executions start install -s my-service -vvv Starting execution. Press Ctrl+C cancel 20:49:28 | I | install | {} | Starting 'install' workflow execution 20:49:30 | D | None | {} | web_server_1 Standard.create has no implementation 20:49:30 | D | None | {} | web_server_1 Standard.configure has no implementation 20:49:31 | D | None | {} | web_server_1 Standard.start has no implementation 20:49:33 | D | None | {} | web_app_1 Standard.create has no implementation 20:49:34 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_source has no implementation 20:49:34 | D | None | {} | web_app_1->web_server_1 Configure.pre_configure_target has no implementation 20:49:41 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure started... 20:49:42 | E | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} | web_app_1 Standard.configure failed |Traceback (most recent call last): | File "/tmp/pip-build-7Wa36U/apache-ariatosca/aria/orchestrator/workflows/executor/process.py", line 342, in _main | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/decorators.py", line 78, in _wrapper |return func(**func_kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/operations.py", line 33, in run_script_locally |**kwargs) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/local.py", line 37, in run_script |script_path = common.download_script(ctx, script_path) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/execution_plugin/common.py", line 50, in download_script |ctx.download_resource(destination=dest_script_path, path=script_path) | File "/usr/local/lib/python2.7/dist-packages/aria/orchestrator/context/common.py", line 163, in download_resource |path=path) | File "/usr/local/lib/python2.7/dist-packages/aria/storage/filesystem_rapi.py", line 128, in download |format(resource_relative_path)) |StorageError: Resource service_template/1/scripts/configure.sh does not exist 20:50:18 | I | aria.orchestrator.execution_plugin.operations.run_script_locally | {u'process': {}, u'script_path': u'scripts/configure.sh'} =END CONSOLE OUTPUT= Vish From: Ran Ziv <r...@cloudify.co> Sent: Wednesday, August 23, 2017 3:29 PM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Nope - It works fine for me. Try to run it with "-vvv" for more verbose execution logging information. On Wed, Aug 23, 2017 at 7:17 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Hi Ran, > > Appreciate your response. > > I edited the helloworld.yaml (changed from tosca:Root to tosca.nodes.Root) > and was able to make progress. > > However, I see the below "web_app_1 Standard.configure failed" - refer > console output below > > > console output start > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > my-service-template > Storing service template my-service-template... > Service template my-service-template stored > ubuntu@intellij:~$ aria services create my-service -t my-service-template > Creating new service from service template my-service-template... > Service created. The service's name is my-service > ubuntu@intellij:~$ aria executions start install -s my-service > Starting execution. Press Ctrl+C cancel > Starting 'install' workflow execution > web_app_1 Standard.configure started... > web_app_1 Standard.configure failed > web_app_1 Standard.configure started... > web_app_1 Standard.configure failed > console output end > > > Is the above you saw as well? > > Thanks > > Vish > > > ____ > From: Ran Ziv <r...@cloudify.co> > Sent: Tuesday, August 22, 2017 2:29 AM &g
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Nope - It works fine for me. Try to run it with "-vvv" for more verbose execution logging information. On Wed, Aug 23, 2017 at 7:17 PM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > Hi Ran, > > Appreciate your response. > > I edited the helloworld.yaml (changed from tosca:Root to tosca.nodes.Root) > and was able to make progress. > > However, I see the below "web_app_1 Standard.configure failed" - refer > console output below > > > console output start > > ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml > my-service-template > Storing service template my-service-template... > Service template my-service-template stored > ubuntu@intellij:~$ aria services create my-service -t my-service-template > Creating new service from service template my-service-template... > Service created. The service's name is my-service > ubuntu@intellij:~$ aria executions start install -s my-service > Starting execution. Press Ctrl+C cancel > Starting 'install' workflow execution > web_app_1 Standard.configure started... > web_app_1 Standard.configure failed > web_app_1 Standard.configure started... > web_app_1 Standard.configure failed > console output end > > > Is the above you saw as well? > > Thanks > > Vish > > > ________ > From: Ran Ziv <r...@cloudify.co> > Sent: Tuesday, August 22, 2017 2:29 AM > To: dev@ariatosca.incubator.apache.org > Subject: Re: Seeing error "Validation issues: unknown parent type > "tosca:Root" in WebServer" > > Hi Vishwanath, > > I just tried it myself and the service template parses fine. > > This is related to this change: > https://github.com/apache/incubator-ariatosca/commit/ > c2b8e65b41c013bfd4ee14ea47268083f8b20822 > [https://avatars0.githubusercontent.com/u/29885907?v=4=200]<https:// > github.com/apache/incubator-ariatosca/commit/ > c2b8e65b41c013bfd4ee14ea47268083f8b20822> > > ARIA-277 Support for Type Qualified Name · apache/incubator-ariatosca@ > c2b8e65<https://github.com/apache/incubator-ariatosca/commit/ > c2b8e65b41c013bfd4ee14ea47268083f8b20822> > github.com > incubator-ariatosca - Mirror of Apache incubator > > > > > > The commit was introduced after 0.1.1 was released, so I think what might > be the case here is that there's a mismatch between the code version and > the example version. > If you've installed 0.1.1, please download/checkout the correct version for > the example, rather than use the one from the master branch. > > If you'd like to run the example off the master branch, make sure you > install this branch and not the version on PyPI (the master branch's > version is 0.2.0). > You may also want to consider installing in editable mode so you won't need > to reinstall after each pull. > > > Ran > > > > On Tue, Aug 22, 2017 at 12:10 AM, Vishwanath Jayaraman < > vishwana...@hotmail.com> wrote: > > > > > When I execute the command "aria service-templates store > > examples/hello-world/helloworld.yaml my-service-template" from the > > 'Getting Started' section at https://github.com/apache/ > [https://avatars1.githubusercontent.com/u/47359?v=4=200]< > https://github.com/apache/> > > The Apache Software Foundation · GitHub<https://github.com/apache/> > github.com > GitHub is where people build software. More than 23 million people use > GitHub to discover, fork, and contribute to over 64 million projects. > > > > > incubator-ariatosca/blob/master/README.rst , I see the below message > > > > > > Storing service template my-service-template... > > > > Validation issues: > > > > 4: unknown parent type "tosca.Root" in "WebServer" > > > > @"/home/ubuntu/incubator-ariatosca/examples/hello- > > world/helloworld.yaml":6:19 > > > > Failed to parse service template > > > > > > Is this a known issue? > > > > Thanks > > > > -Vish > > > > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > > incubator-ariatosca/README.rst at master · apache ...< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > github.com > ARIA is a an open-source, TOSCA-based, lightweight library and CLI for > orchestration and for consumption by projects buil
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Hi Ran, Appreciate your response. I edited the helloworld.yaml (changed from tosca:Root to tosca.nodes.Root) and was able to make progress. However, I see the below "web_app_1 Standard.configure failed" - refer console output below console output start ubuntu@intellij:~$ aria service-templates store /tmp/helloworld.yaml my-service-template Storing service template my-service-template... Service template my-service-template stored ubuntu@intellij:~$ aria services create my-service -t my-service-template Creating new service from service template my-service-template... Service created. The service's name is my-service ubuntu@intellij:~$ aria executions start install -s my-service Starting execution. Press Ctrl+C cancel Starting 'install' workflow execution web_app_1 Standard.configure started... web_app_1 Standard.configure failed web_app_1 Standard.configure started... web_app_1 Standard.configure failed console output end Is the above you saw as well? Thanks Vish From: Ran Ziv <r...@cloudify.co> Sent: Tuesday, August 22, 2017 2:29 AM To: dev@ariatosca.incubator.apache.org Subject: Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer" Hi Vishwanath, I just tried it myself and the service template parses fine. This is related to this change: https://github.com/apache/incubator-ariatosca/commit/c2b8e65b41c013bfd4ee14ea47268083f8b20822 [https://avatars0.githubusercontent.com/u/29885907?v=4=200]<https://github.com/apache/incubator-ariatosca/commit/c2b8e65b41c013bfd4ee14ea47268083f8b20822> ARIA-277 Support for Type Qualified Name · apache/incubator-ariatosca@c2b8e65<https://github.com/apache/incubator-ariatosca/commit/c2b8e65b41c013bfd4ee14ea47268083f8b20822> github.com incubator-ariatosca - Mirror of Apache incubator The commit was introduced after 0.1.1 was released, so I think what might be the case here is that there's a mismatch between the code version and the example version. If you've installed 0.1.1, please download/checkout the correct version for the example, rather than use the one from the master branch. If you'd like to run the example off the master branch, make sure you install this branch and not the version on PyPI (the master branch's version is 0.2.0). You may also want to consider installing in editable mode so you won't need to reinstall after each pull. Ran On Tue, Aug 22, 2017 at 12:10 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > > When I execute the command "aria service-templates store > examples/hello-world/helloworld.yaml my-service-template" from the > 'Getting Started' section at https://github.com/apache/ [https://avatars1.githubusercontent.com/u/47359?v=4=200]<https://github.com/apache/> The Apache Software Foundation · GitHub<https://github.com/apache/> github.com GitHub is where people build software. More than 23 million people use GitHub to discover, fork, and contribute to over 64 million projects. > incubator-ariatosca/blob/master/README.rst , I see the below message > > > Storing service template my-service-template... > > Validation issues: > > 4: unknown parent type "tosca.Root" in "WebServer" > > @"/home/ubuntu/incubator-ariatosca/examples/hello- > world/helloworld.yaml":6:19 > > Failed to parse service template > > > Is this a known issue? > > Thanks > > -Vish > > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> [https://avatars3.githubusercontent.com/u/47359?v=4=400]<https://github.com/apache/incubator-ariatosca/blob/master/README.rst> incubator-ariatosca/README.rst at master · apache ...<https://github.com/apache/incubator-ariatosca/blob/master/README.rst> github.com ARIA is a an open-source, TOSCA-based, lightweight library and CLI for orchestration and for consumption by projects building TOSCA-based solutions for resources and ... > > incubator-ariatosca/README.rst at master · apache ...< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> [https://avatars3.githubusercontent.com/u/47359?v=4=400]<https://github.com/apache/incubator-ariatosca/blob/master/README.rst> incubator-ariatosca/README.rst at master · apache ...<https://github.com/apache/incubator-ariatosca/blob/master/README.rst> github.com ARIA is a an open-source, TOSCA-based, lightweight library and CLI for orchestration and for consumption by projects building TOSCA-based solutions for resources and ... > github.com > ARIA is a an open-source, TOSCA-based, lightweight library and CLI for > orchestration and for consumption by projects building TOSCA-based > solutions for resources and ... > > > Vish >
Re: Seeing error "Validation issues: unknown parent type "tosca:Root" in WebServer"
Hi Vishwanath, I just tried it myself and the service template parses fine. This is related to this change: https://github.com/apache/incubator-ariatosca/commit/c2b8e65b41c013bfd4ee14ea47268083f8b20822 The commit was introduced after 0.1.1 was released, so I think what might be the case here is that there's a mismatch between the code version and the example version. If you've installed 0.1.1, please download/checkout the correct version for the example, rather than use the one from the master branch. If you'd like to run the example off the master branch, make sure you install this branch and not the version on PyPI (the master branch's version is 0.2.0). You may also want to consider installing in editable mode so you won't need to reinstall after each pull. Ran On Tue, Aug 22, 2017 at 12:10 AM, Vishwanath Jayaraman < vishwana...@hotmail.com> wrote: > > When I execute the command "aria service-templates store > examples/hello-world/helloworld.yaml my-service-template" from the > 'Getting Started' section at https://github.com/apache/ > incubator-ariatosca/blob/master/README.rst , I see the below message > > > Storing service template my-service-template... > > Validation issues: > > 4: unknown parent type "tosca.Root" in "WebServer" > > @"/home/ubuntu/incubator-ariatosca/examples/hello- > world/helloworld.yaml":6:19 > > Failed to parse service template > > > Is this a known issue? > > Thanks > > -Vish > > [https://avatars3.githubusercontent.com/u/47359?v=4=400]< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > > incubator-ariatosca/README.rst at master · apache ...< > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > github.com > ARIA is a an open-source, TOSCA-based, lightweight library and CLI for > orchestration and for consumption by projects building TOSCA-based > solutions for resources and ... > > > Vish >