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" 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
> > > > >
> > > > >     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.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://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/>
> > > > [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
> > > >
> > > >
> > > >
> > > > > github.com
> > > > > incubator-ariatosca - Mirror of Apache incubator
> > > > >
> > > > >
> > > > >
> > > > > > [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/>
> > > > [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://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
> > > > >
> > > > >
> > > > >
> > > > > > github.com
> > > > > > incubator-ariatosca - Mirror of Apache incubator
> > > > > >
> > > > > >
> > > > > >
> > > > > > > > [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/>
> > > > > [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://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/>
> > > > > [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
> > > > >
> > > > >
> > > > >
> > > > > > github.com
> > > > > > incubator-ariatosca - Mirror of Apache incubator
> > > > > >
> > > > > >
> > > > > >
> > > > > > > > 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
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to