Backup & Restore: platform-integ-apps not auto applying after restore in DC system with upgraded apps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Dan Voiculeasa |
Bug Description
Brief Description
-----------------
During the restore procedure the platform-integ-apps should be auto-applied.
The restore procedure requires manual intervention for it to complete.
Severity
--------
Critical: Upgrades feature which is based on B&R will not be usable due to the defect.
Steps to Reproduce
------------------
Bring up a DC systemcontroller.
Upgrade platform-integ-apps from 1.0-x to 1.0-(x+1) or other.
Do the B&R.
Expected Behavior
------------------
During the restore procedure, after controller-0 is unlocked, controller-1 is booted from pixie, and ceph health becomes HEALTH_OK the platform-integ-apps should be auto-applied
Actual Behavior
----------------
App platform-integ-apps stays in uploaded state.
Reproducibility
---------------
100%
System Configuration
-------
DC systemcontroller
Branch/Pull Time/Commit
-------
Branch and the time when code was pulled or git commit or cengn load info
Last Pass
---------
Did this test scenario pass previously? If so, please indicate the load/pull time info of the last pass.
Use this section to also indicate if this is a new test scenario.
Timestamp/Logs
--------------
The sysinv periodic thread responsible for auto-applying is failing:
File "/usr/lib64/
task(self, context)
File "/usr/lib64/
app = kubeapp_
File "/usr/lib64/
result = fn(cls, context, *args, **kwargs)
File "/usr/lib64/
return cls.dbapi.
File "/usr/lib64/
result = fn(*args, **kwargs)
File "/usr/lib64/
return self._kube_
File "/usr/lib64/
result = query.one()
File "/usr/lib64/
"Multiple rows were found for one()")
MultipleResults
Querying the database shows multiple versions in uploaded state. Older version (the 1.0-x) should be in inactive state.
2020-08-26 15:26:10.086176 | 2020-08-26 21:47:55.369676 | 3 | platform-integ-apps | 1.0-x | platform-
2020-08-26 21:47:55.376151 | 2020-08-26 21:49:03.491622 | 8 | platform-integ-apps | 1.0-(x+1) | platform-
Test Activity
-------------
Testing
Workaround
----------
Manually updating the database for older version to change it from uploaded to inactive.
Changed in starlingx: | |
assignee: | nobody → Dan Voiculeasa (dvoicule) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.5.0 stx.update |
Fix proposed to branch: master /review. opendev. org/748601
Review: https:/