[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14614518#comment-14614518 ] ASF GitHub Bot commented on CLOUDSTACK-8439: Github user sanju1010 commented on the pull request: https://github.com/apache/cloudstack/pull/226#issuecomment-118708640 I am taking this patch. Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14614519#comment-14614519 ] ASF subversion and git services commented on CLOUDSTACK-8439: - Commit 896f6b1e5e2b23958886899334b09e71ffe38e6f in cloudstack's branch refs/heads/master from nitt10prashant [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=896f6b1 ] CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit This closes #226 Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14614521#comment-14614521 ] ASF GitHub Bot commented on CLOUDSTACK-8439: Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/226 Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14614520#comment-14614520 ] ASF subversion and git services commented on CLOUDSTACK-8439: - Commit 896f6b1e5e2b23958886899334b09e71ffe38e6f in cloudstack's branch refs/heads/master from nitt10prashant [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=896f6b1 ] CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit This closes #226 Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14611655#comment-14611655 ] ASF GitHub Bot commented on CLOUDSTACK-8439: Github user remibergsma commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/226#discussion_r33756445 --- Diff: test/integration/component/test_overcommit.py --- @@ -0,0 +1,458 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# License); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + + test for feature CPU and MEM OVERCOMMIT + + +from marvin.cloudstackTestCase import cloudstackTestCase +from marvin.lib.base import (Account, + Capacities, + Cluster, + Configurations, + FAILED, + Host, + PASS, + ServiceOffering, + time, + VirtualMachine,) +from marvin.lib.utils import cleanup_resources, validateList +from marvin.lib.common import (get_zone, + get_domain, + get_template) +from marvin.sshClient import SshClient +from nose.plugins.attrib import attr + + +def ssh_xen_host(password, ipaddr, instance_name): +Ssh into xen host and get vm mem details +mem = [] +sshClient = SshClient( +ipaddr, +22, +root, +password +) +command = xe vm-list params=all name-label=%s % instance_name +vm_detail = sshClient.execute(command) +max_str = vm_detail[17].split(:) +min_str = vm_detail[20].split(:) +max = int(max_str[1]) +min = int(min_str[1]) +mem.append(max) +mem.append(min) +return mem + + +def ssh_kvm_host(password, ipaddr, instance_name): +Ssh into kvm host and get vm mem details +mem = [] +sshClient = SshClient( +ipaddr, +22, +root, +password +) + +command = virsh dominfo %s % instance_name +vm_detail = sshClient.execute(command) +max = vm_detail[7].split() +min = vm_detail[8].split() +mem.append(int(max[2])) +mem.append(int(min[2])) +return mem + + +def capacity_parser(capacity): +cpu = [] +mem = [] +cpu.append(capacity[0].capacitytotal) +cpu.append(capacity[0].capacityused) +cpu.append(capacity[0].percentused) +mem.append(capacity[1].capacitytotal) +mem.append(capacity[1].capacityused) +mem.append(capacity[1].percentused) +return cpu, mem + + +class Overcommit (cloudstackTestCase): + +@classmethod +def setUpClass(cls): +testClient = super(Overcommit, cls).getClsTestClient() +cls.apiclient = testClient.getApiClient() +cls.testdata = testClient.getParsedTestDataConfig() +# Get Zone,Domain and templates +cls.domain = get_domain(cls.apiclient) +cls.zone = get_zone(cls.apiclient) +cls.testdata[mode] = cls.zone.networktype +cls.testdata[configurableData][password] = xenroot +cls.hypervisor = testClient.getHypervisorInfo() + +cls.template = get_template( +cls.apiclient, +cls.zone.id, +cls.testdata[ostype]) +cls.testdata[template][ostypeid] = cls.template.ostypeid +list_conf = Configurations.list(cls.apiclient, +name=capacity.check.period +) +cls.wait_time = 5 + int(list_conf[0].value) / 1000 +if cls.template == FAILED: +cls.fail( +get_template() failed to return template with description \ +%s % +
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14611710#comment-14611710 ] ASF GitHub Bot commented on CLOUDSTACK-8439: Github user runseb commented on the pull request: https://github.com/apache/cloudstack/pull/226#issuecomment-117979269 @sanju1010 can you OK this now ? Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14611658#comment-14611658 ] ASF GitHub Bot commented on CLOUDSTACK-8439: Github user remibergsma commented on the pull request: https://github.com/apache/cloudstack/pull/226#issuecomment-117956396 Apart from the typo it LGTM Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.2 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CLOUDSTACK-8439) Automation for feature CPU/Memory overcommit
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14526321#comment-14526321 ] ASF GitHub Bot commented on CLOUDSTACK-8439: GitHub user nitt10prashant opened a pull request: https://github.com/apache/cloudstack/pull/226 CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit Tested on xen,kvm,vmware environments Test result: -- enge cpu/mem.overprovisioning.factor at cluster level and v ... === TestName: test_01_cluster_settings | Status : SUCCESS === ok change mem.overprovisioning.factor and verify vm memory ... === TestName: test_02_Overcommit_factor | Status : SUCCESS === ok change cpu/mem.overprovisioning.factor at cluster level and ... === TestName: test_03_cluste_capacity_check | Status : SUCCESS === ok change cpu/mem.overprovisioning.factor at cluster level for ... === TestName: test_04_zone_capacity_check | Status : SUCCESS === ok -- Ran 4 tests in 1785.972s OK You can merge this pull request into a Git repository by running: $ git pull https://github.com/nitt10prashant/cloudstack pkm Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/226.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #226 commit a757134921099c92f35685fd3095160970e0ae24 Author: nitt10prashant nitt10.prash...@gmail.com Date: 2015-05-04T06:43:52Z CLOUDSTACK-8439:Automation for feature CPU/Memory overcommit Automation for feature CPU/Memory overcommit Key: CLOUDSTACK-8439 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8439 Project: CloudStack Issue Type: Bug Security Level: Public(Anyone can view this level - this is the default.) Components: marvin Affects Versions: 4.5.0 Reporter: prashant kumar mishra Assignee: prashant kumar mishra Fix For: 4.5.1 FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CPU+and+Memory+OverCommit test cases: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Over+commit+CPU+and+Memory -- This message was sent by Atlassian JIRA (v6.3.4#6332)