----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/11510/ -----------------------------------------------------------
(Updated May 31, 2013, 2:51 a.m.) Review request for cloudstack, Devdeep Singh and Prachi Damle. Changes ------- unused import caused the issues. removed it from planner. I had tested now. its working fine. ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.cloudstack.implicitplanner.ImplicitPlannerTest log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.332 sec Results : Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cloud-plugin-planner-implicit-dedication --- [INFO] Building jar: /home/rajesh/hc_fzf/plugins/deployment-planners/implicit-dedication/target/cloud-plugin-planner-implicit-dedication-4.2.0-SNAPSHOT.jar [INFO] [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ cloud-plugin-planner-implicit-dedication --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-plugin-planner-implicit-dedication --- [INFO] Installing /home/rajesh/hc_fzf/plugins/deployment-planners/implicit-dedication/target/cloud-plugin-planner-implicit-dedication-4.2.0-SNAPSHOT.jar to /home/rajesh/.m2/repository/org/apache/cloudstack/cloud-plugin-planner-implicit-dedication/4.2.0-SNAPSHOT/cloud-plugin-planner-implicit-dedication-4.2.0-SNAPSHOT.jar [INFO] Installing /home/rajesh/hc_fzf/plugins/deployment-planners/implicit-dedication/pom.xml to /home/rajesh/.m2/repository/org/apache/cloudstack/cloud-plugin-planner-implicit-dedication/4.2.0-SNAPSHOT/cloud-plugin-planner-implicit-dedication-4.2.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS 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