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

qa/workunits/cephtool/test.sh: FreeBSD has no distro. #11702

Merged
merged 1 commit into from Nov 10, 2016

Conversation

wjwithagen
Copy link
Contributor

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

@@ -1137,8 +1137,10 @@ function test_mon_osd()
expect_false ceph osd find xyz
expect_false ceph osd find 0.1
ceph --format plain osd find 1 # falls back to json-pretty
ceph osd metadata 1 | grep 'distro'
ceph --format plain osd metadata 1 | grep 'distro' # falls back to json-pretty
if [ `uname` != FreeBSD ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

the distro info collected by ceph osd metadata comes from the output lsb_release(1), which in turn is a Linux specific command. so, maybe we should put something like:

if [ `uname` == Linux ]; then
 ...
fi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tchaikov
That is the alternative, but it excludes any other platform that is going to try to be Linux compatible and does have lsb_release.
I've also considered to "tweak" the lsb-data gathering, but then this is only informational and could set people on the wrong foot, thinking they can do more processing with it Linux-style.
And then the mis-information only propagates further.
So please confirm you want the Linux-test

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@wjwithagen
Copy link
Contributor Author

@tchaikov
Ping?
FreeBSD => Linux

@tchaikov tchaikov self-assigned this Nov 2, 2016
@liewegas liewegas added this to the kraken milestone Nov 3, 2016
@tchaikov tchaikov merged commit 37f3897 into ceph:master Nov 10, 2016
@wjwithagen wjwithagen deleted the wip-wjw-freebsd-cephtool-test branch January 4, 2017 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants