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

mgr/pg_autoscaler: Fix python3 incompatibility #27079

Merged
merged 1 commit into from Mar 25, 2019

Conversation

MariusSchiffer
Copy link
Contributor

Fixes: http://tracker.ceph.com/issues/38626
Signed-off-by: Marius Schiffer marius@mschiffer.de

itervalues and iteritems were replaced with their six correspondents. six is already a dependency, so this should be no problem.
Alternatively, we could replace itervalues, iterkeys with .values() and .keys().
This would always return a list on python2 (negligible performance impact, only if there are a lot of pools or roots) but in my opinion increase readability.

Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

Choose a reason for hiding this comment

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

mypy is happy now.

@sebastian-philipp
Copy link
Contributor

Could you please replace pg_autobalancer with pg_autoscaler?

Fixes: http://tracker.ceph.com/issues/38626
Signed-off-by: Marius Schiffer <marius@mschiffer.de>
@MariusSchiffer MariusSchiffer changed the title mgr/pg_autobalancer: Fix python3 incompatibility mgr/pg_autoscaler: Fix python3 incompatibility Mar 22, 2019
@MariusSchiffer
Copy link
Contributor Author

Could you please replace pg_autobalancer with pg_autoscaler?

Oh wow, I did not notice that. Fixed.

@liewegas
Copy link
Member

retest this please

1 similar comment
@liewegas
Copy link
Member

retest this please

@liewegas liewegas merged commit 8da78e0 into ceph:master Mar 25, 2019
liewegas added a commit that referenced this pull request Mar 25, 2019
* refs/pull/27079/head:
	mgr/pg_autoscaler: Fix python3 incompatibility

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
@MariusSchiffer MariusSchiffer deleted the fix-py3-autoscaler branch March 25, 2019 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants