MariaDB Galera recovery not possible because of "/bin/sh: 1: [[: not found"

Bug #1729603 reported by Christian Berendt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Critical
Benjamin Diaz

Bug Description

While running the recovery playbook for the mariadb cluster i got the following issue in the task "Registering mariadb seqno variable": /bin/sh: 1: [[: not found

In the task we call [[ with the ansible shell module without setting the used shell to bash. By default ansible uses /bin/sh and not /bin/bash. [[ is a future of bash, not sh. Because of this we have to set the shell to /bin/bash when using [[.

Changed in kolla-ansible:
importance: Undecided → Critical
description: updated
summary: - MariaDB Galera recovery not possible
+ MariaDB Galera recovery not possible because of "/bin/sh: 1: [[: not
+ found"
Changed in kolla-ansible:
assignee: nobody → Benjamin Diaz (benjamin.diaz)
assignee: Benjamin Diaz (benjamin.diaz) → nobody
Changed in kolla-ansible:
assignee: nobody → Benjamin Diaz (benjamin.diaz)
milestone: none → queens-2
Changed in kolla-ansible:
milestone: queens-2 → queens-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/523180
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=6f64549e1bf54af55072a5992d1011b28fa6ca22
Submitter: Zuul
Branch: master

commit 6f64549e1bf54af55072a5992d1011b28fa6ca22
Author: Benjamin Diaz <email address hidden>
Date: Mon Nov 27 15:07:38 2017 -0300

    Set bash as shell when executing mariadb recovery task

    Added 'executable' argument to the shell action in the
    'Comparing seqno value' task in the cluster recovery playbook.

    Change-Id: I3e96a4a76b44ffb558b9a41cde16e66a8d0fab1a
    Closes-Bug: #1729603

Changed in kolla-ansible:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/517299
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=e132cebc6b4eaca7c9e682f5f3f0070e3fd48171
Submitter: Zuul
Branch: master

commit e132cebc6b4eaca7c9e682f5f3f0070e3fd48171
Author: Christian Berendt <email address hidden>
Date: Thu Nov 2 14:08:01 2017 +0100

    Use /bin/bash as executable in a task of the mariadb recovery play

    Change-Id: I5e5aaab4fd1ef39de1b1e6fcf5b87ba8b41ba7eb
    Closes-bug: 1729603

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/530614

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

Reviewed: https://review.openstack.org/530614
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=34446f67e3a23fc3699a7ba29f749f586bc2fb3f
Submitter: Zuul
Branch: stable/pike

commit 34446f67e3a23fc3699a7ba29f749f586bc2fb3f
Author: Christian Berendt <email address hidden>
Date: Thu Nov 2 14:08:01 2017 +0100

    Use /bin/bash as executable in a task of the mariadb recovery play

    Change-Id: I5e5aaab4fd1ef39de1b1e6fcf5b87ba8b41ba7eb
    Closes-bug: 1729603
    (cherry picked from commit e132cebc6b4eaca7c9e682f5f3f0070e3fd48171)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 6.0.0.0b3

This issue was fixed in the openstack/kolla-ansible 6.0.0.0b3 development milestone.

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

This issue was fixed in the openstack/kolla-ansible 5.0.2 release.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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