Trove install fails with undefined variable errors

Bug #1636798 reported by Ravi Gummadi
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Jesse Pretorius

Bug Description

I set this variable "trove_service_port: 8779" and ran AIO deployment on ubuntu 16.04 including trove. It failed giving errors about couple of undefined variables:

fatal: [aio1_trove_taskmanager_container-6151cde2]: FAILED! => {"failed": true, "msg": "'trove_service_user_name' is undefined"}

fatal: [aio1_trove_conductor_container-5ba38301]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {{ trove_galera_database }}: 'trove_galera_database' is undefined\n\nThe error appears to have been in '/opt/openstack-ansible/playbooks/common-tasks/mysql-db-user.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create DB for service\n ^ here\n"}

Tags: trove
Ravi Gummadi (ravigumm)
Changed in openstack-ansible:
assignee: nobody → Ravi Gummadi (ravigumm)
status: New → In Progress
Revision history for this message
Ravi Gummadi (ravigumm) wrote :

After making code changes to deal with the above 2 variables' related errors, I got the following error:
fatal: [aio1_trove_api_container-6b789705]: FAILED! => {"failed": true, "msg": "'trove_service_project_domain_id' is undefined"}

So defined trove_service_project_domain_id and trove_service_user_domain_id in /etc/ansible/roles/os_trove/defaults/main.yml

Next deployment failed with the following error:

fatal: [aio1_trove_api_container-6b789705]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'trove_regular_user_password' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/os_trove/tasks/trove_service_setup.yml': line 59, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure the trove regular user exists\n ^ here\n"}

So adding passwords related variables of trove to user_secrets.yml in openstack-ansible project.

Revision history for this message
Ravi Gummadi (ravigumm) wrote :

Deployment of trove completed withour errors. But I am not validating the functionalities of trove in this defect. Issues related to functionalities of trove can be handled in separate defects.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/391009

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/391011

Changed in openstack-ansible:
assignee: Ravi Gummadi (ravigumm) → Jesse Pretorius (jesse-pretorius)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/391011
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=31b474e37f1d185b3571e343b02a513a35ad6398
Submitter: Jenkins
Branch: master

commit 31b474e37f1d185b3571e343b02a513a35ad6398
Author: Ravi Gummadi <email address hidden>
Date: Wed Oct 26 23:06:15 2016 -0400

    Fix trove deployment errors

    1. Defined default values for some variables of trove
    2. Added passwords related variables in user_secrets.yml
    3. Fix variable names so that same variable name is used everywhere

    Change-Id: I39c3bad7cca2ab8793419f4d184180ecf7d60f82
    Closes-Bug: #1636798

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_trove (master)

Reviewed: https://review.openstack.org/391009
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_trove/commit/?id=98a839598f8b4fb5898a78600dde74350fd65b2d
Submitter: Jenkins
Branch: master

commit 98a839598f8b4fb5898a78600dde74350fd65b2d
Author: Ravi Gummadi <email address hidden>
Date: Wed Oct 26 23:13:52 2016 -0400

    Fix trove deployment errors

    1. Defined default values for some variables of trove
    2. Added passwords related variables in user_secrets.yml
    3. Fix variable names so that same variable name is used everywhere

    Change-Id: Icc9f016a4b928dd34203a3fa7e90791a527e7c19
    Closes-Bug: #1636798

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible 15.0.0.0b1 development milestone.

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.