prashant kumar mishra created CLOUDSTACK-1739: -------------------------------------------------
Summary: VMs are getting 1 GB memory on KVM hypervisor ,when they are deployed with Service Offering having RAM >=1GB and overcommit ratio is set to some value>1 Key: CLOUDSTACK-1739 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1739 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Reporter: prashant kumar mishra Priority: Blocker Branch "Master" ; Hypervisor "KVM" Steps to reproduce --------------------------- 1-Set overcommit ratio to 2 2-Deploy a vm with service offering having RAM 5 GB Expected -------------- VM should be assigned Max memory 5 GB and Min memory 2.5 GB Actual ----------- VMs are getting 1 GB Memory DB Details ---------------- ---------------- mysql> select * from vm_instance where id = 56\G; *************************** 1. row *************************** id: 56 name: five2 uuid: 6eeff736-1cf5-41a2-ab32-40040c8d6660 instance_name: i-2-56-VM state: Running vm_template_id: 203 guest_os_id: 112 private_mac_address: 02:00:03:ca:00:0a private_ip_address: 10.1.1.142 pod_id: 1 data_center_id: 1 host_id: 1 last_host_id: 1 proxy_id: NULL proxy_assign_time: NULL vnc_password: y8Kx8ZWP8ECtYGqLefzfkdFFZ7rpvew+gN5oDee1MBc= ha_enabled: 0 limit_cpu_use: 0 update_count: 4 update_time: 2013-03-20 10:34:06 created: 2013-03-20 10:32:14 removed: NULL type: User vm_type: User account_id: 2 domain_id: 1 service_offering_id: 12 reservation_id: 8701b3d0-f2c6-471c-8f37-76e1ab768ec7 hypervisor_type: KVM disk_offering_id: 3 cpu: NULL ram: NULL owner: 2 speed: 1000 host_name: five2 display_name: five2 desired_state: NULL 1 row in set (0.00 sec) mysql> select * from service_offering where id = 12\G; *************************** 1. row *************************** id: 12 cpu: 1 speed: 1000 ram_size: 5120 nw_rate: NULL mc_rate: NULL ha_enabled: 0 limit_cpu_use: 0 host_tag: NULL default_use: 0 vm_type: NULL sort_key: 0 is_volatile: 0 1 row in set (0.00 sec) ERROR: No query specified [root@Rack1Pod1Host7 ~]# virsh list Id Name State ---------------------------------------------------- 1 v-44-VM running 5 s-46-VM running 6 r-48-VM running 11 i-2-47-VM running 13 i-2-55-VM running 14 i-2-56-VM running 15 i-2-57-VM running [root@Rack1Pod1Host7 ~]# virsh dominfo 14 Id: 14 Name: i-2-56-VM UUID: 85c6740f-4916-37d5-9288-a9f68c4ba372 OS Type: hvm State: running CPU(s): 1 CPU time: 200.4s Max memory: 1048576 kB Used memory: 1048576 kB Persistent: no Autostart: disable Managed save: no -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira