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

luminous: tools: ceph-disk: platform.linux_distribution() is deprecated; stop using it #27557

Merged
merged 5 commits into from Oct 1, 2019

Conversation

smithfarm
Copy link
Contributor

This commit introduces a new function, _extract_from_os_release, which is
used (only on Linux) to extract the ID and VERSION_ID fields from the
/etc/os-release file. This is sufficient to positively determine the OS
and version on these systems, and enable ceph-detect-init to correctly
return systemd on them.

The commit includes unit tests asserting that _extract_from_os_release really
extracts the strings that we expect it to, using the contents of
/etc/os-release from a number of different operating systems targeted by Ceph.

This commit is not cherry-picked because ceph-detect-init has been dropped in
master.

Fixes: http://tracker.ceph.com/issues/18163
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 12d94ca)
SUSE Linux Enterprise (SLE) comes in two variants: SLES (for servers) and SLED
(for desktops). This commit adds support for the desktop variant as well as
adding test cases for SLE 15.

This commit is not cherry-picked because ceph-detect-init has been dropped in
master.

References: http://tracker.ceph.com/issues/18163
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 07bff85)
typo was introduced by 12d94ca

This commit is not cherry-picked because ceph-detect-init has been dropped in
master.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 5d16569)
12d94ca introduced a regression in that it
started returning '' as the codename for most supported distros, and also
(apparently) changed the distro string returned on Red Hat Enterprise Linux (to
"rhel"). As a result, ceph-detect-init began throwing an UnsupportedPlatform
exception on RHEL.

Can not be cherry-picked because ceph-disk and ceph-detect-init are no longer
present in master.

Fixes: 12d94ca
Fixes: http://tracker.ceph.com/issues/18163
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 81b7cd9)
With the move to OVH and the addition of RHEL as a supported distro, the
ceph-disk/basic suite was no longer green. This commit brings it back into
a green state.

Also, although ceph-disk/basic presumably exercises ceph-detect-init, it
seemed prudent to add a test case that runs it explicitly.

Can not be cherry-picked because ceph-disk and ceph-detect-init are no longer
present in master.

Reverts: 230c030
Fixes: https://tracker.ceph.com/issues/25031
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 6bbeb44)

Conflicts:
	qa/workunits/ceph-disk/ceph-disk.sh
- luminous does not have 3aae5ca so we
leave the shebang as it is
@smithfarm
Copy link
Contributor Author

This has baked in mimic for quite some time now.

@yuriw
Copy link
Contributor

yuriw commented Sep 30, 2019

@smithfarm
Copy link
Contributor Author

The following tests FAILED:
	  3 - test_objectstore_memstore.sh (Timeout)

@smithfarm
Copy link
Contributor Author

jenkins test make check

@yuriw yuriw merged commit 33e64c3 into ceph:luminous Oct 1, 2019
@smithfarm smithfarm changed the title luminous: platform.linux_distribution() is deprecated; stop using it luminous: tools: ceph-disk: platform.linux_distribution() is deprecated; stop using it Oct 2, 2019
@smithfarm smithfarm deleted the wip-39277-luminous branch October 2, 2019 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants