487 Commits

Author SHA1 Message Date
alena
485f7a10cc bug 9621: dbUpgrade - set reservation strategy to be Create for Guest Nics in Basic zone
status 9621: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
	setup/db/db/schema-222to224.sql
2011-04-27 22:51:56 -07:00
Alex Huang
b4f6cdda66 bug 9610: Added VERSION table and related index change 2011-04-27 13:56:52 -07:00
Murali Reddy
c12ccbd06f Bug 9534 : implement CPU cap
Introducing new boolean flag in service offering to restrict the user VM's CPU utilization to what service offering it is entitled for.
2011-04-27 13:54:45 +05:30
alena
afa7d3f34d bug 9563: fixed DB upgrade from 2.2.2/2.2.3 to 2.2.4
status 9563: resolved fixed

Also added unittest for 2.2.2 to 2.2.4 upgrade

Conflicts:

	setup/db/db/schema-222to224.sql
2011-04-23 23:05:42 -07:00
alena
3c48d8d432 bug 9556: set ip_type=ip4 for guestVm nics in Basic zone setup
status 9556: resolved fixed
2011-04-23 20:43:37 -07:00
Kelven Yang
e6194b6e09 localization and migration for custom certification support 2011-04-22 17:22:01 -07:00
anthony
8271f034ce bug 9541: fix one snapshot DB migrate, one java check and one script typo
status 9541: resolved fixed
2011-04-22 12:57:16 -07:00
alena
41e5e38fef bug 9336: securityGroups can be used by other securityGroups in the same domain only; no cross domain SG authentication
status 9336: resolved fixed

Following changes were made:

* deleteSecurityGroup/authorizeSecurityGroupIngress - removed account/domainId parameters as SG is uniquely identified by id now
* removed account_name field from securityGroup DB table; removed allowed_security_group/allowed_sec_grp_acct from security_ingress_rule.
These values were used for api response generation only for performance purposes; added caching on API level to improve performance
* Added missing security checks for securityGroups/ingressRules
2011-04-22 11:35:29 -07:00
Kelven Yang
6ed18b5583 Add keystore management and related JUNIT test case 2011-04-19 16:20:06 -07:00
alena
dd9c60e341 Update volumes having destroyed=127 with Destroyed state only after ensuring that corresponding account is removed, or instance is expunged 2011-04-18 16:59:45 -07:00
alena
0efd44ddf7 bug 9483: delete records from template_spool_ref if corresponding storage pool doesn't exist any more
status 9483: resolved fixed
2011-04-15 17:09:02 -07:00
Chiradeep Vittal
d6a151fad4 bug 9441: cannot change unique_name in vm_template as this will cause template sync to fail 2011-04-15 16:29:15 -07:00
prachi
734e3f17c2 Bug 9331 - Even when there is no longer clusters in the pod, 'Delete Pod - Failed - because there are clusters in this pod'
Changes:
- Cluster entry is not removed from the table when a cluster is deleted because there are some foreign key constraints failing if the row delete is attempted. Instead the cluster is marked as 'removed'
- While deleting the pod changed the check to see if pod has any clusters - we now check that there are no clusters with removed column null.

- Also pod entry cannot be deleted from the db due to  foreign key constraints. So added 'removed' column to Pod table host_pod_ref
- Now on deleting a pod, the pod will be marked as removed and pod name is set to null.
2011-04-15 16:04:16 -07:00
alena
66c75d8ed0 bug 9473: mark all volumes with Destroyed>=1 with state=Destroy
status 9473: resolved fixed
2011-04-15 14:08:12 -07:00
alena
7f473dad6f 2.1.x-2.2.x upgrade: in "volumes" table use state=Destroy instead of "Destroyed" 2011-04-15 11:45:55 -07:00
alena
b4a65a6766 bug 9453: domain path is not unique value, removed the constraint added during 2.1.8-2.2.2 upgrade 2011-04-14 17:03:11 -07:00
alena
52fe53f497 bug 9458: do searchIncludingRemoved when decrement resource count as corresponding domain might be removed already
status 9458: resolved fixed

Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
2011-04-14 15:39:51 -07:00
Frank
92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
prachi
3ad19c633f Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it
- In the upgrade, new XenServer template entry was added in vm_template having id=100
- However we already have another System VM XenServer template downloaded in the upgrade process that gets different id.
- SSVM could not start because the vm_instance's templateId after the upgrade was set to '100' with the assumption that the Xenserver template with id=100 will be used.

Fix to upgrade script is:
-  we should not insert any entry in vm_template table for XenServer systemVM via the upgrade DB script. The latest XenServer template will get added in the upgrade process having name 'routing-xenserver-2.2.4'.
-  we should update the system VM's template_id in vminstance table to point to this ''routing-xenserver-2.2.4' template.
2011-04-13 17:59:39 -07:00
alena
c9989a7ddf bug 9420: update existing user_statistics records with device_id and device_type
status 9420: resolved fixed
2011-04-13 15:54:01 -07:00
Kelven Yang
1b9cbd9166 bug 9223, 9224: persist runid to form cluster session, based on cluster session and DB condition to issue isolation notification for self-fencing 2011-04-13 15:13:54 -07:00
alena
1a81515566 DB upgrade: enable securityGroup for all Basic zones 2011-04-12 10:43:54 -07:00
nit
463bb0fdec bug 9347: Adding index and foreign key constraint for upload table for migration from 2.1 to 2.2
Status 9347: resolved fixed
2011-04-12 12:35:08 +05:30
alena
d1a9200f4e bug 9378: db upgrade - update guest_os_id in vm_instance table for system vms.
status 9378: resolved fixed
2011-04-11 18:19:30 -07:00
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
70151389d1 bug 9396: removed status field from volumes table as this field is no longer used
status 9396: resolved fixed
2011-04-11 18:12:04 -07:00
alena
0f2112ff26 bug 9373: db upgrade - added missing constraints for user_ip_address table
status 9373: resolved fixed
2011-04-11 18:11:52 -07:00
alena
28029b20c1 bug 9374: removed guest_ip/mac/netmask info from user_vm table. This information is kept in nics table in 2.2.x
status 9374: resolved fixed
2011-04-11 18:11:36 -07:00
alena
aea0a7326a bug 9376: added missing constraints to vm_instance table
status 9376: resolved fixed
2011-04-11 18:11:24 -07:00
alena
407bd2ac16 bug 9348: added missing ALTER statement to 222-224 db upgrade script
status 9348: resolved fixed
2011-04-11 18:10:30 -07:00
Chiradeep Vittal
63ada2ef7e bug 9330: ensure that existing system vms are updated to new xenserver template 2011-04-11 15:47:02 -07:00
Chiradeep Vittal
c14be6915f bug 9330: add kvm / vmware builtin template definitions 2011-04-11 15:46:48 -07:00
Chiradeep Vittal
ae9180d33b bug 9330: add kvm / vmware system vm template definitions 2011-04-11 15:46:37 -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
kishan
782a22d95f Usage upgrade changes 2011-04-11 18:49:52 +05:30
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
Alex Huang
1bc498013e bug 9344: fixed problems with the template table 2011-04-05 18:33:38 -07:00
Kelven Yang
6143737ef6 2.2.4 to 2.2.5 upgrade sql for system vm pooling 2011-04-05 18:11:56 -07:00
keshav
8c344cb567 Changed insert to insert ignore. 2011-04-05 16:24:55 -07:00
Alex Huang
3d0c4ae937 get unittest to work temporarily 2011-04-05 15:53:33 -07:00
anthony
415b973b92 fixed db upgrade 2011-04-05 15:09:05 -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
alena
e0c4bb47d9 bug 9234: system network offerings are HA enabled
status 9234: resolved fixed

Conflicts:

	setup/db/db/schema-222to224.sql
2011-04-05 13:44:44 -07:00
anthony
8d954931ea Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss 2011-04-05 12:11:02 -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
8ebe8db39a bug 9326: put unique back into create-schema.sql 2011-04-05 12:01:30 -07:00
Alex Huang
c9d4e50b96 bug 9323: guid doesn't have to be NOT NULL 2011-04-05 11:23:31 -07:00
alena
dd162339dc bug 9325: DB upgrade - added missing constraints to ssh_keypair table
status 9325: resolved fixed
2011-04-05 11:22:12 -07:00
alena
914952cd86 bug 9325: DB upgrade - added missing constraints to ssh_keypair table
status 9325: resolved fixed
2011-04-05 11:18:46 -07:00