The following Test cases  should be executed on all the Hyper visors  even though changes only applicable to Xen as per spec.  Xen 6.2

  • Xen6.2
  • VMware5.1
  • KVM

Zone:Advanced Zone

Functional Spec:https://cwiki.apache.org/confluence/display/CLOUDSTACK/Snapshot+improvements+FS

Test Case Name

Steps To Be Performed to Test

Verification Steps

Priority

Status 

Test Case Type( Sanity | Functional |Negative)

Reviewed By

IsAutomatable

 perform snapshot on Root volume

1.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
2.Log into the VM and create a file with content in it.
3.Perform snapshot on the root disk of this newly created VM

a. listSnapshots should list this newly created snapshot

b. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid

. Verify backup_snap_id was non null in "snapshots"table

P1

 

 

 

 

Take snapshot on root disk of a Windows VM.

Register/Create a Windows Template onto the CloudStack Setup.
Deploy a Windows VM using the Windows template, use medium service offering, disk offering
Log into the VM and create a file on the desktop with content in it.
Perform snapshot on the root disk of this newly created VM

a. listSnapshots should list this newly created snapshot

b. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid

c. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

Configure the concurrent snapshots threshold and perform concurrent snapshots on same volume

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.Initiate the snapshot on same volume more than 3 times

a.all the initiated snapshots shuould be completed successfully
b.Verify backup_snap_id was non null in "snapshots"table
c.listSnapshots should list this newly created snapshot

 

 

 

 

 

Configure the concurrent.snapshots.threshold.perhost and perform concurrent snapshots on different volumes belongs to same VM

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 4 times
5.Perform snapshot on the root disk of this newly created VMs(4 vms)

a.
check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

b. listSnapshots should list this newly created snapshot.

c. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

d. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

perfom snapshots less than conncurent threshhold value

1.Configure the concurrent.snapshots.threshold.perhost=20
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 4 times
5.Perform snapshot on the root disk of this newly created VMs(4 vms)

a.
check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

b. listSnapshots should list this newly created snapshot.

c. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

d. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

perfom snapshots more than conncurent threshhold value

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 10 times to create 10 vms
5.Perform snapshot on the root disk of this newly created VMs(10 vms)

a.
check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

b. listSnapshots should list this newly created snapshot.

c. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

d. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

Perform concurent snapshots  and migrate the vm from one host to another

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 10times to create 10 vms
5.Perform snapshot on the root disk of this newly created VMs(10 vms)
6.perform VM live migration

a.Vms should successfully  migrated to another host.
b.check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

c. listSnapshots should list this newly created snapshot.

d. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

e. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

Perform concurent snapshots on volumes belongs to stopped VM

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 4times to create  vms
5.perform VM live migration  for 2 vms out of 4 vms  to another host
6.Stop all the running VM
7/Perform snapshot on the root disk Vms(all 4 vms root volumes)

a.Vms should successfully  migrated to another host.
b)Stop VM operation should be successful.
b.check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

c. listSnapshots should list this newly created snapshot.

d. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

e. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

Stop the running VM while performing conncurent snapshot on volumes

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 4times to create 4vms
5.Perform snapshot on the root disk of this newly created VMs(4 vms)
6.stop the running Vms while snapshot on volume in progress

b.check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

c. listSnapshots should list this newly created snapshot.

d. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

e. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

while parent conncurent snapshot job in progress,create template from completed snapshot

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 10times to create 10 vms
5.Perform snapshot on the root disk of this newly created VMs(10 vms)
6.while parent conncurent snapshot job in progress,create template from completed snapshot

a.Able to create Template from snapshots
b.check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

c. listSnapshots should list this newly created snapshot.

d. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

e. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

while parent conncurent snapshot job in progress,create volume from completed snapshot

1.Configure the concurrent.snapshots.threshold.perhost=3
2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 10times to create 10 vms
5.Perform snapshot on the root disk of this newly created VMs(10vms)
6.while parent conncurent snapshot job in progress,create volume from completed snapshot

a.Able to create volumes from snapshots
b.check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

c. listSnapshots should list this newly created snapshot.

d. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

e. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

 

 

 

 

 

 

 

 

 

Upgrade from 2.2x to 3.0x and check the  functionality of concuurent snapshots mechanisam

2.Deploy a Linux VM using default CentOS template, use small service offering, disk offering
3.Log into the VM and create a file with content in it.
4.repeat step 2 to 3 for 4times to create 4 vms
5.scedule the  hourly snapshot on the root disk of this newly created VMs(4 vms) before upgarde
6.Upgrade to CS form 2.2.x to 3.0x
5.Check the next scheduled snapshots after upgarde

a. After Upgarde:
1.concurrent.snapshots.threshold.perhost config parameter should be shown in the Global Configurations.
check all the snapshots jobs are running concurrently on back grounds( by checking the  job description on the logs &number of mount points from host to storage)

b. listSnapshots should list this newly created snapshot.

c. Verify secondary_storage NFS share conains the required volume under /secondary/snapshots/$accountid/$volumeid/$snapshot_uuid.

d. Verify backup_snap_id was non null in "snapshots"table

 

 

 

 

No

Check the createSnapshot commond takes more than allocated execution time 

1.Configure the job.expire.minutes to lessa value
2.make large volume and perform snashot on the root volume

Snapshot job should fail woith proper error message

 

 

 

 

 

Event Generation during Snapshot failure 

1.Configure the job.expire.minutes to lessa value
2.make large volume and perform snashot on the root volume

Proper event shouldbe  logged for the failures

 

 

 

 

 

  • No labels