Default variables for edp.yaml and credentials.yaml not applied

Bug #1558994 reported by Evgeny Sikachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Data Processing ("Sahara") sahara-tests
Fix Released
Medium
Evgeny Sikachev

Bug Description

ENVIRONMENT: master (18 march 2016)
In the README file (https://github.com/openstack/sahara-tests/blob/master/sahara_tests/scenario/README.rst) specified default values for fields in credentials.yaml, but if you do not specify this values before running - tests failed with next trace:
Traceback (most recent call last):
  File ".tox/venv/bin/sahara-scenario", line 10, in <module>
    sys.exit(main())
  File "/Users/esikachev/sahara-tests/sahara_tests/scenario/runner.py", line 239, in main
    template_variables, verbose_run)
  File "/Users/esikachev/sahara-tests/sahara_tests/scenario/runner.py", line 148, in read_scenario_config
    template = scenario_template.render_unicode(**template_vars)
  File "/Users/esikachev/sahara-tests/.tox/venv/lib/python2.7/site-packages/mako/template.py", line 454, in render_unicode
    as_unicode=True)
  File "/Users/esikachev/sahara-tests/.tox/venv/lib/python2.7/site-packages/mako/runtime.py", line 829, in _render
    **_kwargs_for_callable(callable_, data))
  File "/Users/esikachev/sahara-tests/.tox/venv/lib/python2.7/site-packages/mako/runtime.py", line 864, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/Users/esikachev/sahara-tests/.tox/venv/lib/python2.7/site-packages/mako/runtime.py", line 890, in _exec_template
    callable_(context, *args, **kwargs)
  File "etc_scenario_defaults_credentials_yaml_mako", line 38, in render_body
NameError: 'OS_USERNAME' is not defined

Need to add ability to run tests with default values, add ability change this values in .ini file or args

Tags: yaml
description: updated
Changed in sahara-tests:
assignee: nobody → Evgeny Sikachev (esikachev)
Revision history for this message
Evgeny Sikachev (esikachev) wrote :
Changed in sahara-tests:
status: New → In Progress
Changed in sahara-tests:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on sahara-tests (master)

Change abandoned by Evgeny Sikachev (<email address hidden>) on branch: master
Review: https://review.openstack.org/297757
Reason: https://review.openstack.org/#/c/342877/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara-tests (master)

Reviewed: https://review.openstack.org/342877
Committed: https://git.openstack.org/cgit/openstack/sahara-tests/commit/?id=2daa3f1728627eebae1b778f33dee31dd8723614
Submitter: Jenkins
Branch: master

commit 2daa3f1728627eebae1b778f33dee31dd8723614
Author: Raissa Sarmento <email address hidden>
Date: Fri Jul 15 10:57:10 2016 -0300

    Added ability to use auth env variables or flags

    It's now possible to either export auth related environment variables or
    to specify via flags. OS_* variables were removed from yaml and ini files.

    Change-Id: I3ed9e2d73c886481073f1a00777ca0f2d498bebb
    Closes-Bug: #1558994

Changed in sahara-tests:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/sahara-tests 0.3.0

This issue was fixed in the openstack/sahara-tests 0.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.