Scenario:
Data loss may occur if a Harbor tile is upgraded to an unsupported Harbor tile version or a version not within Harbor Supported Upgrade Paths.
Example:
It is important to follow the documented Harbor upgrade path for your version.
To avoid this scenario:
NOTE: A Harbor improvement has already been submitted to the avoid these scenarios.
Improvement Details:
The harbor database should fail early when upgrading from an unsupported version
The plan is to utilize an attribute within the Harbor tile metadata.yml
file. The attribute, minimum_version_for_upgrade, will be implemented to avoid this in future releases.
VMware Harbor Registry: versions v2.11.0 and earlier
Opsmanager: v3.0.32+LTS-T
Details:
Harbor upgrades may include upgrades to new Postgres database versions. Upgrades may also include Postgres database schema changes.
Any upgrade attempts which skip these changes may result in the Postgres database to become corrupt or lost.
Potential scenarios:
NOTE: There can be different scenarios depending on source and target Harbor versions. Variables include, but not limited to:
Reported Scenario:
Scenario Details:
Workaround:
There is a recovery procedure. Recovery procedures may be different, depending upon the original Harbor version and the upgraded version.
Therefore, it is important to engage Tanzu Support. To expedite, include the following in the support request:
Product Enhancement: https://github.com/goharbor/harbor/issues/21099