Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Test Case ID

Test Case Name

Steps

Expected Result

Priority
(P1|P2|P3)

Test Case Type
(Functional|Upgrade|Performance)

Automatable
(Y|N)

Vmware
(Pass|Fail)

Comment

1

Check for global parameter and its default value

Search for "vmware.create.full.clone" in Global settings

should be in Global settings with default value false 

P1

Functional

Y

Pass

 

2

DB check

1-Check  DB for new table user_vm_clone_setting

1-Table should be there with two column vm_id,clone_type

P1

Functional

Y

Pass

 

 

LINKED CLONE/FULL CLONE

 

 

 

 

 

 

 

3

Linked clone

1-Register a template
2-Deploy a  vm   from  template register in  step 1 when "vmware.create.full.clone" value is default value(set by MS)

1-vm should be linked clone
2-A new entry should be added to user_vm_clone_setting table with clone type linked

P1

Functional

Y

Pass

 

4

Full clone

1-Create a vm from template
1-Deploy a   vm from template used in step 1 when vmware.create.full clone is set to  true

1-VM should be full clone
2-A new entry should be added to user_vm_clone_setting table with clone type full

P1

Functional

Y

Pass

 

 

 COEXISTENCE

 

 

 

 

 

 

 

5

Coexistence of Full/linked clones

1-Create some vm   when vmware.create.full.clone set to default value(false)
2-Create some more vm when vmware.create.full.clone set to True
3-Create some more vm when vmware create.full.clone set to false(set by admin)

1-Vm created in step 1 should be linked clone
2-VM created in step 2 should be full clone
3-Vm created in step 3 should be linked clone

P1

Functional

Y

Pass

 

 

SNAPSHOT

 

 

 

 

 

 

 

6

Snapshot Creation

1-Create snapshot for  linked clone VM
2-Create snapshot for full clone

1-Should be successful
2-Should be successful and should have delta disk

P1

Functional

Y

  Pass

 

7

Recurring snapshot

1-Create a linked clone
2-Create a Full clone
3-Treigger recurring snapshot for vms created in step 1 and 2

1-Shold be successful

P1

Functional

Y

 

 

8

VM from snapshot

1-Set vmware.create.full.clone to true
2-Create a new vm
3-trigger snapshot
4-create template from snapshot
5-deploy a vm (full clone) from template created in 3 4
6-Set vmware.create.full.clone to false
5-deploy a vm (linked clone)  from template created in step 3 4

all operation should be successful

P2

Functional

Y

 

Pass

https://issues.apache.org/jira/browse/CLOUDSTACK-1392  

 

UPGRADE

 

 

 

 

 

 

 

9

upgrade

Pre upgrade step
1-Deploy some vm without data disk
2-Deploy some more vm with data disk
3-Have some snapshots for  vms  crated step 1 and 2

Post upgrade step
4-Deploy some  vm when vmware.create.full.clone set to false
5-Deploy some more vm when vmware.create.full.clone set to true
6- Create snapshot for vms created in step 4 and 5

1-vm created in sted in step 5 should be full clone and in step 4
should be linked clone.
2-DB  should have  a new table user_vm_clone_setting
3-Global config settings should have new entry "vmware.create.full.clone"

P1

Upgrade

Y

Hold  


 

 

VM RESTART/DESTROY/RESTORE

(Restart/Destroy/Restore)

 

 

 

 

 

 

 

10

Restart vm

1- Create a full clone vm
2- Restart vm

vm should  be full clone

P2

Functional

Y

  Pass

 

11

Destroy vm

1-Create a full clone vm
2-Destroy vm

all resource should be released (volumes)

P2

Functional

Y

  Pass

 

12

Restore vm

1-Create a full clone vm
2-Destroy
3-Restore

1-after step 3 vm should be restore as  full clone
2-ther should not be a duplicate entry in user_vm_clone_setting for vms

P2

Functional

Y

  Pass

 

 

CREATING LINKED VM FROM CLONE AND VICE_VERSA

 

 

 

 

 

 

 

13

Create a full clone from linked clone vm

1-Set vmware.create.full.clone to false
2-Create a  vm (linked clone)
3-Create template from vm in step 2
4-set vmware.create.full.clone to true
5-Deploy a vm (full clone) from template created in step 3
6-Destroy vm created in step 2
7-Delete template created in step 3

1-vm created in step 2 should be expunged successfully
2-template created in step 3 should get deleted successfully
2-vm created in step 5 should not  have any effect on step 6 and step 7

P2

Functional

Y

Pass  

 

14

Create a linked clone from full clone vm

1-Create a full clone
2-Create a template
3-deploy some linked clone vms from template created in step two.
4-destroy vm created in step 1
5-Delete template
6-Delete template from primary

1- stop and start vm created in step 3 should be crashed(root disk deleted) after step 6 , start vm should failed

P3

Functional

Y

Pass  

 

 

VOLUME ATTACH/DETACH

 

 

 

 

 

 

 

15

Attache/Detach volume

1-Create a full clone
2- Attache a volume
3-Detach a volume
4-Create a linked clone and attache a volume
5-Attach a volume
6-Detache a volume

1-All the operation should happen successfully

 

Functional

Y

  Pass

 

 

GLOBAL SETTING CHANGE WHILE DEPLOYING VM
DEPLOYMENT OF LINKED AND FULL CLONE THROUGH USER ACCOUNT

 

 

 

 

 

 

 

16

Changing of GS while deploying vm

1-Set vmware.create.full.clone to true
2-Deploy vm(Full clone)
3-while vm deployment is going on set vmware.create.clone to false and restart MS

??

P3

Functional

Y

 

 

Linked clone through user account

1-Crate a user account
2

17

Changing of GS while deploying vm

1-Set vmware.create.full.clone to false
2-Deploy vm(linked clone)
3-While vm deployment is going on set, vmware create.clone to false and restart MS

??

P3

Functional

Y

 

 

 

HOST MAINTENANCE MODE EFFECT

 

 

 

 

 

 

 

Restart MS
4-login as user 
5-deploy vm

1-VM

18

Put host in maintenance mode

1-Set vmware create.full.clone to false
2-Put target Host in maintenance mode

if any other potential host is available vm should come up and should be linked clone

P3

Functional

Y

  Pass

 

19

17

Full clone through use account Put host in maintenance mode

1-Crate a user account
2-Set vmware.create.full.clone to true
2-Put target Host in maintenance mode

3-Restart MS
4-login as user 
4-deploy vm

1-Deployed vm if any other potential host is available vm should come up and should be full clone

P3

Functional

Y

  Pass

 

 

MIGRATION

 

 

 

 

 

 

 

18 20

Live migration

migrate  vm within cluster

vm migration should not change the vm property

P2

Functional

Y

Pass

 

 

21

Migration to another cluster

migrate a full clone vm to another cluster

vm migration should not change the vm property

P2

Functional

Y

 

 

 SYSTEM VM CHECK

 

 

 

 

 

 

 

19

checking system vm

1-Set "vmware.create.full.clone" to True
2-Destroy system vms

1-ssvm  are expected to come as  full  clone .

P1

Functional

Y

Pass

https://issues.apache.org/jira/browse/CLOUDSTACK-2153