Skip to content

Conversation

@dagrayvid
Copy link
Contributor

@dagrayvid dagrayvid commented Mar 30, 2022

This PR is intended to fix RHBZ#2066700.

For an initial draft, I am replacing the wildcards with the full set of resources and verbs in the tuned.openshift.io apiGroup. I plan to experiment with removing some of the verbs, especially from the cluster-node-tuning:tuned clusterRole.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 30, 2022
@dagrayvid dagrayvid force-pushed the remove-rbac-wildcards branch from 0b876d7 to d329804 Compare March 30, 2022 20:09
Copy link
Contributor

@jmencak jmencak left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, David! This looks mostly good. However, as we decided to tighten the RBAC rules, we probably should tighten them further. For example, the operand itself will never delete and create Tuneds/Profiles. Also, it should never update Tuneds, just Profiles (statuses). As for deletecollection, do we need this at all for operator/operand? So let's do a full review and keep only those needed.

@jmencak
Copy link
Contributor

jmencak commented Mar 31, 2022

This PR is intended to fix RHBZ#2066664.

It is actually intended to fix rhbz#2066700. Let's update the description, please. Also, I'm not sure this is all that needs to be done to fix that BZ, perhaps @sreber84 can comment.

@dagrayvid
Copy link
Contributor Author

Thank you for the PR, David! This looks mostly good. However, as we decided to tighten the RBAC rules, we probably should tighten them further. For example, the operand itself will never delete and create Tuneds/Profiles. Also, it should never update Tuneds, just Profiles (statuses). As for deletecollection, do we need this at all for operator/operand? So let's do a full review and keep only those needed.

Thanks Jiri. I do plan to tighten the rules before removing the (WIP) from the PR, but your hints are appreciated!

This PR is intended to fix RHBZ#2066664.

It is actually intended to fix rhbz#2066700. Let's update the description, please. Also, I'm not sure this is all that needs to be done to fix that BZ, perhaps @sreber84 can comment.

Good catch. Sorry about that.

I opened this PR as a WIP as a lazy way to run the e2e test suite, and I'm surprised to see that both the e2e-aws and e2e-aws-operator test failed bootstrapping on "operator conditions node-tuning", with the co/node-tuning status being null.

@dagrayvid
Copy link
Contributor Author

/retest

I have been unable to reproduce this failure so far... maybe a potential flake to investigate, but seems unrelated to the PR changes.

@dagrayvid dagrayvid changed the title WIP: RBAC replace wildcards for tuned.openshift.io apiGroup Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup Apr 4, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Apr 4, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 4, 2022

@dagrayvid: This pull request references Bugzilla bug 2066700, which is invalid:

  • expected the bug to target the "4.11.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup

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.

@dagrayvid
Copy link
Contributor Author

/bugzilla refresh

@dagrayvid
Copy link
Contributor Author

/retest-required

@openshift-ci openshift-ci bot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Apr 4, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 4, 2022

@dagrayvid: This pull request references Bugzilla bug 2066700, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (liqcui@redhat.com), skipping review request.

In response to this:

/bugzilla 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 kubernetes/test-infra repository.

@dagrayvid dagrayvid changed the title Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup WIP: Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup Apr 4, 2022
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 4, 2022
@dagrayvid dagrayvid force-pushed the remove-rbac-wildcards branch from befbdac to 6319b6e Compare April 4, 2022 21:49
@jmencak
Copy link
Contributor

jmencak commented Apr 5, 2022

/test e2e-aws-operator

Signed-off-by: David Gray <dagray@redhat.com>
@dagrayvid dagrayvid force-pushed the remove-rbac-wildcards branch from 6319b6e to 11ae3f1 Compare April 6, 2022 15:32
@dagrayvid dagrayvid changed the title WIP: Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup Apr 6, 2022
@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 Apr 6, 2022
@jmencak
Copy link
Contributor

jmencak commented Apr 6, 2022

/retest

@dagrayvid
Copy link
Contributor Author

e2e-aws failure does not look related to NTO.

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 6, 2022

@dagrayvid: all tests passed!

Full PR test history. Your PR dashboard.

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.

@jmencak
Copy link
Contributor

jmencak commented Apr 7, 2022

Thank you for the PR David. I've tested this outside of CI and I didn't see any issues in the operator/operand logs. Also e2e tests pass.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 7, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dagrayvid, jmencak

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 7, 2022
@openshift-merge-robot openshift-merge-robot merged commit e96996c into openshift:master Apr 7, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 7, 2022

@dagrayvid: All pull requests linked via external trackers have merged:

Bugzilla bug 2066700 has been moved to the MODIFIED state.

In response to this:

Bug 2066700: RBAC replace wildcards for tuned.openshift.io apiGroup

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.

IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request May 23, 2023
IlyaTyomkin pushed a commit to IlyaTyomkin/cluster-node-tuning-operator that referenced this pull request Jun 13, 2023
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. bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants