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

Meaningful message when template suite isn't specify #758

Open
galitf opened this issue Aug 1, 2018 · 0 comments
Open

Meaningful message when template suite isn't specify #758

galitf opened this issue Aug 1, 2018 · 0 comments
Assignees

Comments

@galitf
Copy link
Contributor

galitf commented Aug 1, 2018

lago init LagoInitFile
@ Initialize and populate prefix:

Initialize prefix:

* Create prefix dirs: 
* Create prefix dirs: Success (in 0:00:00)
* Generate prefix uuid: 
* Generate prefix uuid: Success (in 0:00:00)
* Create ssh keys: 
* Create ssh keys: Success (in 0:00:00)
* Tag prefix as initialized: 
* Tag prefix as initialized: Success (in 0:00:00)

Initialize prefix: Success (in 0:00:00)

Create disks for VM vm01:

* Create disk root: 
* Create disk root: ERROR (in 0:00:00)

Create disks for VM vm01: ERROR (in 0:00:00)

Missing current link, setting it to default

@ Initialize and populate prefix: ERROR (in 0:00:00)
Error occured, aborting
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/lago/cmd.py", line 969, in main
cli_plugins[args.verb].do_run(args)
File "/usr/lib/python2.7/site-packages/lago/plugins/cli.py", line 184, in do_run
self._do_run(**vars(args))
File "/usr/lib/python2.7/site-packages/lago/cmd.py", line 194, in do_init
do_build=not skip_build,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 1111, in virt_conf_from_stream
do_build=do_build
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 1226, in virt_conf
template_store=template_store,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 1131, in _prepare_domains_images
template_store=template_store,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 1153, in _prepare_domain_image
template_store=template_store,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 1181, in _create_disks
template_store=template_store,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 667, in _create_disk
template_store=template_store,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 796, in _handle_template
template_repo=template_repo,
File "/usr/lib/python2.7/site-packages/lago/prefix.py", line 924, in _handle_lago_template
template = template_repo.get_by_name(template_spec['template_name'])
File "/usr/lib/python2.7/site-packages/lago/templates.py", line 388, in get_by_name
spec = self._dom.get('templates', {})[name]
KeyError: 'lago_functional_tests'

In LagoInitFile
We have the line:

  • template_name: lago_functional_tests
    We should have in template repo file a template with this name

Need to run:
lago init LagoInitFile --template-repo-path template_repo.json

@galitf galitf self-assigned this Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant