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: extend automatic rgw pool creation capability #4445
Conversation
|
@alimaredia when you have a moment 🙂 |
6f435c9
to
0663a38
Compare
0663a38
to
20f2b9e
Compare
|
@guits @dsavineau: This PR should be ready for final review. I made some changes in the |
| when: | ||
| - item.value.pool_type is defined | ||
| - item.value.pool_type == 'ec' | ||
| ignore_errors: yes |
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.
why?
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 reason we had this was if the playbook gets run again. When the playbook gets run again, it will try to rm the ec_profile and we didn't want it to fail if the ec_profile was already created and being used.
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.
@alimaredia If we really want to stick to ignore errors, failed_when: false should be enough
20f2b9e
to
3f02b2a
Compare
| - item.value.pool_type == 'ec' | ||
|
|
||
| - name: set crush rule | ||
| command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd crush rule create-erasure {{ item.key }} {{ item.value.ec_profile }}" |
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.
what about this command?
If the playbook is run again, will it return 0 even though it's already created? Otherwise, we might need a failed_when: false here as well
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.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
3f02b2a
to
325b2a9
Compare
|
Closing in flavor of #4688 |
Signed-off-by: Ali Maredia amaredia@redhat.com