Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema_check cannot find default schema outside linch-pin #68

Closed
herlo opened this issue Oct 4, 2016 · 1 comment
Closed

schema_check cannot find default schema outside linch-pin #68

herlo opened this issue Oct 4, 2016 · 1 comment
Assignees
Labels

Comments

@herlo
Copy link
Contributor

herlo commented Oct 4, 2016

When creating a virtualenv due to the lack of shade, and a git checkout of linch-pin in a separate directory, invoking linch-pin does not find the default schema.

INVOCATION

(venv)[herlo@x99 venv]$ ansible-playbook -vvv ~/Projects/centos/git/linch-pin/provision/site.yml -e "state=present topology='~/Projects/centos/git/paas-ci/config/topologies/openstack-3node-cluster.yml'"
Using /etc/ansible/ansible.cfg as config file
 [WARNING]: provided hosts list is empty, only localhost is available

[DEPRECATION WARNING]: Specifying include variables at the top-level of the task is deprecated. Please 
see:
http://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-and-encouraging-reuse

 for 
currently supported syntax regarding included files and variables.
This feature will be removed in a 
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in 
ansible.cfg.

PLAYBOOK: site.yml *************************************************************
4 plays in /home/herlo/Projects/centos/git/linch-pin/provision/site.yml

PLAY [schema check and Pre Provisioning Activities  on topology_file] **********

TASK [setup] *******************************************************************
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: herlo
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1475612682.44-166143896648227 `" && echo ansible-tmp-1475612682.44-166143896648227="` echo $HOME/.ansible/tmp/ansible-tmp-1475612682.44-166143896648227 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmp8vDuY5 TO /home/herlo/.ansible/tmp/ansible-tmp-1475612682.44-166143896648227/setup
<127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.utf8 LC_ALL=en_US.utf8 LC_MESSAGES=en_US.utf8 /usr/bin/python2 /home/herlo/.ansible/tmp/ansible-tmp-1475612682.44-166143896648227/setup; rm -rf "/home/herlo/.ansible/tmp/ansible-tmp-1475612682.44-166143896648227/" > /dev/null 2>&1 && sleep 0'
ok: [localhost]

TASK [common : Including Linchpin config vars] *********************************
task path: /home/herlo/Projects/centos/git/linch-pin/provision/roles/common/tasks/main.yml:3
ok: [localhost] => {"ansible_facts": {"async": false, "async_timeout": 1000, "inventory_layouts_path": "inventory_layouts", "inventory_outputs_path": "inventory_outputs", "inventory_playbooks": ["duffy_inventory.yml"], "inventory_types": ["aws", "gcloud", "openstack", "generic"], "inventoryfolder_path": "inventory", "keystore_path": "keystore", "no_output": false, "outputfolder_path": "outputs", "schema": "ex_schemas/schema_v2.json"}, "changed": false, "invocation": {"module_args": {"_raw_params": "../linchpin_config.yml"}, "module_name": "include_vars"}}

TASK [common : schema check for given topology file] ***************************
task path: /home/herlo/Projects/centos/git/linch-pin/provision/roles/common/tasks/main.yml:6
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: herlo
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1475612683.93-94860539667658 `" && echo ansible-tmp-1475612683.93-94860539667658="` echo $HOME/.ansible/tmp/ansible-tmp-1475612683.93-94860539667658 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmp6g9GwS TO /home/herlo/.ansible/tmp/ansible-tmp-1475612683.93-94860539667658/schema_check
<127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.utf8 LC_ALL=en_US.utf8 LC_MESSAGES=en_US.utf8 /usr/bin/python2 /home/herlo/.ansible/tmp/ansible-tmp-1475612683.93-94860539667658/schema_check; rm -rf "/home/herlo/.ansible/tmp/ansible-tmp-1475612683.93-94860539667658/" > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"data": "~/Projects/centos/git/paas-ci/config/topologies/openstack-3node-cluster.yml", "data_format": null, "schema": "ex_schemas/schema_v2.json"}, "module_name": "schema_check"}, "msg": "File not found ex_schemas/schema_v2.json not found"}

NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @/home/herlo/Projects/centos/git/linch-pin/provision/site.retry

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=1   
@herlo herlo added the bug label Oct 4, 2016
samvarankashyap added a commit to samvarankashyap/linchpin that referenced this issue Oct 5, 2016
samvarankashyap added a commit that referenced this issue Oct 5, 2016
fixed PR #68 schema_check cannot find default schema outside linch-pin
@herlo
Copy link
Contributor Author

herlo commented Oct 5, 2016

fixed by #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants