6.7. keystone-manage db_sync


usage: keystone-manage [bootstrap|credential_migrate|credential_rotate|credential_setup|db_sync|db_version|doctor|domain_config_upload|fernet_rotate|fernet_setup|mapping_populate|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush] db_sync
       [-h] [--extension EXTENSION] [--expand | --migrate | --contract]
       [version]
Copy to Clipboard Toggle word wrap

Positional arguments

version


        Migrate the database up to a specified version. If not
      provided, db_sync will migrate the database to the
      latest known version. Schema downgrades are not
      supported.

Optional arguments

-h, --help


        show this help message and exit

--extension EXTENSION


      This is a deprecated option to migrate a specified
      extension. Since extensions are now part of the main
      repository, specifying db_sync without this option
      will cause all extensions to be migrated.

--expand


        Expand the database schema in preparation for data
      migration.

--migrate


        Copy all data that needs to be migrated within the
      database ahead of starting the first keystone node
      upgraded to the new release. This command should be
      run after the --expand command. Once the --migrate
      command has completed, you can upgrade all your
      keystone nodes to the new release and restart them.

--contract


        Remove any database tables and columns that are no
      longer required. This command should be run after all
      keystone nodes are running the new release.

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat