Skip to content

Add support for cinder-manage online data migrations#624

Open
fmount wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
fmount:odm
Open

Add support for cinder-manage online data migrations#624
fmount wants to merge 3 commits intoopenstack-k8s-operators:mainfrom
fmount:odm

Conversation

@fmount
Copy link
Copy Markdown
Contributor

@fmount fmount commented Apr 1, 2026

Enhance the existing job interface to support multiple cinder-manage commands.
The main purpose of this patch is to introduce the ability to run online_data_migration, required in the upgrade context and described in the upstream documentation [1].
For this reason, this patch:

  • adds a generic CinderManageJob() function with job type parameter
  • implements an OnlineDataMigrationsJob(), useful for upgrade scenarios
  • keeps backward compatibility with existing DbSyncJob()

Jira: OSPRH-1559

[1] https://docs.openstack.org/cinder/latest/admin/upgrades.html

@openshift-ci openshift-ci bot requested review from abays and stuggi April 1, 2026 15:25
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 1, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/62ff833b1f554bd99cebdadb07f49999

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 21m 36s
cinder-operator-kuttl FAILURE in 38m 23s
✔️ cinder-operator-tempest SUCCESS in 2h 01m 52s

fmount and others added 3 commits April 16, 2026 11:46
Enhanced the job interface to support multiple cinder-manage commands:
- Added generic CinderManageJob() function with job type parameter
- Implemented OnlineDataMigrationsJob() for upgrade scenarios
- Maintained backward compatibility with existing DbSyncJob()
- Added proper command routing and configuration logic

This enables running cinder-manage db online_data_migrations during
upgrades as documented in upstream OpenStack upgrade procedure [1].

[1] https://docs.openstack.org/cinder/latest/admin/upgrades.html

Co-Authored-By: Claude <noreply@anthropic.com>
…job.go

Simplified cinder-manage job execution by removing unnecessary kolla layer:
- Updated DBSyncCommand to use direct cinder-manage command
- Removed kolla-specific environment variables (KOLLA_CONFIG_STRATEGY, KOLLA_BOOTSTRAP)
- Eliminated kolla config.json mount (/var/lib/kolla/config_files/config.json)
- Renamed dbsync.go to job.go to better reflect multi-command purpose
- Maintained existing volume structure with filtered config items

Both dbsync and online_data_migrations now execute cinder-manage commands
directly without kolla abstraction, simplifying execution and reducing
dependencies while preserving backward compatibility.

Co-Authored-By: Claude <noreply@anthropic.com>
Integrate online data migrations execution in cinder controller and
update envTests to verify the new condition.
This enables cinder-manage db online_data_migrations to run automatically
during cinder deployment initialization, supporting proper OpenStack
upgrade procedures as documented upstream.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant