"'min' is undefined' while running Rally Certification Task

Bug #1528714 reported by Oleksandr Kyrylchuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Invalid
Undecided
Unassigned

Bug Description

Hi all,

I tried to run Rally Certification Task. For 'authentication' and 'nova' services it worked ok, but for others failed.

Here's an example for Cinder:

$ docker exec -it 0505a8acc430 rally task start /tmp/rally_tests/certification/openstack/task.yaml --task-args '{"service_list": ["cinder"], "tenants_amount": "1", "image_name": "^(cirros.*uec|TestVM)$", "controllers_amount": "1", "glance_image_location": "", "computes_amount": "2", "use_existing_users": false, "flavor_name": "m1.tiny", "smoke": true, "users_amount": "1", "network_amount": "1", "storage_amount": "1"}'
--------------------------------------------------------------------------------
 Preparing input task
--------------------------------------------------------------------------------

Failed to render task template:
{%- set glance_image_location = glance_image_location|default("https://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img") %}
{%- set image_name = image_name|default("^(cirros.*uec|TestVM)$") %}
{%- set flavor_name = flavor_name|default("m1.tiny") %}
{%- set use_existing_users = use_existing_users|default(false) %}
{%- set service_list = service_list|default(["authentication", "cinder", "keystone", "nova", "glance", "neutron"]) %}
{%- set smoke = smoke|default(true) %}
{%- set controllers_amount = controllers_amount|default(1) %}
{%- if smoke %}
{%- set users_amount = 1 %}
{%- set tenants_amount = 1 %}
{%- else %}
{%- set users_amount = users_amount|default(1) %}
{%- set tenants_amount = tenants_amount|default(1) %}
{%- endif %}

{%- from "macro/macro.yaml" import user_context, vm_params, unlimited_volumes, constant_runner, rps_runner, no_failures_sla -%}
{%- from "macro/macro.yaml" import volumes, unlimited_nova, unlimited_neutron, glance_args -%}

---
{% if "authentication" in service_list %}
{%- include "scenario/authentication.yaml"-%}
{% endif %}

{% if "cinder" in service_list %}
{%- include "scenario/cinder.yaml"-%}
{% endif %}

{% if "keystone" in service_list %}
{%- include "scenario/keystone.yaml"-%}
{% endif %}

{% if "nova" in service_list %}
{%- include "scenario/nova.yaml"-%}
{% endif %}

{% if "glance" in service_list %}
{%- include "scenario/glance.yaml"-%}
{% endif %}

{% if "neutron" in service_list %}
{%- include "scenario/neutron.yaml"-%}
{% endif %}

'min' is undefined

Failed to load task
------------

Rally is installed on instance booted within MOS 7.0 cloud. All required access to nodes is provided.

What does 'min' stands for? And how to solve this issue?

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

You are trying to use certification task from 0.1.2 at older release(0.1.1 for example). This older release doesn't include change which patches jinja2 environment with min max methods

Changed in rally:
status: New → Invalid
Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

required change for using min/max methods in jinja templates - https://github.com/openstack/rally/commit/4eab35d6ca910d204ac4a7def7c664c85982ea22

Revision history for this message
Oleksandr Kyrylchuk (okyrylchuk) wrote :

Ok, got it. Thanks a lot for help!

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.