]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd: add test_import_nbd_stream_disconnected() 61567/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 28 Jan 2025 08:33:37 +0000 (09:33 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 30 Jan 2025 12:19:16 +0000 (13:19 +0100)
commitafc89fdde80fb53b7145b1d0aa342af5a35ec815
tree13a865ab7d5536cf8ebf2c53764aeecfed37ea8d
parente4657cb2a2b087af0eae87ef32808b503e0e2051
qa/workunits/rbd: add test_import_nbd_stream_disconnected()

When the NBD server is killed, nbd_pread() can set errno to at least
ENOTCONN, EINVAL and 0 which is supposed to stand for "no additional
errno information is available for this error".  Add a test to ensure
that "rbd migration execute" command always fails and that the image
isn't transitioned to MIGRATION_STATE_EXECUTED in this scenario.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/suites/rbd/cli/workloads/rbd_cli_migration.yaml
qa/workunits/rbd/cli_migration.sh