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

Bug 1868339: Move CredentialsRequest creation to CSO #80

Merged
merged 3 commits into from Aug 31, 2020

Conversation

bertinatto
Copy link
Member

@bertinatto bertinatto commented Aug 27, 2020

CSI operators should let CSO apply the CredentialsRequest objects, regardless of the cloud platform.

This patch is a requirement to allow users to manually see the secrets they need to create when running cloud-credentials-controller in Manual mode. More information at: https://github.com/openshift/cloud-credential-operator/blob/master/docs/mode-manual-creds.md.

Once this is merged, CredentialsRequests will be created by CVO, so we'll need follow up PRs to CSI operator repositories to not create those objects themselves.

Please see individual commits for a description of each change.

CC @openshift/storage

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium 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. labels Aug 27, 2020
@openshift-ci-robot
Copy link
Contributor

@bertinatto: This pull request references Bugzilla bug 1868339, 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.6.0) matches configured target release for branch (4.6.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1868339: Move CredentialsRequest creation to CSO

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.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2020
@openshift-ci-robot
Copy link
Contributor

@bertinatto: This pull request references Bugzilla bug 1868339, which is valid.

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

In response to this:

Bug 1868339: Move CredentialsRequest creation to CSO

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.

@bertinatto
Copy link
Member Author

/hold

Before this merges I need to patch the CSI driver operators and then test manually.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 27, 2020
@bertinatto
Copy link
Member Author

Also, @dgoodwin FYI

@dgoodwin
Copy link
Contributor

Thank you for this, looks good from my PoV.

@openshift-ci-robot
Copy link
Contributor

@bertinatto: This pull request references Bugzilla bug 1868339, which is valid.

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

In response to this:

Bug 1868339: Move CredentialsRequest creation to CSO

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.

@bertinatto
Copy link
Member Author

/retest

@bertinatto
Copy link
Member Author

/test e2e-aws

Operator degraded (IngressControllersDegraded): Some ingresscontrollers are degraded: default

Copy link
Member

@tsmetana tsmetana 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-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2020
@gnufied
Copy link
Member

gnufied commented Aug 31, 2020

Once this is merged, CredentialsRequests will be created by CVO, so we'll need follow up PRs to CSI operator repositories to not create those objects themselves.

@bertinatto Can CCO handle cases where secret was already created? Looks like it already does that otherwise this PR would have failed test I think.

@bertinatto
Copy link
Member Author

Once this is merged, CredentialsRequests will be created by CVO, so we'll need follow up PRs to CSI operator repositories to not create those objects themselves.

@bertinatto Can CCO handle cases where secret was already created? Looks like it already does that otherwise this PR would have failed test I think.

Yes, from what I've seen it can handle that.

@@ -0,0 +1,31 @@
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
Copy link
Member

Choose a reason for hiding this comment

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

should this be called "ebs-credential-request"? In case we have to create separate credential request for EFS for example?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to aws-ebs-csi-driver-operator to align with the other CCs which are using the operator name.

spec:
secretRef:
name: aws-cloud-credentials
namespace: openshift-cluster-csi-drivers
Copy link
Member

Choose a reason for hiding this comment

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

same applies to secret's name too.

Copy link
Member Author

Choose a reason for hiding this comment

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

We'll need to have a coordinated way of changing the secret name here and in the CSI driver operator repo.

If I change it here, the CI job will likely fail because the CSI driver is looking for this secret name.

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed to ebs-cloud-credentials (similar to Manila and oVirt).

It shouldn't fail CI because for the time being the CSI driver operator is creating the secret itself.

CredentialRequests objects have been moved to ./manifests dir,
so they will be applied by CSO regardless of the cloud. Therefore,
CSI operators should ot create the credentials themselves. This
patch is a requirement to allow cloud-credentials-controller to
run in Manual mode. More information at
https://github.com/openshift/cloud-credential-operator/blob/master/docs/mode-manual-creds.md
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2020
@bertinatto
Copy link
Member Author

/hold cancel

CSI driver operators should be changed after this PR merges.

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 31, 2020
So that the openshift-cluster-csi-drivers namespace exists
when the cloud-credential-operator deploys the secret.
@gnufied
Copy link
Member

gnufied commented Aug 31, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto, gnufied, tsmetana

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:
  • OWNERS [bertinatto,gnufied,tsmetana]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gnufied
Copy link
Member

gnufied commented Aug 31, 2020

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit c76dd10 into openshift:master Aug 31, 2020
@openshift-ci-robot
Copy link
Contributor

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

Bugzilla bug 1868339 has been moved to the MODIFIED state.

In response to this:

Bug 1868339: Move CredentialsRequest creation to CSO

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.

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-medium Referenced Bugzilla bug's severity is medium 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.

None yet

7 participants