local_ydb_upgrade_version
Upgrade a local YDB profile to a target image tag while preserving dynamic node ports. Inspects nodes, dumps data, rebuilds, restores, and verifies the updated profile, leaving it unchanged on any verification mismatch.
Instructions
Upgrade a file-backed, volume-backed local-ydb profile to a target image tag. Use only for version upgrades on profiles without bindMountPath; before dump or destroy it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports, aborting on an incomplete definition. It then preflights source and target images, dumps, rebuilds, restores, reapplies auth when configured, recreates extra nodes, and performs final image verification. A verified mismatch leaves the profile unchanged; if final inventory is unavailable after successful rebuild phases, the response keeps command history, reports partial verification, and persists the target profile image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to execute the version upgrade plan. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| version | Yes | Target image tag returned by local_ydb_list_versions. | |
| dumpName | No | Optional dump directory name under profile.dumpHostPath for the upgrade backup. | |
| configPath | No | Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart. |