Action failures are not reported well to the end user

Bug #1879762 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL InnoDB Cluster Charm
Fix Released
High
David Ames

Bug Description

When an action fails, the traceback only shows that the subprocess call to mysqlsh failed it does not communicate what went wrong.

For example when running the reboot-cluster-from-complete-outage action it is possible the stderr output will inform the user that a different node has the latest state. This simply means the user needs to run reboot-cluster-from-complete-outage on that other unit. But this information is not communicated in the output.

TRIAGE:

Ensure stderr from the subprocess call is sent all the way through to the action-fail set.

David Ames (thedac)
Changed in charm-mysql-innodb-cluster:
status: New → Triaged
importance: Undecided → High
assignee: nobody → David Ames (thedac)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-mysql-innodb-cluster (master)

Fix proposed to branch: master
Review: https://review.opendev.org/729743

Changed in charm-mysql-innodb-cluster:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-mysql-innodb-cluster (master)

Reviewed: https://review.opendev.org/729743
Committed: https://git.openstack.org/cgit/openstack/charm-mysql-innodb-cluster/commit/?id=5f682d234acb3f50c3f7cf3f6bda37cd1423e917
Submitter: Zuul
Branch: master

commit 5f682d234acb3f50c3f7cf3f6bda37cd1423e917
Author: David Ames <email address hidden>
Date: Wed May 20 11:52:29 2020 -0700

    Fix failed action stderr output

    Send stderr all the way through to the action set to inform the end
    user what failed with useful information.

    Re-enable MySQLInnoDBClusterColdStartTest.
    Remove Eoan tests.

    func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/291

    Change-Id: I9b89c21637261b97a2210e3acd5bb255d725daac
    Closes-Bug: #1879762

Changed in charm-mysql-innodb-cluster:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-mysql-innodb-cluster:
milestone: none → 20.05
status: Fix Committed → Fix Released
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.