Commit Graph

5527 Commits

Author SHA1 Message Date
alena 04a344ce2a Fixed bunch of DB upgrade bugs related with the fact that DB was manually upated in 2.1.x setup (some records were deleted from the DB) 2011-05-04 17:34:36 -07:00
alena 40bd77525f bug 9734: update op_ha_work table in mysql file instead of java code
status 9734: resolved fixed
2011-05-04 15:34:50 -07:00
Edison Su 3732f9db12 bug 9735: augeas <=0.7.4
status 9735: resovled fixed
2011-05-04 13:50:44 -04:00
alena e7033702be bug 9734: remove records having non-existing hostId from op_ha_work table
status 9734: resolved fixed
2011-05-04 13:42:46 -07:00
alena bac0fdb87f DB upgrade: respect domain hierarchy when update resource_count for domain during the upgrade 2011-05-04 11:56:07 -07:00
alena 1ef546e588 bug 9564: 1) For all list commands set pageSize() to default.page.size if not specified 2) When pageSize is specified in the request, and it's more than default.page.size - throw an exception
status 9564: resolved fixed

Conflicts:

	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/server/ManagementServer.java
	server/src/com/cloud/server/ManagementServerImpl.java
2011-05-04 10:22:29 -07:00
Murali Reddy 9a983d3bd8 bug 9720: 2.1.x to 2.2.x upgrade: need to create Domain level records in resource_count table
status 9720: resolved fixed
During DB upgrade evalute per domain resource counts and populate resource_count table
2011-05-04 19:28:27 +05:30
alena 85541705b6 bug 9722: db upgrade - when upgrade user_statistics, skip ExternalFirewall/ExternalLb records
status 9722: resolved fixed
2011-05-03 18:09:42 -07:00
alena 8f198b69f8 bug 9693: generate usage event when release Direct ip address.
status 9693: resolved fixed

2 more fixes with this commit:

* bug 9692 is fixed - we don't increment resource count when Direct ip address is allocated.
* as a part of 2.2.2->2.2.4 upgrade resource_count for public_ip records is recalculated - count only Virtual Ip addresses
2011-05-03 17:33:47 -07:00
Alex Huang 5acf721c80 bug 9615: Part of the HA cleanup 2011-05-03 16:34:24 -07:00
Chiradeep Vittal 0d00f8dd76 bug 9689: handle old style vm names 2011-05-03 14:58:29 -07:00
kishan 8c87c48486 bug 9678: update user statistics in cloud_usage. Send network usage command to routers of virtual network only
status 9678: resolved fixed
2011-05-04 02:37:07 +05:30
alena c1cb1af320 bug 9690: DB upgrade - dropped unused keys
status 9690: resolved fixed
2011-05-03 13:25:43 -07:00
alena 6502171f39 bug 9663: do account permission check against the volume when create snapshot
status 9663: resolved fixed
2011-05-03 11:33:35 -07:00
David Nalley 64a7f72dc0 bug:9702 removing duplicate scripts/vm/hypervisor/kvm/pingtest.sh
correcting path for sshkey for in scripts/pingtest.sh
2011-05-03 14:12:37 -04:00
alena 99badfd54c Fixed NPE in listNetworks 2011-05-03 10:21:44 -07:00
alena e3ed681be6 listNetworks: allow seeing Guest system network in Basic zone 2011-05-03 10:21:44 -07:00
alena 3e6cabc31b Fixed the bug in listNetworks when isSystem parameter was ignored if it was specified along with account/domainId parameter 2011-05-03 10:21:44 -07:00
kishan 3daa9b0137 bug 9686,9676,9677: Create usage events for existing resources for port forwarding, load balancer and network offering usage
status 9686,9676,9677: resolved fixed
2011-05-03 20:03:29 +05:30
nit 76d48485a5 bug 9664: username parameter for API listuser should search for exact string
status 9664: resolved fixed
2011-05-03 13:07:21 +05:30
Jessica Wang 2bb3d0d695 bug 9687: CloudStack UI - Instance page - add "Security Group" tab. 2011-05-02 20:01:56 -07:00
alena 96043d4326 bug 9688: remove orphaned lb/vm mappings as a part of db upgrade (there was a bug in 2.1.x when the LB rule was removed, but mapping was left in the DB)
status 9688: resolved fixed

To verify that the rule was removed:
* make sure that there is no record with lb id in load_balancer table
* verify that lb.delete event was generated for this rule
2011-05-02 18:52:50 -07:00
alena 5b28d4bf10 bug 9683: DB upgrade - generate usage_event for source nat ip addresses
status 9683: resolved fixed
2011-05-02 15:54:03 -07:00
prachi d8a68a1083 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:33:10 -07:00
alena 3a5b185972 bug 9675: Usage DB upgrade - set missing fields for snapshot.create/snapshot.delete events
status 9675: resolved fixed
2011-05-02 15:17:00 -07:00
alena 14e857a978 bug 9674: Usage db upgrade - set resource_name for volume.create/volume.delete usage events
status 9674: resolved fixed
2011-05-02 14:29:54 -07:00
Alex Huang 3d963cac1b revert changes. Can't help direct SG case because it breaks VM stopping after upgrade. 2011-05-02 14:26:29 -07:00
Alex Huang cbc26756d8 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:26:29 -07:00
alena 175fc53b53 bug 9672: usage db upgrade - set resource_id for NET.IPASSIGN/RELEASE events
status 9672: resolved fixed
2011-05-02 14:15:36 -07:00
alena a225eb3c0e bug 9682: DB upgrade - create vm.destroy event in usage_events table
status 9682: resolved fixed
2011-05-02 13:54:33 -07:00
Edison Su cc485c021c fix vm data permission issue, by ssh to domr, chmod to 644 2011-05-02 11:01:52 -04:00
alena d8a4a5be52 bug 9658: added missing indexes to 2.1.x-2.2.x upgrade files
status 9658: resolved fixed
2011-05-01 12:50:26 -07:00
alena 36e4c8625e bug 9654: db upgrade - set is_security_group_enabled to true for Direct Guest network in Basic zone
status 9654: resolved fixed
2011-05-01 11:06:43 -07:00
anthony ad981cb245 misuse instanceName and name, which causes vm sync behavior weirdly 2011-04-29 19:01:21 -07:00
Alex Huang 665b60fcde bug 9649: fixed up the instance names to be the same 2011-04-29 17:36:14 -07:00
alena b808604dde bug 9623: set ha_enable to false for consoleProxy vms and service_offering.
status 9623: resolved fixed

Also set ram_size to 1024 for console proxy offering during the upgrade
2011-04-29 11:38:53 -07:00
Alex Huang 204370fa8b bug 9643: connect pool is only for shared access 2011-04-29 11:05:56 -07:00
Alex Huang 124274ec80 Removed a potentially dangerous 2011-04-29 11:05:55 -07:00
alena d4dc90d9fc Fixed a bug in XmlApiDocReader 2011-04-29 10:16:28 -07:00
Kelven Yang ed76394b8e bug 9519 : add index to avoid table locking 2011-04-28 18:41:01 -07:00
alena 3ea4b18311 bug 9638: fixed bunch of DB upgrade bugs
status 9638: resolved fixed
2011-04-28 18:18:56 -07:00
alena 5ad7730e06 Modify keys for security groups in java code instead of sql file (need to check if the key exists before dropping it) 2011-04-28 18:18:56 -07:00
will 1c2935a5ed bug 8816: Changed private ip address to link local address when displaying virtual routers.
merge from master
2011-04-28 18:16:58 -07:00
keshav 14d280634e Added a check for duplicate public networks. 2011-04-28 16:06:17 -07:00
Alex Huang b273d74c35 bug 9456: added the host id that was already tried to avoid list. Added more debug logs in case that condition happens. 2011-04-28 14:43:44 -07:00
Alex Huang a1fa03ab4b bug 9633: removed schema.level
bug 9632: removed direct.attach.security.groups.enabled
2011-04-28 13:49:52 -07:00
alena 71b264322d 1) Don't drop netapp tables during the upgrade.
2) SecurityGroups DB upgrade - drop constraints before chaning the name for the network_group table
2011-04-28 13:29:43 -07:00
Frank 510b7ab803 Bug 9635 - set java heap size to 1 GB by defaul
Resolved: Fixed
2011-04-28 13:30:31 -07:00
alena 9b799ae4b3 More logging to consoleProxy start command 2011-04-28 01:17:03 -07:00
alena bd0259c59f bug 9621: set addressFormat during NicProfile creation
status 9621: resolved fixed
2011-04-27 23:25:41 -07:00