2227 Commits

Author SHA1 Message Date
alena
acaab55c3e bug 9391: removed source_id, source_type from "volumes" table as we don't use them any more
status 9391: resolved fixed

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2011-04-11 18:19:10 -07:00
alena
52bf157387 bug 9398: removed resource_type from volumes table as we no longer use it. Corresponding db upgrade scripts are updated
status 9398: resolved fixed

Conflicts:

	server/src/com/cloud/storage/StorageManagerImpl.java
2011-04-11 18:14:35 -07:00
alena
f6b8f23751 bug 9381: set accountId=domainId=1 for system vms in vm_instance table
status 9381: resolved fixed
2011-04-11 18:10:54 -07:00
alena
bb2d907d47 bug 9380: db upgrade - use the same case for 'hypervisor_type' in 'vm_instance' table
status 9380: resolved fixed
2011-04-11 18:10:42 -07:00
Kelven Yang
03afe54084 Regression fixes for adding openNew() to Transaction.java 2011-04-11 17:44:31 -07:00
Kelven Yang
149eb0fade Use seperate DB connection to handle cluster management 2011-04-11 16:37:58 -07:00
anthony
ac223c197f bug 9392: don't lock domr entry, otherwise updating domr state fails
status 9392: resolved fixed
2011-04-11 16:06:12 -07:00
Chiradeep Vittal
ae9180d33b bug 9330: add kvm / vmware system vm template definitions 2011-04-11 15:46:37 -07:00
Frank
5645137f9c reslove conflicts api/src/com/cloud/api/ApiConstants.java 2011-04-11 14:26:48 -07:00
Frank
105db3b15a Merge branch 'baremetal' to master
modifies:
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/commands/AddHostCmd.java
	api/src/com/cloud/api/commands/CreatePodCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	api/src/com/cloud/dc/Pod.java
	api/src/com/cloud/network/NetworkService.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/dc/HostPodVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	setup/db/create-schema.sql
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
prachi
c3d2bab81b Some more changes for Bug 8932 - add md5 sum to list templates call:
Also changed 'RegisterTemplate' to take in a new optional parameter 'checksum'.
The value set to it is stored as-is in the DB in vm_template table, 'checksum' column.
2011-04-11 13:17:23 -07:00
Frank
0810831fd2 Bug 8208 - bare metal provisioning
set useexternalDHCP to false when creating pod
2011-04-11 10:41:45 -07:00
alena
4460d1cf2c Fixed api xml doc writer 2011-04-11 09:33:36 -07:00
nit
debe236a8d 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
kishan
782a22d95f Usage upgrade changes 2011-04-11 18:49:52 +05:30
Murali Reddy
290c799b2c Bug 9273 : [Stress Test] 'Count' in resource_count table has negative values
pushing 2.2.4 changes in to master
2011-04-11 15:37:53 +05:30
Murali Reddy
8b30507841 bug 9312: deleteAccount API does not decrement User VM resource count when VM is destroyed
pushing 2.2.4 changes to master branch
2011-04-11 14:35:06 +05:30
prachi
77ac511225 Bug 8932 - add md5 sum to list templates call
Modified TemplateResponse to contain a new field 'checksum' of the template. The value is pulled from the vm_template table, 'checksum' column.
2011-04-08 15:01:12 -07:00
prachi
b0b2d594a0 Bug 8018 - return cloud identifier in some instance metadata
There's an API call "getCloudIdentifier".  it returns some UUID that uniquely identifies a cloud.

This bug is to set the value of the instace metadata field cloud-identifier to "CloudStack-{result of getCloudIdentifier}.  This metadata is programmed into
the virtual router by the management server.
2011-04-08 10:50:12 -07:00
Murali Reddy
598503f094 bug 9129:can't create vm if an instance limit is set at root domain
pushing 2.2.4 fixes
2011-04-08 13:25:51 +05:30
Kelven Yang
5bf6df3d6c bug 9328: always add explict route to domR 2011-04-05 17:21:24 -07:00
alena
aa094868fc bug 8353: set dateFormat to "yyyy-MM-dd'T'HH:mm:ssZ" when initiate gson builder
status 8353: resolved fixed
2011-04-05 16:51:05 -07:00
prachi
191d689912 Bug 9045: No 'Starting job for VM.MIGRATE' & 'Successfully completed VM.MIGRATE' events shown for VM manual migration
Changes:
- Added the required 'ActionEvent' annotation to the API, so that the events get added.
2011-04-05 16:28:01 -07:00
anthony
2bcd7a13d4 hostid and poolid may overlap, fixed deletePoolStats 2011-04-05 15:43:21 -07:00
alena
0fdcba3f4f bug 8855: introduced search by zoneId to listLoadBalancerRules api. Also added "zoneId" parameter to the response
status 8855: resolved fixed
2011-04-05 14:38:47 -07:00
prachi
92c0b3b82f Bug 9309 - In Manual migration, do not consider 'reserved_capacity' when computing available memory in destination
Changes:
- Now while listing hosts for migration, capacity is calculated as total_capacity -used_capacity
 instead of total_capacity -(used_capacity + reserved_capacity)
- Also, the capacity columns in op_host_capacity are now 'signed' type so that the subtractions in queries does not overflow.
- Added this to DB upgrade 222 to 224 change as well.
2011-04-05 14:06:32 -07:00
anthony
288a36d09f Merge branch '2.2.4'
Conflicts:
	api/src/com/cloud/configuration/ConfigurationService.java
	core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	setup/db/db/schema-21to22.sql
	setup/db/db/schema-222to224.sql
	utils/src/com/cloud/utils/exception/ExceptionUtil.java
2011-04-05 12:04:09 -07:00
Alex Huang
b86828bbbe some formatting changes for agentmanager 2011-04-05 11:04:35 -07:00
Alex Huang
5f41eef6d1 Brought over edison's changes 2011-04-05 11:04:34 -07:00
Alex Huang
5d488b106d bring changes to master from 2.2.4 2011-04-05 11:01:36 -07:00
Alex Huang
2230c24ab3 check in changes from 2.2.4 2011-04-05 11:01:35 -07:00
Alex Huang
075fba5899 stackmaid is now taskmanager 2011-04-05 10:17:22 -07:00
alena
61f968592b bug 9306: set isolationUri/broadcastUri for SSVM/domR/CPVM public nics
status 9306: resolved fixed
2011-04-05 09:18:43 -07:00
Alex Huang
04099a4950 bug 9311: changed instance_id to nic_id 2011-04-05 09:12:55 -07:00
alena
49cbcac29f bug 8959: fixed mac address generation for public ip addresses 2011-04-04 18:31:19 -07:00
alena
534623706d bug 9305: set Mode field for domR/CPVM/SSVM nics
status 9305: resolved fixed
2011-04-04 18:31:07 -07:00
alena
9b4b0abcce bug 8959: fixed mac address generation for public ip addresses 2011-04-04 18:26:11 -07:00
alena
c6b8c0ecfa bug 9305: set Mode field for domR/CPVM/SSVM nics
status 9305: resolved fixed
2011-04-04 17:51:53 -07:00
prachi
204aa86686 Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:39:27 -07:00
prachi
53f8ebf6f0 Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:30:08 -07:00
Alex Huang
b2cab48e0c bug 9308: changed instance_id to nic_id 2011-04-04 16:59:16 -07:00
alena
6736569d22 bug 9274: listPublicIpAddresses - don't list Direct ip addresses by default; list them only when "forVirtualNetwork=false" is specified in the request.
status 9274: resolved fixed
2011-04-04 15:47:23 -07:00
alena
a47a4c8cfe bug 9272: fixed the race condition bug when we tried to remove vm from SG after it was expunged (expunge interval was really small, 60 sec).
status 9272: resolved fixed

When do search for vm, do includingRemoved search.
2011-04-04 15:47:14 -07:00
alena
f8fce16cac bug 9274: listPublicIpAddresses - don't list Direct ip addresses by default; list them only when "forVirtualNetwork=false" is specified in the request.
status 9274: resolved fixed
2011-04-04 15:43:04 -07:00
alena
f2921b7f15 bug 9272: fixed the race condition bug when we tried to remove vm from SG after it was expunged (expunge interval was really small, 60 sec).
status 9272: resolved fixed

When do search for vm, do includingRemoved search.
2011-04-04 15:43:04 -07:00
Kelven Yang
1692caabe8 Make sure hooking of answer command callback be called for both sync/Async commands 2011-04-04 14:46:19 -07:00
Kelven Yang
918df1a838 missing one more place to notify answer commands 2011-04-04 14:44:24 -07:00
anthony
545aa50388 bug 9282: set cluster guid if it is null
status 9282: resolved fixed
2011-04-04 14:33:18 -07:00
Alex Huang
e8720cc1f7 bug 9300: changed the network id to management from storage for ssvm 2011-04-04 13:53:51 -07:00
alena
af4459f24f Fixed list* api commands. 2011-04-04 11:36:49 -07:00