Appfwk operation fails due to AttributeError in RPC dispatcher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Leonardo Fagundes Luz Serrano |
Bug Description
Brief Description
-----------------
App operation (apply, remove) fails with following message on sysinv.log:
"AttributeError: 'ConductorManager' object has no attribute 'RPC_API_
File "/usr/lib64/
Oddly, the failure point has a catch clause specifically for AttributeError exceptions
which should be preventing this error.
App will often get stuck with an 'apply-failed' or 'remove-failed' state.
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
Intermittent. Most often seen when trying to apply a large app.
Expected Behavior
------------------
App operation does not fail due to this error
Actual Behavior
----------------
Operation fails
Reproducibility
---------------
Intermittent, but seen quite often.
System Configuration
-------
DX ipv4
Branch/Pull Time/Commit
-------
BUILD_DATE=
Last Pass
---------
This bug might be associated to the transition from Armada to FluxCD around May or June 2022
Timestamp/Logs
--------------
AttributeError: 'ConductorManager' object has no attribute 'RPC_API_NAMESPACE'
4163:2022-09-20 22:43:37.161 175829 ERROR sysinv.
4164:2022-09-20 22:43:37.161 175829 ERROR sysinv.
4165:2022-09-20 22:43:37.161 175829 ERROR sysinv.
4166:2022-09-20 22:43:37.161 175829 ERROR sysinv.
4167:2022-09-20 22:43:37.161 175829 ERROR sysinv.
Test Activity
-------------
[Sanity, Feature Testing, Regression Testing, Developer Testing, Evaluation, Other - Please specify]
Workaround
----------
system application-remove --force <app>
(Might need to delete the app as well with application-delete)
Then re-apply
Changed in starlingx: | |
status: | New → In Progress |
tags: | added: stx.apps stx.containers |
Changed in starlingx: | |
assignee: | nobody → Leonardo Fagundes Luz Serrano (lfagunde) |
importance: | Undecided → Medium |
tags: | added: stx.8.0 |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/860103 /opendev. org/starlingx/ config/ commit/ 015df527fed192b 8eb106093092414 72cc8c8ac1
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 015df527fed192b 8eb106093092414 72cc8c8ac1
Author: Leonardo Fagundes Luz Serrano <email address hidden>
Date: Mon Oct 3 12:13:23 2022 -0300
Fixed AttributeError handling in rpc dispatcher
Exception handling is failing to catch an AttributeError
exception. Code snippet is replaced here by an equivalent
approach using a built-in python function.
The message always comes coupled with another error message.
It is an artifact of the appfwk and provides
no information about the root cause or how to debug it.
Should be removed to avoid confusion.
Test Plan:
PASS Following steps to reproduce the message no longer
trigger it.
Closes-Bug: 1991701 e7f318683669eaf 35871558134
Signed-off-by: Leonardo Fagundes Luz Serrano <email address hidden>
Change-Id: Ia37cf4c5340b58