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: > > > > > > > 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://avatars2.githubusercontent.com/u/11952207?v=4&s=200]<https:// > > github.com/apache/incubator-ariatosca/commit/> > > > > ARIA-348 Validate substitution_mapping field · > apache/incubator-ariatosca@ > > a048f70<https://github.com/apache/incubator-ariatosca/commit/> > > github.com > > incubator-ariatosca - Mirror of Apache incubator > > > > > > > > > [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 > > > > > > > > > > > > > > > > > > > > >