Skip to content

OCPEDGE-1247: make thin pool config editable#708

Merged
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
qJkee:OCPEDGE-1084
Sep 10, 2024
Merged

OCPEDGE-1247: make thin pool config editable#708
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
qJkee:OCPEDGE-1084

Conversation

@qJkee
Copy link
Copy Markdown
Contributor

@qJkee qJkee commented Sep 5, 2024

Make editable overprovisionRatio field in thin pool device class at lvm cluster

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 5, 2024
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Sep 5, 2024

@qJkee: This pull request references OCPEDGE-1084 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the spike to target the "4.18.0" version, but no target version was set.

Details

In response to this:

Make editable overprovisionRatio field in thin pool device class at lvm cluster

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 5, 2024
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Sep 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qJkee

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 5, 2024
@qJkee qJkee changed the title [WIP] OCPEDGE-1084: make thin pool config editable [WIP] OCPEDGE-1247: make thin pool config editable Sep 5, 2024
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Sep 5, 2024

@qJkee: This pull request references OCPEDGE-1247 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

Details

In response to this:

Make editable overprovisionRatio field in thin pool device class at lvm cluster

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Sep 5, 2024

/jira refresh

@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Sep 5, 2024

@qJkee: This pull request references OCPEDGE-1247 which is a valid jira issue.

Details

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Make editable overprovisionRatio field in thin pool device class at lvm cluster
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 75.67568% with 9 lines in your changes missing coverage. Please review.

Project coverage is 70.19%. Comparing base (9946603) to head (0978df3).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/controllers/vgmanager/lvmd/lvmd.go 67.85% 6 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #708      +/-   ##
==========================================
+ Coverage   69.30%   70.19%   +0.89%     
==========================================
  Files          49       49              
  Lines        3313     3342      +29     
==========================================
+ Hits         2296     2346      +50     
+ Misses        841      825      -16     
+ Partials      176      171       -5     
Files with missing lines Coverage Δ
api/v1alpha1/lvmcluster_webhook.go 84.98% <ø> (-0.12%) ⬇️
internal/controllers/vgmanager/controller.go 71.80% <100.00%> (+0.20%) ⬆️
internal/controllers/vgmanager/lvmd/lvmd.go 60.00% <67.85%> (+4.68%) ⬆️

... and 5 files with indirect coverage changes

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Sep 6, 2024

/test e2e-aws
test is flaky

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Sep 6, 2024

/test e2e-aws

1 similar comment
@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Sep 9, 2024

/test e2e-aws

Copy link
Copy Markdown
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

Choose a reason for hiding this comment

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

Just a comment regarding the custom DeepCopy other than that looks okay to me.

A general question: How does TopoLVM behave when overprovisioning is reduced to a limit that is already reached?

maxReadLength = 2 * 1 << 20 // 2MB
)

func DeepCopyConfig(c *Config) *Config {
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.

Why do you need this? Couldnt you just deref and reref the Config? Or use deepcopy gen?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Deref is not working because we have pointers inside. We can generate a deep copy if you think this will be better.

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Sep 9, 2024

@jakobmoellerdev

A general question: How does TopoLVM behave when overprovisioning is reduced to a limit that is already reached?

Looks like it works. That's why I did request additional testing from QE

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 9, 2024
@jakobmoellerdev
Copy link
Copy Markdown
Contributor

What do you mean with it works? It should not be able to overprovision. If that is not prohibited then we need to fix that in upstream

@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 10, 2024
@qJkee qJkee changed the title [WIP] OCPEDGE-1247: make thin pool config editable OCPEDGE-1247: make thin pool config editable Sep 10, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 10, 2024
Copy link
Copy Markdown
Contributor

@jakobmoellerdev jakobmoellerdev left a comment

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 Indicates that a PR is ready to be merged. label Sep 10, 2024
@openshift-ci-robot
Copy link
Copy Markdown

/retest-required

Remaining retests: 0 against base HEAD 8dfb37f and 2 for PR HEAD 0978df3 in total

@jakobmoellerdev
Copy link
Copy Markdown
Contributor

/retest-required

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Sep 10, 2024

@qJkee: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit c4e96b5 into openshift:main Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants