| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A tool for testing Ceph locally using nested rootless podman containers
ceph-devstack is a tool that can deploy and manage containerized versions of teuthology and its associated services, to test Ceph (or just teuthology) on your local machine. It lets you avoid:
Mainly, podman 4.0+. This was initially developed on CentOS 9.Stream, but a recent Fedora ought to work as well. Ubuntu doesn't currently ship a new enough podman. MacOS is a special case as all podman operations are done inside a CoreOS VM; it is not functional as of yet.
$ sudo usermod -a -G disk $(whoami) # and re-login afterward $ git clone -b ceph-devstack https://github.com/ceph/teuthology/ $ cd teuthology && ./bootstrap $ source ./virtualenv/bin/activate $ python3 -m pip install git+https://github.com/zmc/ceph-devstack.git
Note: ceph-devstack currently must be run from within the root directory of a teuthology repo.
First, you'll want to build all the containers:
$ ceph-devstack build
Next, you can start them with:
$ ceph-devstack start
Once everything is started, a message similar to this will be logged:
View test results at http://smithi065.front.sepia.ceph.com:8081/
This link points to the running Pulpito instance. Test archives are also stored in the --data-dir (default: ~/.local/share/ceph-devstack).
To watch teuthology's output, you can:
$ podman logs -f teuthology
If you want testnode containers to be replaced as they are stopped and destroyed, you can:
$ ceph-devstack watch
When finished, this command removes all the resources that were created:
$ ceph-devstack remove
By default, we run the teuthology:no-ceph suite to self-test teuthology. If we wanted to test Ceph itself, we could use the orch:cephadm:smoke-small suite:
$ export TEUTHOLOGY_SUITE=orch:cephadm:smoke-small
We default to providing three testnode containers. If you want more, you can:
$ ceph-devstack create --testnode-count N
| Back | FazBrowse Home | New Git URL |