Run recovery with galera-bootstrap tag causing check conditional 'mysql_started | failed' failed

Bug #1680694 reported by Jirayut Nimsaeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Jirayut Nimsaeng

Bug Description

I'm using OSA Ocata 15.1.0. When I'm trying to recovery with command

openstack-ansible galera-install.yml --tags galera-bootstrap

It shows error below

TASK [galera_server : Start cluster with wsrep init fallback] ******************
Friday 07 April 2017 12:07:47 +0700 (0:00:00.060) 0:00:03.413 **********
fatal: [infra1_galera_container-0b489d44]: FAILED! => {"failed": true, "msg": "The conditional check 'mysql_started | failed' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/etc/ansible/roles/galera_server/tasks/galera_bootstrap.yml': line 49, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# TODO: Remove this task after 10.0 is removed from upgrade path\n- name: Start cluster with wsrep init fallback\n ^ here\n"}

I think the root cause came from https://github.com/openstack/openstack-ansible-galera_server/blob/master/tasks/galera_bootstrap.yml#L22 that missing "galera-bootstrap" tag

Changed in openstack-ansible:
assignee: nobody → Jirayut Nimsaeng (winggundamth)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-galera_server (master)

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

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

Reviewed: https://review.openstack.org/454452
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/commit/?id=61609d8f9f99826cd4a519ebde81efdf7d697e76
Submitter: Jenkins
Branch: master

commit 61609d8f9f99826cd4a519ebde81efdf7d697e76
Author: Jirayut Nimsaeng <email address hidden>
Date: Fri Apr 7 12:13:11 2017 +0700

    Fix conditional check error when run galera-bootstrap tag

    Task "Start mysql node normally" needs to add "galera-bootstrap"
    tag or it will causing conditional check error on mysql_started
    variable

    Change-Id: Id7e3fd30480b39b200cffb085c212b5ab5229f04
    Closes-Bug: #1680694

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-galera_server 16.0.0.0b1

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-galera_server (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/463613

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-galera_server (stable/ocata)

Reviewed: https://review.openstack.org/463613
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-galera_server/commit/?id=e47877adc99bf64b900c83056716dfc09f2bcc0b
Submitter: Jenkins
Branch: stable/ocata

commit e47877adc99bf64b900c83056716dfc09f2bcc0b
Author: Jirayut Nimsaeng <email address hidden>
Date: Fri Apr 7 12:13:11 2017 +0700

    Fix conditional check error when run galera-bootstrap tag

    Task "Start mysql node normally" needs to add "galera-bootstrap"
    tag or it will causing conditional check error on mysql_started
    variable

    Change-Id: Id7e3fd30480b39b200cffb085c212b5ab5229f04
    Closes-Bug: #1680694
    (cherry picked from commit 61609d8f9f99826cd4a519ebde81efdf7d697e76)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-galera_server 15.1.4

This issue was fixed in the openstack/openstack-ansible-galera_server 15.1.4 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.