Exception message is not being shown when Application-apply fails

Bug #1995890 reported by Fabricio Henrique Ramos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Fabricio Henrique Ramos

Bug Description

Brief Description
-----------------
The output when Application-apply cmd fails is not providing the exception correctly:

[sysadmin@controller-0 ~(keystone_admin)]$ system application-apply platform-integ-apps
Application-apply rejected: Remote error: %(exc_type)s %(value)s
%(traceback)s.
[sysadmin@controller-0 ~(keystone_admin)]$

Severity
--------
Minor: System/Feature is usable with minor issue

Steps to Reproduce
------------------
I think in my case it failed due to Ceph not being healthy. So force an issue with Ceph and then try to apply platform-integ-apps

Expected Behavior
------------------
The platform-integ-apps showing the exception message so operator can handle the error. Kindly provide better feedback.

Actual Behavior
----------------
The output shows the variable names only not showing what caused the error.

Reproducibility
---------------
1 out of 1

System Configuration
--------------------
DC

Branch/Pull Time/Commit
-----------------------
Debian 22.12

Last Pass
---------
NA

Timestamp/Logs
--------------
[sysadmin@controller-0 ~(keystone_admin)]$ system application-apply platform-integ-apps
Application-apply rejected: Remote error: %(exc_type)s %(value)s
%(traceback)s.
[sysadmin@controller-0 ~(keystone_admin)]$
Test Activity
-------------
Debian Testing

Workaround
----------
NA

Changed in starlingx:
assignee: nobody → Fabricio Henrique Ramos (fhramos)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/863922

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

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

commit c4ece5ea7a4daf3d89936f508ce2db11d8759f8d
Author: Fabricio Henrique Ramos <email address hidden>
Date: Mon Nov 7 15:22:14 2022 -0300

    Fix semantic checks returning template message to user

    Fix system application-apply <app> command so that when it catches an
    RemoteError exception, it returns its value attribute.
    Extend this to the other app operations lifecycle semantic checks
    (delete and remove were already implemented).

    Test Plan:

    PASS: system application-apply command catches RemoteError exception
          and it displays error message only, no traceback.
    PASS: AIO-SX unlocked, enabled, available

    Relates-To: https://review.opendev.org/c/starlingx/config/+/821398
    Closes-Bug: 1995890

    Signed-off-by: Fabricio Henrique Ramos <email address hidden>
    Change-Id: I783794442e44a6c8dfaefc77f5d0216c96d9647c

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.8.0 stx.apps stx.config
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.