QA:Testcase Virtualization libvirt create a logical pool

From FedoraProject

Jump to: navigation, search

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