-
Notifications
You must be signed in to change notification settings - Fork 184
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
Removed hardcoded portable=true #480
Removed hardcoded portable=true #480
Conversation
/cc @jarrpa |
Hi @rohan47. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is good. Please include a note in the commit message of why this is no longer needed.
@@ -1000,7 +1000,6 @@ func newStorageClassDeviceSets(sc *ocsv1.StorageCluster) []rook.StorageClassDevi | |||
(&in).DeepCopyInto(&placement) | |||
|
|||
if len(topologyKeyValues) >= replica { | |||
portable = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we also remove the variable on line 996 and then on line 1026 we use ds.Portable
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we can, yeah. We can just introduce the variable again later if we have need.
c4b53be
to
987786f
Compare
An improved commit message, but there is a typo and could use a bit of rewording. Something like:
|
987786f
to
2a7484a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
/retest |
/ok-to-test |
/retest Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
2a7484a
to
5eaf5fe
Compare
@umangachapagain looks like even after |
@rohan47 wrote:
Did you also commit the |
Yes |
Functional test failing here: https://github.com/openshift/ocs-operator/pull/480/files#diff-3ab4add16e230d7d70aa431f83ce9551R491 |
Strange... I get a diff when i run |
Its the timestamp in |
The OCP console used to require us to hardcode portable=true. Now it explicitly sets portable=true so there is no longer need to hardcode it in the operator code. Removing the hardcoded value from the operator code also makes it possible to set the value of portable without setting a placement as a workaround. Signed-off-by: rohan47 <rohgupta@redhat.com>
5eaf5fe
to
a34c132
Compare
@rohan47 FYI I just updated the PR with my results of running I had a similar issue with another PR recently, and IIRC, the problem went away after I had run |
@rohan47: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jarrpa, rohan47 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 |
portable
was hardcoded to true in case placement is none which resulted inportable=true
even if in the storageCluster CR it was specifiedfalse
Signed-off-by: rohan47 rohgupta@redhat.com