FM and dcmanager databases not migrated during upgrade to stx.4.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
John Kung |
Bug Description
Brief Description
-----------------
When a system is upgraded to stx.4.0 some databases are not preserved:
- The contents of the FM database are not preserved (except in AIO-SX) so all event logs and alarm suppression configuration are lost.
- The dcmanager and dcorch databases are preserved, but their schemas are not migrated. This causes dcmanager to fail after controller-1 is upgraded to stx.4.0.
Severity
--------
Critical: upgrades to stx.4.0 fail for distributed cloud systems
Steps to Reproduce
------------------
Upgrade a distributed cloud system to stx.4.0
Expected Behavior
------------------
All FM data is migrated (except alarm table) and dcmanager/dcorch database schemas are migrated.
Actual Behavior
----------------
No FM data is migrated and dcmanager/dcorch database schemas are not migrated.
Reproducibility
---------------
Reproducible
System Configuration
-------
All, although the impact to distributed cloud configurations is more severe.
Branch/Pull Time/Commit
-------
BUILD_ID=
Last Pass
---------
Never
Timestamp/Logs
--------------
There are various failure logs in dcmanager.log but also the dcmanager CLI fails as follows:
$ dcmanager subcloud list
ERROR (app)
Test Activity
-------------
Developer Testing
Workaround
----------
No workaround for the FM data. For the dcmanager/dcorch issue, after controller-1 has been upgraded and becomes active, run these commands as root on controller-1:
sudo dcmanager-manager db_sync
tags: | added: stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → John Kung (john-kung) |
tags: | added: stx.4.0 |
Changed in starlingx: | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
tags: | added: stx.update |
Changed in starlingx: | |
status: | In Progress → Fix Released |
tags: | added: in-r-stx40 |
Fix proposed to branch: master /review. opendev. org/738284
Review: https:/