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 1994588: ceph: fix panic when recreating the csidriver object #287

Merged
merged 3 commits into from
Aug 31, 2021

Conversation

Yuggupta27
Copy link

@Yuggupta27 Yuggupta27 commented Aug 31, 2021

Description of your changes:

This PR fixes the below items

  • fix panic in reCreateCSIDriverInfo
    Initialize the client and the csidriver object before calling the reCreateCSIDriverInfo function.
  • Reuse defined csiDriver object
    reuse already defined csiDriver object instead of referring to the method receiver
  • fix logging of csidriver
    log the successful message about starting CSIDriver after creating the daemonset and deployment objects.

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

Note: the issue was reported at slack https://rook-io.slack.com/archives/CK9CF5H2R/p1629776387282600

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

Initialize the client and the csidriver object
before calling the reCreateCSIDriverInfo
function.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d48f67a)
log the successful message about
starting CSIDriver after creating
the daemonset and deployment objects.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit e2dc418)
remove csiDriver and csiClient variables
creation and reuse them from the method
receivers.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit d246dde)
@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Yuggupta27

The full list of commands accepted by this bot can be found 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

@Yuggupta27 Yuggupta27 changed the title ceph: fix panic when recreating the csidriver object Bug 1994588: ceph: fix panic when recreating the csidriver object Aug 31, 2021
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 31, 2021
@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2021

Hi @Yuggupta27. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2021

@Yuggupta27: An error was encountered querying GitHub for users with public email (pbalogh@redhat.com) for bug 1994588 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. non-200 OK status code: 403 Forbidden body: "{\n \"documentation_url\": \"https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#secondary-rate-limits\",\n \"message\": \"You have exceeded a secondary rate limit. Please wait a few minutes before you try again.\"\n}\n"

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1994588: ceph: fix panic when recreating the csidriver object

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 openshift-ci bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high 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 31, 2021
@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2021

@Yuggupta27: This pull request references Bugzilla bug 1994588, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (OCS 4.8.2) matches configured target release for branch (OCS 4.8.2)
  • bug is in the state POST, 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 (pbalogh@redhat.com), skipping review request.

In response to this:

Bug 1994588: ceph: fix panic when recreating the csidriver object

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.

@agarwal-mudit
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 31, 2021
@leseb
Copy link

leseb commented Aug 31, 2021

@agarwal-mudit can we merge?

@agarwal-mudit
Copy link
Member

@agarwal-mudit can we merge?

Yes

@agarwal-mudit
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 31, 2021
@leseb leseb merged commit 7ad52e2 into red-hat-storage:release-4.8 Aug 31, 2021
@openshift-ci
Copy link

openshift-ci bot commented Aug 31, 2021

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

Bugzilla bug 1994588 has been moved to the MODIFIED state.

In response to this:

Bug 1994588: ceph: fix panic when recreating the csidriver object

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
bugzilla/severity-high Referenced Bugzilla bug's severity is high 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
4 participants