cloudstack/server/src/com/cloud
prachi 1d4a59ce73 Bug 9666 - hostId and spoolId overlap in op_host_capacity table
Changes:
- When a host connects, we check if it has a CPU and RAM entry in capacity table. If the entry is found, the values are updated if possible. If the entry is not found a new one is inserted.
- The searchCriteria used to check if CPU entry is present was wrong. We were passing in a criteria which did not specify capacityType. So for hostId >= 200, the serach would return capacity entries of storage pools also since poolIDs start from 200 onwards.
- Since an entry was found (although the wrong one), we tried to update it. But update does not happen since the capacity ranges dont match.
And a new insert for CPU also does not happen since an entry is found.
- So as a result CPU entries are never inserted in the table for hostIds >=200

- As a fix, corrected the search criteria.
- During VM deployment, when the entry is not found, we get a NPE. Added a null check to avoid that.
2011-05-02 15:17:30 -07:00
..
account Added more changes to the api 2010-10-21 15:11:49 -07:00
acl bug 8710: CONTD....Introducing a new user role in cloudstack called RESOURCE_DOMAIN_ADMIN. The role would have all the domain_admin rights and the rights to list zone,pods,clusters and so on. More info in the bug 2011-04-11 19:40:37 +05:30
agent Bug 9666 - hostId and spoolId overlap in op_host_capacity table 2011-05-02 15:17:30 -07:00
alert changed getName to getHostname 2011-04-29 08:34:10 -07:00
api bug 9643: propagate fix from 2.2.4 2011-04-29 17:51:42 -07:00
async bug 9336: securityGroups can be used by other securityGroups in the same domain only; no cross domain SG authentication 2011-04-22 11:35:29 -07:00
capacity Bug 9666 - hostId and spoolId overlap in op_host_capacity table 2011-05-02 15:17:30 -07:00
certificate/dao Add license header to files 2011-04-14 11:23:14 -07:00
cluster Add license header to files 2011-04-14 11:23:14 -07:00
configuration Merging changes from zonesfeature branch: Adding dhcp_provider parameter to UpdateZoneCmd 2011-04-28 23:28:14 -07:00
consoleproxy bug 9643: propagate fix from 2.2.4 2011-04-29 17:51:42 -07:00
dao Port forwarding rules and load balancing rules rewrite 2010-12-03 08:48:02 -08:00
dc Merging changes from zonesfeature branch for Bug 8026 - discern proper cluster/pod/zone for added host (and refactor AgentManagerImpl) 2011-04-28 23:08:58 -07:00
deploy bug 8745: we decided on not implementing revert on the agent because it really requires business logic above. Stop if the checkSsh doesn't work 2011-05-02 14:47:49 -07:00
domain clean up transation code 2011-04-12 18:56:49 -07:00
event Add license header to files 2011-04-14 11:23:14 -07:00
ha bug 9643: propagate fix from 2.2.4 2011-04-29 17:51:42 -07:00
host/dao Merging changes from zonesfeature branch for Bug 8026 - discern proper cluster/pod/zone for added host (and refactor AgentManagerImpl) 2011-04-28 23:08:58 -07:00
hypervisor Bug 9534 : implement CPU cap 2011-04-27 13:54:45 +05:30
keystore Finalize custom certficate support. hook with UI 2011-04-22 13:45:09 -07:00
maint Use Long type for version comparsion 2011-03-22 11:07:11 -07:00
migration changed getName to getHostname 2011-04-29 08:34:10 -07:00
network changed getName to getHostname 2011-04-29 08:34:10 -07:00
offerings Add license header to files 2011-04-14 11:23:14 -07:00
resource Bug 8208 - bare metal provisioning 2011-02-23 17:20:43 -08:00
server bug 9643: propagate fix from 2.2.4 2011-04-29 17:51:42 -07:00
service Bug 9534 : implement CPU cap 2011-04-27 13:54:45 +05:30
servlet - Merge all CloudZones Registration feature into master 2011-04-28 16:05:36 -07:00
storage bug 8745: we decided on not implementing revert on the agent because it really requires business logic above. Stop if the checkSsh doesn't work 2011-05-02 14:47:49 -07:00
template Template Adapter: 2011-04-29 18:21:37 -07:00
test bug 9129:can't create vm if an instance limit is set at root domain 2011-04-08 13:25:51 +05:30
upgrade bug 9682: DB upgrade - create vm.destroy event in usage_events table 2011-05-02 13:50:26 -07:00
user changed getName to getHostname 2011-04-29 08:34:10 -07:00
vm bug 8745: we decided on not implementing revert on the agent because it really requires business logic above. Stop if the checkSsh doesn't work 2011-05-02 14:47:49 -07:00