summaryrefslogtreecommitdiffstats
path: root/src/test/behave_tests/features/ceph_osd_test.feature
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/behave_tests/features/ceph_osd_test.feature
parentInitial commit. (diff)
downloadceph-b26c4052f3542036551aa9dec9caa4226e456195.tar.xz
ceph-b26c4052f3542036551aa9dec9caa4226e456195.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/behave_tests/features/ceph_osd_test.feature')
-rw-r--r--src/test/behave_tests/features/ceph_osd_test.feature49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/test/behave_tests/features/ceph_osd_test.feature b/src/test/behave_tests/features/ceph_osd_test.feature
new file mode 100644
index 000000000..e9a37a4c9
--- /dev/null
+++ b/src/test/behave_tests/features/ceph_osd_test.feature
@@ -0,0 +1,49 @@
+@osd
+Feature: Tests related to OSD creation
+ In order to be able to provide storage services
+ As an system administrator
+ I want to install a Ceph cluster in the following server infrastructure:
+ - 3 nodes with 8Gb RAM, 4 CPUs, and 3 storage devices of 20Gb each.
+ - Using Fedora32 image in each node
+ - Configure ceph cluster in following way
+ - with number of OSD 0
+
+
+ Scenario: Create OSDs
+ Given I log as root into ceph-node-00
+ When I execute in cephadm_shell
+ """
+ ceph orch device ls
+ """
+ Then I wait for 60 seconds until I get
+ """
+ ceph-node-00.cephlab.com /dev/vdb hdd Unknown N/A N/A Yes
+ ceph-node-01.cephlab.com /dev/vdb hdd Unknown N/A N/A Yes
+ ceph-node-02.cephlab.com /dev/vdb hdd Unknown N/A N/A Yes
+ """
+ Then I execute in cephadm_shell
+ """
+ ceph orch daemon add osd ceph-node-00.cephlab.com:/dev/vdb
+ ceph orch daemon add osd ceph-node-01.cephlab.com:/dev/vdb
+ ceph orch daemon add osd ceph-node-02.cephlab.com:/dev/vdb
+ """
+ Then I execute in cephadm_shell
+ """
+ ceph orch device ls
+ """
+ Then I wait for 60 seconds until I get
+ """
+ ceph-node-00.cephlab.com /dev/vdb hdd Unknown N/A N/A No
+ ceph-node-01.cephlab.com /dev/vdb hdd Unknown N/A N/A No
+ ceph-node-02.cephlab.com /dev/vdb hdd Unknown N/A N/A No
+ """
+ Then I execute in cephadm_shell
+ """
+ ceph -s
+ """
+ Then I get results which contain
+ """
+ services:
+ mon: 3 daemons, quorum ceph-node-00.cephlab.com,ceph-node-01,ceph-node-02
+ osd: 3 osds: 3 up
+ """