Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-1809

Actual capacity availble for vm deployement in vmware cluster is less than what Dashboard shows (total_capacity in op_host_capacity table)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.2.0
    • Future
    • VMware
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • vmware

    Description

      ->For vmware cluster(with only one host) vcenter shows total capacity of cluster is (Memory 13431 MB, CPU 7752MHz) which is available for vm deployment and cloud stack shows (Memory 15.99 GB, CPU 9572) .
      ->Due to this calculation difference CS allocator shows capacity is available on host but vm deployment fails with run time error

      "2013-06-13 12:23:01,945 WARN [vmware.resource.VmwareResource] (DirectAgent-141:10.147.40.7) StartCommand failed due to Exception: java.lang.RuntimeException
      Message: The available CPU resources in the parent resource pool are insufficient for the operation.

      java.lang.RuntimeException: The available CPU resources in the parent resource pool are insufficient for the operation.
      "

      DB


      mysql> select *from op_host_capacity where capacity_type in (0,1)\G;

                                                          • 1. row ***************************
                                                            id: 1
                                                            host_id: 1
                                                            data_center_id: 1
                                                            pod_id: 1
                                                            cluster_id: 1
                                                            used_capacity: 6039797760
                                                            reserved_capacity: 0
                                                            total_capacity: 17169539072
                                                            capacity_type: 0
                                                            capacity_state: Enabled
                                                            update_time: 2013-06-13 15:29:33
                                                            created: 2013-06-05 16:05:51
                                                          • 2. row ***************************
                                                            id: 2
                                                            host_id: 1
                                                            data_center_id: 1
                                                            pod_id: 1
                                                            cluster_id: 1
                                                            used_capacity: 7700
                                                            reserved_capacity: 0
                                                            total_capacity: 9572
                                                            capacity_type: 1
                                                            capacity_state: Enabled
                                                            update_time: 2013-06-13 15:29:33
                                                            created: 2013-06-05 16:05:51
                                                            2 rows in set (0.00 sec)

      Attachments

        1. screenshot-2.jpg
          189 kB
          prashant kumar mishra
        2. screenshot-1.jpg
          213 kB
          prashant kumar mishra
        3. DB_Logs.rar
          383 kB
          prashant kumar mishra

        Issue Links

          Activity

            People

              sateeshc Sateesh Chodapuneedi
              prashantkm prashant kumar mishra
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: