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 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/ [https://avatars0.githubusercontent.com/u/7134678?v=4&s=200]<https://github.com/apache/incubator-ariatosca/commit/> ARIA-352 Fixed package name aria[ssh] incorrect in the installation d… · apache/incubator-ariatosca@a5b450a<https://github.com/apache/incubator-ariatosca/commit/> github.com …ocument link > [https://avatars0.githubusercontent.com/u/7134678?v=4&s=200]<https:// > github.com/apache/incubator-ariatosca/commit/> > > ARIA-352 Fixed package name aria[ssh] incorrect in the installation d… · > apache/incubator-ariatosca@a5b450a<https://github.com/ > apache/incubator-ariatosca/commit/> > github.com > …ocument link > > > > > c2b8e65b41c013bfd4ee14ea47268083f8b20822 > > [https://avatars0.githubusercontent.com/u/29885907?v=4&s=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&s=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&s=400]< > > > https://github.com/apache/incubator-ariatosca/blob/master/README.rst> > > [https://avatars3.githubusercontent.com/u/47359?v=4&s=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&s=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 > > > > > >