Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage PVCs in the conductor StatefulSet #438

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

steveb
Copy link
Collaborator

@steveb steveb commented Jun 16, 2024

The intent is for each conductor pod to have its own volume to store
/var/lib/ironic state. However currently a single PVC is created and the
resulting volume is shared across conductors. This change moves the PVC
creation to be managed by the StatefulSet, so that PVC replicas match
pod replicas.

ReadWriteMany is not required for these volumes, and we required the
control plane to not provide volumes of this type, so this change also
switches to ReadWriteOnce. This fixes OSPRH-7688.

Jira: OSPRH-7688

@openshift-ci openshift-ci bot requested review from abays and stuggi June 16, 2024 23:26
@steveb steveb requested a review from fultonj June 17, 2024 00:53
pkg/ironicconductor/pvc.go Outdated Show resolved Hide resolved
@steveb steveb marked this pull request as draft June 17, 2024 20:15
@steveb steveb changed the title Switch conductor volume claim to ReadWriteOnce Manage PVCs in the conductor StatefulSet Jun 17, 2024
Copy link

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://review.rdoproject.org/zuul/buildset/ea409a7279b14ba99f6701ccdadc7e81

✔️ noop SUCCESS in 0s
✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 29m 04s
podified-multinode-ironic-deployment FAILURE in 1h 08m 49s

@steveb steveb marked this pull request as ready for review June 18, 2024 01:50
@openshift-ci openshift-ci bot requested a review from hjensas June 18, 2024 01:50
@hjensas hjensas marked this pull request as draft June 18, 2024 08:49
The intent is for each conductor pod to have its own volume to store
/var/lib/ironic state. However currently a single PVC is created and the
resulting volume is shared across conductors. This change moves the PVC
creation to be managed by the StatefulSet, so that PVC replicas match
pod replicas.

ReadWriteMany is not required for these volumes, and we required the
control plane to not provide volumes of this type, so this change also
switches to ReadWriteOnce. This fixes OSPRH-7688.

Authored-By: Steve Baker <sbaker@redhat.com>
Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Jira: OSPRH-7688
Copy link
Contributor

@juliakreger juliakreger left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Contributor

openshift-ci bot commented Jun 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: juliakreger, steveb

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

The pull request process is described here

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

@juliakreger
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 18, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 1560412 into openstack-k8s-operators:main Jun 18, 2024
8 checks passed
@hjensas
Copy link
Contributor

hjensas commented Jun 19, 2024

/lgtm

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.

None yet

3 participants