Error message problem when delete application

Bug #1830329 reported by Song,Gao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Song,Gao

Bug Description

Brief Description
-----------------
Delete a failed application before remove it , not populated error message is returned,
[wrsroot@controller-0 ~(keystone_admin)]$ system application-delete platform-integ-apps
Delete of application %(name)s (%(version)s) failed: %(reason)s.

Severity
--------
Minor

Steps to Reproduce
------------------
Delete a failed application
$system application-delete stx-openstack

Expected Behavior
------------------
Right error message be displayed

Actual Behavior
----------------
Wrong error message showed

Reproducibility
---------------
Reproducible 100%

System Configuration
--------------------
One node system

Branch/Pull Time/Commit
-----------------------
Based on build of 20190522T013000Z

Last Pass
---------
It seems from stx1.0

Timestamp/Logs
--------------
2019-05-24 14:33:09.779 120752 INFO sysinv.api.controllers.v1.host [-] controller-0 ihost_patch_end. No changes from mtce/1.0.
2019-05-24 14:35:23.264 102959 ERROR stevedore.extension [-] Could not load 'platform-integ-apps': No module named systemconfig.helm_plugins.platform_integ_apps
2019-05-24 14:35:23.264 102959 ERROR stevedore.extension [-] Could not load 'stx-openstack': No module named systemconfig.helm_plugins.stx_openstack
2019-05-24 14:35:23.274 102959 ERROR sysinv.common.exception [req-be20e23f-c1bf-42bd-aada-8c8db28aefa8 admin admin] Exception in string format operation
2019-05-24 14:35:23.274 102959 TRACE sysinv.common.exception Traceback (most recent call last):
2019-05-24 14:35:23.274 102959 TRACE sysinv.common.exception File "/usr/lib64/python2.7/site-packages/sysinv/common/exception.py", line 98, in __init__
2019-05-24 14:35:23.274 102959 TRACE sysinv.common.exception message = self.message % kwargs
2019-05-24 14:35:23.274 102959 TRACE sysinv.common.exception KeyError: u'version'
2019-05-24 14:35:23.274 102959 TRACE sysinv.common.exception
2019-05-24 14:35:23.299 102959 ERROR sysinv.common.exception [req-be20e23f-c1bf-42bd-aada-8c8db28aefa8 admin admin] reason: operation is not allowed while status is apply-failed
2019-05-24 14:35:23.300 102959 ERROR sysinv.common.exception [req-be20e23f-c1bf-42bd-aada-8c8db28aefa8 admin admin] code: 500
2019-05-24 14:35:23.301 102959 ERROR sysinv.common.exception [req-be20e23f-c1bf-42bd-aada-8c8db28aefa8 admin admin] name: stx-openstack
2019-05-24 14:35:23.308 102959 ERROR sysinv.conductor.kube_app [-] Delete of application %(name)s (%(version)s) failed: %(reason)s
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app Traceback (most recent call last):
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app File "/usr/lib64/python2.7/site-packages/sysinv/conductor/kube_app.py", line 1246, in perform_app_delete
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app self._dbapi.kube_app_destroy(app.name)
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app File "/usr/lib64/python2.7/site-packages/sysinv/db/sqlalchemy/api.py", line 7576, in kube_app_destroy
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app reason=failure_reason)
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app KubeAppDeleteFailure: Delete of application %(name)s (%(version)s) failed: %(reason)s
2019-05-24 14:35:23.308 102959 TRACE sysinv.conductor.kube_app
2019-05-24 14:35:23.378 120752 WARNING wsme.api [-] Client-side error: Delete of application %(name)s (%(version)s) failed: %(reason)s

Test Activity
-------------
Feature Testing

Revision history for this message
Song,Gao (song-gao) wrote :
description: updated
Song,Gao (song-gao)
description: updated
Changed in starlingx:
assignee: nobody → Song,Gao (song-gao)
Song,Gao (song-gao)
Changed in starlingx:
status: New → In Progress
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Incorrect error message; low priority; doesn't gate any stx release

Changed in starlingx:
importance: Undecided → Low
tags: added: stx.config stx.containers
Revision history for this message
Song,Gao (song-gao) wrote :

It has been fixed by the commit b978111f197599dd82e4, we can close it.

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

Marking as fix released. This code was merged on 2019-05-23
https://review.opendev.org/#/c/660498/

Changed in starlingx:
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

Bug attachments

Remote bug watches

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