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

rgw: Raise errors when rgw daemon fails to be created #9137

Merged
merged 1 commit into from Nov 10, 2021

Conversation

travisn
Copy link
Member

@travisn travisn commented Nov 10, 2021

Description of your changes:
The generation of the rgw deployment spec was swallowing errors if any issues are raised such as the tls cert not being found as expected in some configurations. We need to fail the reconcile so the error will be logged and the admin can identify the issue.

Which issue is resolved by this Pull Request:
Resolves #9134

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.

The generation of the rgw deployment spec was swallowing errors
if any issues are raised such as the tls cert not being found
as expected in some configurations. We need to fail the reconcile
so the error will be logged and the admin can identify the issue.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
@@ -140,7 +140,7 @@ func (c *clusterConfig) startRGWPods(realmName, zoneGroupName, zoneName string)
// Create deployment
deployment, err := c.createDeployment(rgwConfig)
if err != nil {
return nil
return errors.Wrap(err, "failed to create rgw deployment")
Copy link
Member

Choose a reason for hiding this comment

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

😱 I can't believe we have this line.

@travisn travisn merged commit 901263f into rook:master Nov 10, 2021
travisn added a commit that referenced this pull request Nov 10, 2021
rgw: Raise errors when rgw daemon fails to be created (backport #9137)
travisn added a commit that referenced this pull request Nov 10, 2021
rgw: Raise errors when rgw daemon fails to be created (backport #9137)
@travisn travisn deleted the raise-rgw-error branch November 10, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object Object protocol - S3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.5.6 -> v1.6.10 doesn't upgrades RGW
3 participants