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

Do not pass NoneType as argument to ceph_crush_rule #7466

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

noonedeadpunk
Copy link
Contributor

With ansible-core 2.15 it is not possible to pass argument of unexpected
type, as otherwise module will fail with:
'None' is not a string and conversion is not allowed

With that we want to only get all existing crush rules, so we can simply
supply an empty string as a name argument, which would satisfy
requirements and have same behaviour for previous ansible versions.

Alternative approach would be to stop making name as a required
argument to the module and use empty string as default value
when info state is used.

@noonedeadpunk noonedeadpunk force-pushed the bugfix/ceph_crush_rule_name_type branch 2 times, most recently from cc6ca2e to 10e3ae4 Compare October 25, 2023 11:49
With ansible-core 2.15 it is not possible to pass argument of unexpected
type, as otherwise module will fail with:
`'None' is not a string and conversion is not allowed`

With that we want to only get all existing crush rules, so we can simply
supply an empty string as a name argument, which would satisfy
requirements and have same behaviour for previous ansible versions.

Alternative approach would be to stop making `name` as a required
argument to the module and use empty string as default value
when info state is used.

Signed-off-by: Dmitriy Rabotyagov <[email protected]>
@noonedeadpunk noonedeadpunk force-pushed the bugfix/ceph_crush_rule_name_type branch from 10e3ae4 to 9162d04 Compare October 25, 2023 12:08
@jrosser
Copy link

jrosser commented Nov 8, 2023

@guits would it be possible to review this PR? It's blocking some progress over in the OpenStack world.

@baum baum self-assigned this Nov 8, 2023
@jrosser
Copy link

jrosser commented Nov 27, 2023

Reviews of this patch would be greatly appreciated, we are fast approaching a release deadline for OpenStack and this error is blocking ceph support in the OpenStack-Ansible project.

@asm0deuz
Copy link
Collaborator

asm0deuz commented Dec 6, 2023

@jrosser @baum Sorry for the delay, I didn't notice that PR. Checking now.

Copy link
Collaborator

@asm0deuz asm0deuz left a comment

Choose a reason for hiding this comment

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

LGTM

@asm0deuz asm0deuz merged commit b610297 into ceph:main Dec 6, 2023
8 checks passed
@noonedeadpunk noonedeadpunk deleted the bugfix/ceph_crush_rule_name_type branch December 7, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants