Skip to contentSkip to conversation

Client test suite

DISCUSSION Nathan Cutler 4 participants 4 messages Feb 18, 2017 – Feb 19, 2017

lore
Share & tools
lore
#0 lore raw

I'm preparing the beginnings of a sketch of a possible design for a Ceph client integration test suite.

The need for a way to test different versions/platforms/architectures of clients against different versions/platforms/architectures of server is, I think, obvious.

Such a client test suite could be run by teuthology within a conventional teuthology cluster like Sepia, but it would also need to be runnable outside of a such an environment. (For example, think of how one would test an aarch64 client against a Ceph cluster running on x86_64, or vice versa.)

This got me thinking about how teuthology could be leveraged to implement a client integration test suite.

First, the test suite itself could (optionally) take a set of monitor hostnames/IP addresses and a cephx key as an input, so it could (again, optionally) run against a Ceph cluster running outside of teuthology.

Second, teuthology could be modified to allow it to run a test suite on a single machine by creating VMs (libvirt) or containers for the tests, and running the tests in series instead of in parallel.

Any thoughts on this?

Nathan

#1 lore raw

My first thought is that it should be enough to run the client on qemu to target the desired architecture. A few rbd tests already do that (spawn qemu). I'm not sure there is a need to do things outside of teuthology. Ideally we would have an OpenStack tenant able to provision both arm & x86 but this is not going to happen. However, spawning a x86 vm that runs an arm qemu should be more than enough to address architecture concerns.

Cheers

Quoted 20 lines · Nathan Cutler

I'm preparing the beginnings of a sketch of a possible design for a Ceph client integration test suite.

The need for a way to test different versions/platforms/architectures of clients against different versions/platforms/architectures of server is, I think, obvious.

Such a client test suite could be run by teuthology within a conventional teuthology cluster like Sepia, but it would also need to be runnable outside of a such an environment. (For example, think of how one would test an aarch64 client against a Ceph cluster running on x86_64, or vice versa.)

This got me thinking about how teuthology could be leveraged to implement a client integration test suite.

First, the test suite itself could (optionally) take a set of monitor hostnames/IP addresses and a cephx key as an input, so it could (again, optionally) run against a Ceph cluster running outside of teuthology.

Second, teuthology could be modified to allow it to run a test suite on a single machine by creating VMs (libvirt) or containers for the tests, and running the tests in series instead of in parallel.

Any thoughts on this?

Nathan

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#2 lore raw
In reply to Nathan Cutler
Quoted 11 lines · Nathan Cutler

I'm preparing the beginnings of a sketch of a possible design for a Ceph client integration test suite.

The need for a way to test different versions/platforms/architectures of clients against different versions/platforms/architectures of server is, I think, obvious.

Such a client test suite could be run by teuthology within a conventional teuthology cluster like Sepia, but it would also need to be runnable outside of a such an environment. (For example, think of how one would test an aarch64 client against a Ceph cluster running on x86_64, or vice versa.)

I don't understand. Why do you think teuthology couldn't handle multiple architectures within a test lab? We already allow scheduling based on OS restrictions, and although they're not in the test running database I think we have some ARM machines in sepia.
-Greg

Quoted 19 lines

This got me thinking about how teuthology could be leveraged to implement a client integration test suite.

First, the test suite itself could (optionally) take a set of monitor hostnames/IP addresses and a cephx key as an input, so it could (again, optionally) run against a Ceph cluster running outside of teuthology.

Second, teuthology could be modified to allow it to run a test suite on a single machine by creating VMs (libvirt) or containers for the tests, and running the tests in series instead of in parallel.

Any thoughts on this?

Nathan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 13 lines · Gregory Farnum
Quoted 11 lines · Nathan Cutler

I'm preparing the beginnings of a sketch of a possible design for a Ceph client integration test suite.

The need for a way to test different versions/platforms/architectures of clients against different versions/platforms/architectures of server is, I think, obvious.

Such a client test suite could be run by teuthology within a conventional teuthology cluster like Sepia, but it would also need to be runnable outside of a such an environment. (For example, think of how one would test an aarch64 client against a Ceph cluster running on x86_64, or vice versa.)

Quoted 4 lines

I don't understand. Why do you think teuthology couldn't handle multiple architectures within a test lab? We already allow scheduling based on OS restrictions, and although they're not in the test running database I think we have some ARM machines in sepia.

Also, this is what the upgrade/client-upgrade test suite is intended to cover. It doesn't do architectures currently, but it could. The main purpose was just to verify that various client versions interoperate properly with various server verseions. In particular, our upgrade tests generally verify clients from $version-1 work against $version servers, but not the other way around, and never +/- 2 or more releases. This is probably where I'd start.

I'd suggest putting together a set of workunits for each version that represent the client workload. All of the workunits assume the environment is sufficient to connect (e.g., /etc/ceph/* is there and everything is in the $PATH). Then we can structure the test suite so that for any client version X, we run the workunit from the X branch of the repo. And then the test suite would just generate a matrix of client and server versions. We'd need to curate the client workloads so that they are general enough to run across different server versions.

Would that address your goals?

sage

Quoted 27 lines

-Greg

Quoted 12 lines

This got me thinking about how teuthology could be leveraged to implement a client integration test suite.

First, the test suite itself could (optionally) take a set of monitor hostnames/IP addresses and a cephx key as an input, so it could (again, optionally) run against a Ceph cluster running outside of teuthology.

Second, teuthology could be modified to allow it to run a test suite on a single machine by creating VMs (libvirt) or containers for the tests, and running the tests in series instead of in parallel.

Quoted 7 lines

Any thoughts on this?

Nathan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html