registered variable and used variable not matching in ceilometer bootstrap.yml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Undecided
|
prameswar | ||
Newton |
Fix Released
|
Critical
|
Duong Ha-Quang |
Bug Description
registered variable and used variable not matching in bootstrap.yml of ceilometer that cause below error:
TASK [ceilometer : Creating Ceilometer MongoDB database] *******
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check ''already' not in database.stdout' failed. The error was: error while evaluating conditional ('already' not in database.stdout): Unable to look up a name or access an attribute in template string ({% if 'already' not in database.stdout %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable"}
NO MORE HOSTS LEFT *******
to retry, use: --limit @/home/
problem in below code of bootstrap.yml (https:/
- name: Creating Ceilometer MongoDB database
command: docker exec -t mongodb mongo --host {{ ceilometer_
register: mongodb_
run_once: true
failed_when:
- "'already' not in database.stdout"
- database.
delegate_to: "{{ groups[
when:
- ceilometer_
- name: Creating Ceilometer mysql database
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m mysql_db
-a "login_host='{{ ceilometer_
name='{{ ceilometer_
register: mysql_ceilomete
changed_when: "{{ database.
failed_when: database.
run_once: True
delegate_to: "{{ groups[
when:
- ceilometer_
Changed in kolla: | |
assignee: | nobody → prameswar (prameswar) |
Changed in kolla: | |
milestone: | none → ocata-1 |
no longer affects: | kolla/newton |
no longer affects: | kolla/ocata |
Fix proposed to branch: master /review. openstack. org/389252
Review: https:/