From Fedora Project Wiki

(Created page with '{{QA/Test_Case |description= |actions= # create a logical pool #: <pre> #: # pvcreate /dev/sda3 #: # vgcreate lv_pool /dev/lv_pool #: # virsh pool-create-as lv_pool logical --so...')
 
(Corrected syntax)
 
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description=
+
|description=Tests virt pool creation and removal.
 
|actions=
 
|actions=
# create a logical pool
+
<ol>
#: <pre>
+
<li> create a logical pool
#: # pvcreate /dev/sda3
+
<pre>
#: # vgcreate lv_pool /dev/lv_pool
+
# pvcreate /dev/sda3
#: # virsh pool-create-as  lv_pool logical --source-dev /dev/sda3 --target /dev/lv_pool
+
# vgcreate lv_pool /dev/lv_pool
#: Pool lv_pool created
+
# virsh pool-create-as  lv_pool logical --source-dev /dev/sda3 --target /dev/lv_pool
#: </pre>
+
Pool lv_pool created
# destroy the logical pool
+
</pre>
#: <pre>
+
<li> destroy the logical pool
#: # virsh pool-destroy lv_pool
+
<pre>
#: Pool lv_pool destroyed
+
# virsh pool-destroy lv_pool
#: </pre>
+
Pool lv_pool destroyed
# create a logical pool with arg ''source-name'' <pre>#virsh pool-create-as  lv_pool logical  --source-name  sda3  --target /dev/lv_pool</pre>
+
</pre>
#destroy the logical pool  
+
<li> create a logical pool with arg ''source-name'' <pre>#virsh pool-create-as  lv_pool logical  --source-name  sda3  --target /dev/lv_pool</pre>
#: <pre>
+
<li> destroy the logical pool  
#: # virsh pool-destroy lv_pool
+
<pre>
#: Pool lv_pool destroyed
+
# virsh pool-destroy lv_pool
#: </pre>
+
Pool lv_pool destroyed
 +
</pre>
 +
</ol>
 
|results=
 
|results=
# step#1 output:
+
<ol>
#: <pre>
+
<li> step#1 output:
#: # virsh pool-list --all
+
<pre>
#: Name                 State      Autostart  
+
# virsh pool-list --all
#: -----------------------------------------
+
Name                 State      Autostart  
#: default              active     yes       
+
-----------------------------------------
#: lv_pool              active     no     
+
default              active     yes       
#: </pre>   
+
lv_pool              active     no     
# step#2 output:
+
</pre>   
#: <pre>
+
<li> step#2 output:
#: # virsh pool-list --all
+
<pre>
#: Name                 State      Autostart  
+
# virsh pool-list --all
#: -----------------------------------------
+
Name                 State      Autostart  
#: default              active     yes    
+
-----------------------------------------
#: </pre>   
+
default              active     yes    
# step#3 output:
+
</pre>   
#: <pre>
+
<li> step#3 output:
#: # virsh pool-list --all
+
<pre>
#: Name                 State      Autostart  
+
# virsh pool-list --all
#: -----------------------------------------
+
Name                 State      Autostart  
#: default              active     yes       
+
-----------------------------------------
#: lv_pool              active     no 
+
default              active     yes       
#: </pre>       
+
lv_pool              active     no 
# step#4 output:
+
</pre>       
#: <pre>
+
<li> step#4 output:
#: # virsh pool-list --all
+
<pre>
#: Name                 State      Autostart  
+
# virsh pool-list --all
#: -----------------------------------------
+
Name                 State      Autostart  
#: default              active     yes   
+
-----------------------------------------
#: </pre>  
+
default              active     yes   
 +
</pre>
 +
</ol>
 
}}
 
}}
  
 
[[Category:Virtualization_libvirt_Test_Cases]]
 
[[Category:Virtualization_libvirt_Test_Cases]]

Latest revision as of 19:45, 14 April 2011

Description

Tests virt pool creation and removal.


How to test

  1. create a logical pool
    # pvcreate /dev/sda3
    # vgcreate lv_pool /dev/lv_pool
    # virsh pool-create-as  lv_pool logical --source-dev /dev/sda3 --target /dev/lv_pool
    Pool lv_pool created
    
  2. destroy the logical pool
    # virsh pool-destroy lv_pool
    Pool lv_pool destroyed
    
  3. create a logical pool with arg source-name
    #virsh pool-create-as  lv_pool logical  --source-name  sda3  --target /dev/lv_pool
  4. destroy the logical pool
    # virsh pool-destroy lv_pool
    Pool lv_pool destroyed
    

Expected Results

  1. step#1 output:
    # virsh pool-list --all
    Name                 State      Autostart 
    -----------------------------------------
    default              active     yes       
    lv_pool              active     no     
    
       
  2. step#2 output:
    # virsh pool-list --all
    Name                 State      Autostart 
    -----------------------------------------
    default              active     yes    
    
  3. step#3 output:
    # virsh pool-list --all
    Name                 State      Autostart 
    -----------------------------------------
    default              active     yes       
    lv_pool              active     no 
    
          
  4. step#4 output:
    # virsh pool-list --all
    Name                 State      Autostart 
    -----------------------------------------
    default              active     yes