-
Notifications
You must be signed in to change notification settings - Fork 291
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
platform.linux_distribution() is deprecated; stop using it #1001
Conversation
@zmc Ping |
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.
Where is platform.linux_distribution()
deprecated?
This would need to be tested with all OSes to ensure we wouldn't regress.
platform.linux_distribution() is deprecated since python 3.5, and will be removed in python 3.7 (see https://docs.python.org/3.6/library/platform.html#platform.linux_distribution). |
The implementation in Python 2.7 returns |
@zmc When you say "all OSes" which OSes do you mean? Are there any that don't have |
@ktdreyer Do we need an elaborate python module when a glance at |
Teuthology does a lot already - it was just a suggestion :) |
In ceph/ceph#23111 I have unit tests that cover "all" OSes. I will add a commit to this PR implementing these unit tests in teuthology so we can be confident that |
Fixes: http://tracker.ceph.com/issues/18141 Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Added unit tests and support for new distros. Pinging again for review. |
This looks good to me. @zmc, is there other testing we can do besides rolling it out in the lab? If not I think we should just go for it... |
I will run some ad-hoc tests. |
@zmc Ping |
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.
Well, I didn't hear any immediate complaints and it's been a couple weeks.
Fixes: http://tracker.ceph.com/issues/18141
Signed-off-by: Nathan Cutler ncutler@suse.com