Skip to content

[cifmw_block_device] Add thin-provisioned LV support for Ceph OSDs#3972

Open
bogdando wants to merge 1 commit into
openstack-k8s-operators:mainfrom
bogdando:bm_sno_ceph
Open

[cifmw_block_device] Add thin-provisioned LV support for Ceph OSDs#3972
bogdando wants to merge 1 commit into
openstack-k8s-operators:mainfrom
bogdando:bm_sno_ceph

Conversation

@bogdando

@bogdando bogdando commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

When cifmw_ceph_thin_pool is defined, create thin LVs from an existing VG thin pool instead of loop-backed files. This supports baremetal hosts where the disk is fully consumed by a thin pool with no raw devices available for cephadm.
The new play runs before the existing loop device play and sets cifmw_ceph_spec_data_devices with explicit LV paths, which also causes the loop device play to be skipped.

Related OSPRH-27841

@openshift-ci

openshift-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dasm for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@bogdando

bogdando commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

tested this downstream for BM SNO DCN job. I will test this also with an hci uni job for regressions - together with #3773

@centosinfra-prod-github-app

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://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/5b3f91a9e3834f2090d41e7be01d89b1

openstack-k8s-operators-content-provider FAILURE in 6m 33s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal-minor-update SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ podified-multinode-hci-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 54s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 25s

@bogdando

bogdando commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Comment thread hooks/playbooks/ceph.yml Outdated
Comment thread hooks/playbooks/ceph.yml Outdated
Comment thread hooks/playbooks/ceph.yml Outdated
Comment thread hooks/playbooks/ceph.yml Outdated
@centosinfra-prod-github-app

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://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/9e01ec97df7c4a2e80a2ca62b2009d9c

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 29m 41s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 27m 18s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 33m 25s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 13m 53s
podified-multinode-hci-deployment-crc FAILURE in 55m 39s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 10m 01s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 56s

Comment thread hooks/playbooks/ceph.yml Outdated
@centosinfra-prod-github-app

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://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/14b8aaa0938e45efad6d7e8f2ca55537

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 06m 20s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 29m 51s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 40m 24s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 1h 52m 59s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 1h 49m 15s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 25s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 52s
cifmw-pod-pre-commit FAILURE in 8m 38s
✔️ cifmw-molecule-cifmw_block_device SUCCESS in 5m 48s

@bogdando bogdando changed the title [ceph] Add thin-provisioned LV support for Ceph OSDs [cifmw_block_device] Add thin-provisioned LV support for Ceph OSDs Jun 9, 2026
Modify cifmw_block_device role to support loop back and thin LVM
devices.

For ceph deploy hook, when cifmw_ceph_thin_pool is defined, create thin
LVs from an existing VG thin pool instead of loop-backed files.

This supports baremetal hosts where the disk is fully consumed by a
thin pool with no raw devices available for cephadm.

The new play runs before the existing loop device play and sets
cifmw_ceph_spec_data_devices with explicit LV paths, which also
causes the loop device play to be skipped.

Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>
@bogdando bogdando requested a review from evallesp June 10, 2026 10:37
@bogdando

bogdando commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

this worked on my test env. I will test this also with an hci uni job for regressions - together with #3773

@evallesp

Copy link
Copy Markdown
Contributor

this worked on my test env. I will test this also with an hci uni job for regressions - together with #3773

DO you have a ink for those tests?

Comment thread hooks/playbooks/ceph.yml

@fultonj fultonj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is imperative that users be able to override cifmw_ceph_spec_data_devices and that they are free from it always being set as a fact.

@fultonj fultonj dismissed their stale review June 16, 2026 11:24

Issue addressed.

@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

It is imperative that users be able to override cifmw_ceph_spec_data_devices and that they are free from it always being set as a fact.

and that is not broken by this patch.

@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Let's make sure hci-crc and unijobs which use ceph (e.g. gamma or delta) pass before merging this.

@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

From my review, this should be fine. The code being change has a lot of operational years on it in different CI jobs including CRC and uni so let's make sure they don't break from it.

Other than that it's fine by me.

@evallesp evallesp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@evallesp

Copy link
Copy Markdown
Contributor

/lgtm

removed the label in favour of checking CRC jobs output

@evallesp evallesp removed the lgtm label Jun 16, 2026
@fultonj

fultonj commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

we see that podified-multinode-hci-deployment-crc already passed. we just want to make sure we get a green uni job like gamma or delta

@bogdando

Copy link
Copy Markdown
Contributor Author

downstream testproject passed tempest tests, the horizon test failures are unrelated

@evallesp evallesp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants