No menu items for this category

Upgrade on Kubernetes

This guide will help you upgrade your OpenMetadata Kubernetes Application with automated helm hooks.

This guide assumes that you have an OpenMetadata deployment that you installed and configured following the Kubernetes Deployment guide.

We also assume that your helm chart release names are openmetadata and openmetadata-dependencies and namespace used is default.


Everytime that you plan on upgrading OpenMetadata to a newer version, make sure to go over all these steps:

Before upgrading your OpenMetadata version we strongly recommend backing up the metadata.

The source of truth is stored in the underlying database (MySQL and Postgres supported). During each version upgrade there is a database migration process that needs to run. It will directly attack your database and update the shape of the data to the newest OpenMetadata release.

It is important that we backup the data because if we face any unexpected issues during the upgrade process, you will be able to get back to the previous version without any loss.

You can learn more about how the migration process works here.

  • To run the backup and restore commands, please make sure that you are always in the latest openmetadata-ingestion version to have all the improvements shipped in the CLI.
  • Also, make sure you have connectivity between your database (MySQL / PostgreSQL) and the host machine where you will be running the below commands.

1. Create a Virtual Environment and Install the Backup CLI

Validate the installed metadata version with python -m metadata --version

2. Run the Backup

If using MySQL:

If using Postgres:

3. Store the backup file somewhere safe

The above command will generate a backup file with extension as .sql. You can copy the name from the backup command output.

Make sure to store it somewhere safe in case you need to restore the data later.

You can refer to the following guide to get more details about the backup and restore:

Before running the migrations, it is important to update these parameters to ensure there are no runtime errors. A safe value would be setting them to 20MB.

If using MySQL

You can update it via SQL (note that it will reset after the server restarts):

To make the configuration persistent, you'd need to navigate to your MySQL Server install directory and update the my.ini or my.cnf files with sort_buffer_size = 20971520.

If using RDS, you will need to update your instance's Parameter Group to include the above change.

If using Postgres

You can update it via SQL (not that it will reset after the server restarts):

To make the configuration persistent, you'll need to update the postgresql.conf file with work_mem = 20MB.

If using RDS, you will need to update your instance's Parameter Group to include the above change.

Note that this value would depend on the size of your query_entity table. If you still see Out of Sort Memory Errors during the migration after bumping this value, you can increase them further.

After the migration is finished, you can revert this changes.

Deprecation Notice

  • Check the updated docs on how to configure Airflow DAG's lineage. We will deprecate the dictionary annotation in the 1.4 release, since the new annotation allows you to define lineage between assets other than Tables.

  • On 1.4.0 we will deprecate the metadata backup and metadata restore commands in favor of native backup & restore tools from MySQL and PostgreSQL. We will provide a guide on how to use these tools to backup and restore OpenMetadata metadata.

Breaking Changes

Upgrading to OpenMetadata 1.3.0 will REMOVE your existing Alerts. You will need to recreate your alerts manually.

We have fully reworked how we manage alerts to make the experience easier for end users, with a more comprehensive list of sources, filters and actions.

This process required a full backend rewrite, which means that there is no automatic way to migrate alerts from the old system.


New Alerts UI

The Secrets Manager noop option has been renamed to db. You can find this in the config below:

Either update your YAMLs or the env var you are using under SECRET_MANAGER.

Note how we also added the possibility to add prefix when defining the secret key ID in the external secrets managers and the option to tag the created resources.

In this release we updated the server Dockerfile to work with openmetadata as a user instead of root.

If you're mapping volumes, specially when configuring JWK, you will need to update the owner of the directory to get it working with the new openmetadata user.

You will need to run:

Otherwise, you'll see a similar error in your server logs:

In 1.2.0 we introduced the Elasticsearch reindex job as part of the OpenMetadata server. In this release, we removed triggering ES job from Python workflows. Everything happens in the server now. The image will not ship the metadata_to_es DAG anymore.

The openmetadata/ingestion and openmetadata/ingestion-base images now use Python 3.10.

Note that starting release 1.3.0, the openmetadata-ingestion package started supporting Python 3.11. We'll migrate the images to 3.11 in the next release.

We cleaned all the Python SDK code related to any auth system that is not JWT token. Bots deprecated that behavior 2 releases ago and only supported JWT. This is now reflected in the code.

Removed the MSSQL connection option from airflow backend database. This is due to the option being experimental and will be deprecated by the Airflow team. For more information refer to the link.

If you are using airflow with MSSQL backend, we recommend switching it to the supported backends e.g., MYSQL or POSTGRES.

This is what has been removed:

In 1.3.0 we started registering more information from Ingestion Pipelines status' in the platform. This required us to create new JSON Schemas for the added properties, that before were only used in the Ingestion Framework.

Due to this, we need to update one import and one of its properties' names.


  • From from metadata.ingestion.api.models import StackTraceError
  • To from import StackTraceError

And we renamed its property stack_trace to stackTrace to follow the naming conventions in JSON Schemas.

In the collate-sqllineage dependency, we have renamed the sqllineage import to collate_sqllineage.

This change has been made to avoid any conflict with the open source version of sqllineage. In case you are using this package directly in your python scripts please make sure to rename your imports:

  • From from import xxx
  • To from import xxx

We have removed the connection string authentication from MongoDB service and now we only support passing the authentication credentials by value.

Before the upgrade make sure you review the mongodb connection if you have provided the proper connection details/credentials to ensure the smooth migration.

If you were using connection string based authentication then structure of connection details would change:

If you were using connection value based authentication then structure of connection details would change:

Upgrade Process

You can get changes from artifact hub of openmetadata helm chart release. Click on Default Values >> Compare to Version.

Helm Chart Release Comparison

Update Helm Chart Locally for OpenMetadata with the below command:

It will result in the below output on screen.

Verify with the below command to see the latest release available locally.

You can run the below command to upgrade the dependencies with the new chart

The above command uses configurations defined here. You can modify any configuration and deploy by passing your own values.yaml.

Make sure that, when using your own values.yaml, you are not overwriting elements such as the image of the containers. This would prevent your new deployment to use the latest containers when running the upgrade.

If you are running into any issues, double-check what are the default values of the helm revision.

Finally, we upgrade OpenMetadata with the below command:

You might need to pass your own values.yaml with the --values flag.

Note that in every version upgrade there is a migration process that updates your database to the newest version.

For kubernetes, this process will happen automatically as an upgrade hook.

You can learn more about how the migration process works here.

Post-Upgrade Steps

Go to Settings -> Applications -> Search Indexing



Click on Run Now.

In the configuration section, you can select the entities you want to reindex.



Since this is required after the upgrade, we want to reindex All the entities.

If you are running the ingestion workflows externally or using a custom Airflow installation, you need to make sure that the Python Client you use is aligned with the OpenMetadata server version.

For example, if you are upgrading the server to the version x.y.z, you will need to update your client with

The plugin parameter is a list of the sources that we want to ingest. An example would look like this openmetadata-ingestion[mysql,snowflake,s3]==1.2.0. You will find specific instructions for each connector here.

Moreover, if working with your own Airflow deployment - not the openmetadata-ingestion image - you will need to upgrade as well the openmetadata-managed-apis version:

Go to Settings -> {service entity} -> Pipelines



Select the pipelines you want to Re Deploy click Re Deploy.

If you are seeing broken dags select all the pipelines from all the services and re deploy the pipelines.


With Release 1.0.0, if you see your helm charts failing to deploy with the below issue -

This means the values passed to the helm charts has a section global.airflow. As per the breaking changes mentioned here, Airflow configs are replaced with pipelineServiceClient for Helm Charts.

The Helm Chart Values JSON Schema helps to catch the above breaking changes and this section will help you resolve and update your configurations for the same. You can read more about JSON Schema with Helm Charts here.

You will need to update the existing section of global.airflow values to match the new configurations.

⛔ Before 1.0.0 Helm Chart Release, the global.airflow section would be like -

✅ After 1.0.0 Helm Chart Release, the global.pipelineServiceClient section will replace the above airflow section -

Run the helm lint command on your custom values after making the changes to validate with the JSON Schema.

This issue will only occur if you are using openmetadata-dependencies helm chart version 0.0.49 and 0.0.50 and upgrading to latest helm chart release.

If your helm dependencies upgrade fails with the below command result -

This issue is related to a minor change that affected the MySQL Database Engine version upgrade from 8.0.28 to 8.0.29 for the Helm Chart Release 0.0.49 and 0.0.50. Then the registry url was updated as we found a work around to fetch previous versions of bitnami/mysql Helm Releases.

As a result of the above fixes, anyone who is on OpenMetadata Dependencies Helm Chart Version 0.0.49 and 0.0.50 is affected with the above issue when upgrading for mysql. In order to fix this issue, make sure to follow the below steps -

  1. Backup the Database using Metadata Backup CLI as mentioned here
  2. Uninstall OpenMetadata Dependencies Helm Chart (helm uninstall openmetadata-dependencies)
  3. Remove the unmanaged volume for MySQL Stateful Set Kubernetes Object (kubectl delete pvc data-mysql-0)
  4. Install the latest version of OpenMetadata Dependencies Helm Chart
  5. Restore the Database using Metadata Restore CLI as mentioned here
  6. Next, Proceed with upgrade for OpenMetadata Helm Chart as mentioned here