QA:Testcase HekaFS replicated

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
m (Created page with "{{QA/Test_Case |description=This test case tests the functionality of the HekaFS feature. |actions= # Open web browser to server node1, port 8080 (e.g. http:/...")
 
m
 
(5 intermediate revisions by one user not shown)
Line 2: Line 2:
 
|description=This test case tests the functionality of the [[Features/HekaFS|HekaFS]] feature.
 
|description=This test case tests the functionality of the [[Features/HekaFS|HekaFS]] feature.
 
|actions=
 
|actions=
 +
 +
In a shell on the client, unmount the volume previously mounted:
 +
 +
# unmount /mnt/testsda
 +
 +
If necessary on your desktop run your web browser of choice:
 +
 
# Open web browser to server node1, port 8080 (e.g. http://192.168.122.21:8080)
 
# Open web browser to server node1, port 8080 (e.g. http://192.168.122.21:8080)
# Click on the Manage Servers link
+
 
# Notice that server node 1 is listed as a Cluster Node
+
In your web browser, remove the volume created in the previous test case:
# Add one or more additional nodes:
+
 
## Enter 192.168.122.22 and press the Add button
+
# Click on the Manage Volumes link
## Notice that 192.168.122.22 is successfully added
+
# Click on the testsda stop link
## Click on the Back to cluster configuration link
+
# Notice that the testsda volume was successfully stopped
## repeat for additional server nodes
+
# Click on the Back to volume configuration link
# Press the Done button
+
# Click on the testsda remove link
 +
# Notice that the testsda volume was successfully removed
 +
# Click on the Back to volume configuration link
 +
 
 +
Provision a replicated volume in the cluster:
 +
 
 
# Click on the Manage Volumes link
 
# Click on the Manage Volumes link
 
# Check the check-boxes for /bricks/sda on all server nodes
 
# Check the check-boxes for /bricks/sda on all server nodes
# Leave the Replica or Stripe count box empty.
+
# Check the Replicated option box
 +
# Enter 2 in Replica or Stripe Count
 
# Enter testsda in the Volume ID box
 
# Enter testsda in the Volume ID box
 
# Press the Provision button
 
# Press the Provision button
Line 20: Line 33:
 
# Notice that the check-boxes for bricks/sda are insensitive (grayed out)
 
# Notice that the check-boxes for bricks/sda are insensitive (grayed out)
 
# Press the Done button
 
# Press the Done button
 +
 +
Enable the volume for the tenant:
 +
 
# Click on the Manage Tenants link
 
# Click on the Manage Tenants link
# Enter yoyodyne, bigboote, 10000, 10999, 10000, 10999 in the Name, Password, UID Range Low, UID Range High, GID Range Low, and GID Range High fields.
 
# Press the Add button
 
# Notice that yoyodyne is successfully added
 
# Click on the Back to tenant configuration link
 
 
# Click on the yoyodyne volumes link
 
# Click on the yoyodyne volumes link
 
# Click the Enabled check-box for testsda
 
# Click the Enabled check-box for testsda
Line 31: Line 43:
 
# Click the Back to tenant configuration link
 
# Click the Back to tenant configuration link
 
# Press the Done button
 
# Press the Done button
 +
 +
Start the volume:
 +
 
# Click on the Manage Volumes link
 
# Click on the Manage Volumes link
 
# Click on the testsda start link
 
# Click on the testsda start link
 
# Notice that testsda is successfully started
 
# Notice that testsda is successfully started
# In a shell on the client,
+
 
## enter `mkdir /mnt/testsda`
+
In a shell on the client mount the volume:
## enter `hfs_mount 192.168.122.21 yoyodyne bigboote /mnt/testsda`
+
 
## enter `df` or `mount`
+
# enter `mkdir /mnt/testsda`
## Notice that /mnt/testsda was successfully mounted
+
# enter `hfs_mount 192.168.122.21 yoyodyne bigboote /mnt/testsda`
 +
# enter `df` or `mount`
 +
# Notice that /mnt/testsda was successfully mounted
 +
 
 +
Work-around for BZ 747112. In a shell on each server node, fix directory permissions:
 +
 
 +
# enter `chmod 01777 /bricks/sda/yoyodyne`
 +
 
 +
In a shell on the client, initiate selected I/O:
 +
 
 
# Perform I/O on the mounted volume, e.g. touch, cp, rm, ln, ln -s, mkdir, rmdir, ls, etc.
 
# Perform I/O on the mounted volume, e.g. touch, cp, rm, ln, ln -s, mkdir, rmdir, ls, etc.
 
|results=
 
|results=
 
# files and directories are variously created, deleted, etc.
 
# files and directories are variously created, deleted, etc.
 
}}
 
}}

Latest revision as of 12:03, 20 October 2011

Description

This test case tests the functionality of the HekaFS feature.


How to test

In a shell on the client, unmount the volume previously mounted:

  1. unmount /mnt/testsda

If necessary on your desktop run your web browser of choice:

  1. Open web browser to server node1, port 8080 (e.g. http://192.168.122.21:8080)

In your web browser, remove the volume created in the previous test case:

  1. Click on the Manage Volumes link
  2. Click on the testsda stop link
  3. Notice that the testsda volume was successfully stopped
  4. Click on the Back to volume configuration link
  5. Click on the testsda remove link
  6. Notice that the testsda volume was successfully removed
  7. Click on the Back to volume configuration link

Provision a replicated volume in the cluster:

  1. Click on the Manage Volumes link
  2. Check the check-boxes for /bricks/sda on all server nodes
  3. Check the Replicated option box
  4. Enter 2 in Replica or Stripe Count
  5. Enter testsda in the Volume ID box
  6. Press the Provision button
  7. Notice that the volume has been successfully provisioned
  8. Click the Back to volume configuration link
  9. Notice that the check-boxes for bricks/sda are insensitive (grayed out)
  10. Press the Done button

Enable the volume for the tenant:

  1. Click on the Manage Tenants link
  2. Click on the yoyodyne volumes link
  3. Click the Enabled check-box for testsda
  4. Press the Update button
  5. Notice that the volume is successfully enabled for the tenant
  6. Click the Back to tenant configuration link
  7. Press the Done button

Start the volume:

  1. Click on the Manage Volumes link
  2. Click on the testsda start link
  3. Notice that testsda is successfully started

In a shell on the client mount the volume:

  1. enter `mkdir /mnt/testsda`
  2. enter `hfs_mount 192.168.122.21 yoyodyne bigboote /mnt/testsda`
  3. enter `df` or `mount`
  4. Notice that /mnt/testsda was successfully mounted

Work-around for BZ 747112. In a shell on each server node, fix directory permissions:

  1. enter `chmod 01777 /bricks/sda/yoyodyne`

In a shell on the client, initiate selected I/O:

  1. Perform I/O on the mounted volume, e.g. touch, cp, rm, ln, ln -s, mkdir, rmdir, ls, etc.

Expected Results

  1. files and directories are variously created, deleted, etc.