traceback is displayed on the screen when lifecycle hook raises exception

Bug #1954671 reported by Daniel Safta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Daniel Safta

Bug Description

Brief Description
-----------------
When running system application-apply with
an app and there is a lifecycle hook
which raises an exception the traceback
will be displayed on the screen.

Severity
--------
Minor

Steps to Reproduce
------------------
run system application-apply <app> where app is an application which raises a exception in a lifecycle hook.

Expected Behavior
------------------
just the exception message displayed on the screen

Actual Behavior
----------------
both exception message and traceback are displayed on the screen.

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any system

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
-
Timestamp/Logs
--------------
-
Test Activity
-------------
-
Workaround
----------
-

Changed in starlingx:
status: New → In Progress
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: minor / not gating; minor issue with traceback displayed in the case of a failure

Changed in starlingx:
importance: Undecided → Low
tags: added: stx.apps stx.containers
Changed in starlingx:
assignee: nobody → Daniel Safta (dsafta)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/821398
Committed: https://opendev.org/starlingx/config/commit/2f02cdbe1c691aba4efc941f408a98276a4fbb61
Submitter: "Zuul (22348)"
Branch: master

commit 2f02cdbe1c691aba4efc941f408a98276a4fbb61
Author: Daniel Safta <email address hidden>
Date: Fri Dec 10 12:28:04 2021 +0200

    Hide traceback for application-apply cmd

    When running system application-apply with
    an app and there is a lifecycle hook
    which raises an exception the traceback
    will be displayed on the screen.

    This commit addresses this issue and keeps
    just the exception message displayed.

    Note: this might be needed for the other
    system cmds changed here:
    https://opendev.org/starlingx/config/commit/12df6a264c6f23807d004e20da1f8a0e3147b29c

    Closes-bug: 1954671
    Signed-off-by: Daniel Safta <email address hidden>
    Change-Id: If4d66edb07a5aac9ef40bceecb37e0beba309c7a

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: adding the stx.7.0 release tag since the fix will be available for that release

tags: added: stx.7.0
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.