]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: add ceph-rbd windows service restart test
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 12 Jan 2023 10:55:06 +0000 (12:55 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 15 May 2024 16:49:33 +0000 (19:49 +0300)
commitd6d36b535c86618aa754298f724854a6fde31140
treee8263e1bb05d9bab8ff626bc72c746fcd626451d
parent808d42d575c97b6d0db0e6c6d88ee5fda97fe1b1
qa: add ceph-rbd windows service restart test

We're adding a test that:

* maps a configurable number of images
* runs a specified test - we're reusing the ones from stress_test,
  making just a few minor changes to allow running the same test
  multiple times
* restarts the ceph-rbd Windows service
* waits for the images to be reconnected and refreshes the mount
  information
* reruns the test
* repeats the above workflow for a specified number of times,
  reusing the same images

This test ensures that:

* mounted images are still available after a service restart
* drive letters are retained
* the image content is retained
* there are no race conditions when connecting or disconnecting
  a large number of images in parallel
* the driver is capable of mapping a specified number of images
  simultaneously

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
qa/workunits/windows/py_tests/internal/rbd_image.py
qa/workunits/windows/py_tests/internal/task_group.py [new file with mode: 0644]
qa/workunits/windows/py_tests/internal/tracer.py
qa/workunits/windows/py_tests/rbd_wnbd/service_restart_test.py [new file with mode: 0644]
qa/workunits/windows/py_tests/rbd_wnbd/stress_test.py
qa/workunits/windows/run-tests.ps1