Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#

Issue

Notes 

Decision

1Short term solution will be delivered on 'latest branchNOT in any specific commit/version mention in original bug

Agreed in meeting with stakeholders on  

2Where to Store Version NumberDatabase/ Liquibase
(Liquibase not possible for NCMP)
CPS-Core Liquibase as 'id' field which act as vessio. Current id/version is 15
see changelog/db/changes/15-rename-column-yang-resource-table.yaml

Use Liquibase ID as CPS & NCMP 'version'


Check with Tony Finnerty 

3Does NCMP need (separate) version number from CPS-CoreLong term issue?
4Where to trigger implement upgrade action

Options:

  1. Init container 
  2. kubernetes - hooks
  3. SpringBoot lifecycle events
  4. Liquibase step 16
  1. Liquibase step 16
5What Dmi-registry yangmodel version we need to upgrade FROM

Relate commit message: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commit;h=7914c8924723092345e8b4d829f15d2a3a5c72c8

Was the data compatibility issue introduced by changelog/db/changes/14-loadData-dmi-registry-2022-05-10-schema-set.yaml


6Does short term solution need version

Check with Tony Finnerty  see #2

7Technical debt: dmi-registry is installed as part of liquibase step in CPS-Core. Can solution build upon this technical debtAdd liquibase steps 

Preferred solution is to use Liquibase step ie build upon the technical debt

Check with Tony Finnerty 

8Do we need to worry about rollback requires specific statements to execute rollbackYes
9Size of customer data, can transformation cause delay/startup problems

10Describe/document upgrade and rollback procedures?Is this needed or handle as part of orchestration install/upgrade procedures


Short Term Solution

  1. Use Liquibase ID as CPS & NCMP 'version'
  2. Add Liquibase step 16 with 'dummy' transformation
  3. Test liquibase upgrade
  4. Test liquibase rollback

Long Term Solution (out of scope)

  • Resolve technical debt about CPS-Core installing and upgrading NCMP models and data
  • Consider Downgrade