-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
core: fix incorrect join command #9862
Conversation
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.
commitlint test if failing, instead of ceph
use core
or rgw
in the commit title
overall looks good. Thanks for opening the PR @vavuthu |
b9dd125
to
6615dd5
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.
How many bugs is this fixing? I only see one commit but it seems to be doing more than just fixing the join
.
It fixes below 3 issues:
All these issues are surfaced as as result of fixing join issue. |
Please decouple each with its own commit then |
6615dd5
to
db6384b
Compare
Done |
@@ -775,7 +775,7 @@ def create_rgw_admin_ops_user(self): | |||
cmd = ['radosgw-admin', 'user', 'create', '--uid', self.EXTERNAL_RGW_ADMIN_OPS_USER_NAME, '--display-name', | |||
'Rook RGW Admin Ops user', '--caps', 'buckets=*;users=*;usage=read;metadata=read;zone=read'] | |||
if self._arg_parser.dry_run: | |||
return self.dry_run("ceph " + "".joing(cmd)) | |||
return self.dry_run("ceph " + " ".join(cmd)) |
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.
We really need a python linter in the CI to avoid further issues like this. @subhamkrai could you please take care of this?
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.
Sure, I'll open the issue and assign that to myself.
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.
Almost there, fill all commit messages with a body. Right now, it's just a title. Thanks!
db6384b
to
115d85d
Compare
Done |
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 title and the body are identical, this is not helpful. Please follow https://rook.io/docs/rook/latest/development-flow.html#commit-structure like indicated in the PR submission template.
Fixing typo in join command joing -> join Signed-off-by: vavuthu <vavuthu@redhat.com>
When using dry-run option with external script, function create_rgw_admin_ops_user is not returning expected values which leads to TypeError. This fix is to append values to out_map dictionary only in case of actual run. Signed-off-by: vavuthu <vavuthu@redhat.com>
When using dry-run option with external script, out_map dictionary doesn't contain keys ( ACCESS_KEY and SECRET_KEY ) which leads to KeyError. This fix to avoid creating json_out incase of dry-run since we will not use json_out for dry-run. Signed-off-by: vavuthu <vavuthu@redhat.com>
115d85d
to
b9d8df9
Compare
updated |
core: fix incorrect join command (backport #9862)
fix incorrect join command
Signed-off-by: vavuthu vavuthu@redhat.com
Description of your changes:
correcting the join command and assign ACCESS_KEY and SECRET_KEY only in case
of actual run
Which issue is resolved by this Pull Request:
Resolves #
Checklist:
skip-ci
on the PR.