-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/11510/
-----------------------------------------------------------

(Updated May 30, 2013, 4:39 p.m.)


Review request for cloudstack, Devdeep Singh and Prachi Damle.


Changes
-------

Modified Test file,
As UserVmDao is replaced with VmInstanceDao associated changes had been made to 
the Test file. (to inject VmInstanceDao instead of UserVmDao)


Description
-------

Issues:
In Implicit planner resource usage is fixed to "Dedicated". It should be 
Dedicated/Shared depending upon the Implict Planner strict/preferred modes and 
hosts availability.

Fixed:
Issue is fixed by determining the resource usage to be "Dedicated/Shared" 
depending upon the Implicit strict/preferred mode and the hosts availability 
for the planner.


This addresses bug CLOUDSTACK-2662.


Diffs (updated)
-----

  api/src/com/cloud/deploy/DeploymentClusterPlanner.java 1a19c71 
  
plugins/deployment-planners/implicit-dedication/src/com/cloud/deploy/ImplicitDedicationPlanner.java
 d47d8f5 
  
plugins/deployment-planners/implicit-dedication/test/org/apache/cloudstack/implicitplanner/ImplicitPlannerTest.java
 4450760 
  server/src/com/cloud/deploy/DeploymentPlanningManagerImpl.java d954c8b 
  server/src/com/cloud/deploy/FirstFitPlanner.java caf8c6e 

Diff: https://reviews.apache.org/r/11510/diff/


Testing
-------

Test Cases Executed Manually :

Accounts : Admin, TestA, TestB
2 Clusters, 3 Hosts. (HostA, HostB, HostC)

When zone is enabled. 
In HostA , ssvm, cpvm had came up and this resource is marked as Shared.

1. login to TestA, create Vm with implict Strict.
   routerVm for TestA came on HostB (marked as Shared) and instance came up on 
HostC ( Marked as Dedicated)
2. from TestA, deploy a VM with implict Preffered. 
   VM successfuly deployed on the HostC. (as its possible to deploy in strict 
mode, VM got deployed on HostC)
3. login to TestB, 
   Create VM with Implict Strcit.Creation of Vm failed successfuly ( as there 
are no empty hosts)
   Create VM with Implict Preferred. router VM created on HostB. Instance got 
deployed on HostB. (tried Dedicated as there are no empty hosts, tired with 
Shared and deployed on HostB)
   Create VM with Implict Preferred, deployVm. instance got created on HostA.( 
Tried Dedicated and then tried shared. As HostA is marked as Shared VM got 
deployed on HostA)
  from TestB account two Vm's got deployed, with implict preferred mode. VM's 
were successfully deployed on the Hosts which are marked as Shared.
4. Removed the VM's deployed from TestA and Router for the TestA.
   HostC now unmarked as 'Dedicated'
5. Login to TestB, 
   Deploy Vm with Implict preferred. VM got deployed on HostC ( tried strict as 
empty HostC is available, VM deployed in HostC). HostC marked as "Dedicated"
   Deploy Vm with Implict Strict. VM got deployed on HostC. (As dedicated host 
is available because of above deployement. Vm got successfuly deployed on HostC)

6. Login as Admin
   deploy vm with "medium instance" offering. VM got deployed in shared 
resource host.


Screenshots
-----------

mysql_data_xencenter_view
  https://reviews.apache.org/r/11510/s/26/


Thanks,

Rajesh Battala

Reply via email to