Migration guide from Cennso Agent-based CMC installation to CMC Extension 1.2
With Cennso 2.10.0, Cennso Management Console (CMC) uses Grafana based on a Cennso extension instead of plain Management Console Crossplane composition. A migration procedure is required to keep the existing configuration, such as authentication SSO settings, users, or manually created dashboards.
Note
Before upgrading Cennso Management Console, upgrade Management Cluster to Cennso 2.10.0 and make sure that the cmc-1.2.2 Cennso package is installed on your cluster. If you cannot find it, contact Cennso maintainers.
Migration steps
Get the name of the Management Console Helm release, Grafana's Deployment, and Grafana's PVC:
bashCopy the administrator credentials and Grafana Service Account token for use in the next steps:
bashTo ensure data integrity, shut down your Grafana instance before backing up the SQLite database by scaling down Deployment replicas to 0 in the Management Console composition instance:
bashCreate a temporary pod to retrieve data from Grafana's PVC:
bashCopy the Grafana database file to your host machine using the pod's name from the previous step:
bashEdit database permissions:
bashRemove the temporary pod:
bashUsing the scriptOpens a file, create a
ClusterInstallationresource to apply in the next steps:Delete the old Management Console instance to clean up old managed resources:
bashWait until all resources of the old Management Console instance are removed:
bashIf you didn't receive any data, the old Management Console should be removed.
Create a new CMC instance using the previously created
ClusterInstallationresource:bashWait for the new Grafana's PVC readiness:
bashScale the CMC instance to 0 replicas:
bashEdit the newly created secrets using the old values saved in step 2:
bashIf the secret
cmc-grafana-operator-tokenhas already been created, replace its token:bashIf you see it, then:
bashAttach the new PVC to the temporary pod:
bashUsing the pod's name from the previous step, copy the Grafana database file into the new volume:
bashRemove the temporary pod:
bashScale the CMC instance to 1 replica:
bashWait for the CMC's Pod readiness:
bashIf Pod has a
Readystatus, you can access the CMC instance at the same address as before.Remove unccessary files:
bashRemove the leftover resources coming from the old Management Console composition:
bashNote
Because some resources may no longer exist, an error may occur during removal.