Commit Graph

197 Commits

Author SHA1 Message Date
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 3ea4b18311 bug 9638: fixed bunch of DB upgrade bugs
status 9638: resolved fixed
2011-04-28 18:18:56 -07:00
alena a76803f5e5 bug 9458: do searchIncludingRemoved when decrement resource count as corresponding domain might be removed already
status 9458: resolved fixed
2011-04-14 15:25:37 -07:00
alena 5de4f05a1c bug 9391: removed source_id, source_type from "volumes" table as we don't use them any more
status 9391: resolved fixed
2011-04-11 17:33:38 -07:00
alena 90f79a8211 bug 9398: removed resource_type from volumes table as we no longer use it. Corresponding db upgrade scripts are updated
status 9398: resolved fixed
2011-04-11 15:25:34 -07:00
alena 6bcf0dd51f bug 9396: removed status field from volumes table as this field is no longer used
status 9396: resolved fixed
2011-04-11 13:58:26 -07:00
alena 6bd5fa1f9c 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 12:21:18 -07:00
prachi 9f10d9957e 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:16:21 -07:00
Alex Huang cb323775ba bug 9326: put unique back into create-schema.sql 2011-04-05 12:01:50 -07:00
Alex Huang e4cffa7928 removed the DEFAULT 0 2011-04-05 10:16:56 -07:00
Alex Huang 04099a4950 bug 9311: changed instance_id to nic_id 2011-04-05 09:12:55 -07:00
Alex Huang b2cab48e0c bug 9308: changed instance_id to nic_id 2011-04-04 16:59:16 -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 2af46789cb bug 9192: multiple improvementes to listVms command.
1) No longer do multiple searches involving "domain" table; only one join with domain is being done.
2) Do join with domain table only when command is executed by domainAdmin
3) Added index for "path" field in "domain" table
4) No longer do joins with account table as account_id is already present in vm_instance table.
2011-03-29 19:18:30 -07:00
will 38e95455d1 rollbacked create-schema foreign key constraint until we can figure out a way to make sure server-setup.xml isn't broken by this for developers. 2011-03-29 17:23:18 -07:00
Alex Huang 6bd978abfe bug 9192: fixes the caches that are gone due to configuration server uses the same dao without cache 2011-03-29 11:31:59 -07:00
alena fdf0f589af bug 8902: added Removed field to "cluster" table
status 8902: resolved fixed
2011-03-28 10:50:09 -07:00
alena dee2e59fb3 bug 8798: delete zone is fixed
status 8798: resolved fixed
2011-03-24 13:32:31 -07:00
Kelven Yang bfc420f22e Fix sql syntax error, a coma is missing 2011-03-24 10:27:15 -07:00
prachi 923f562aa8 Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List  commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00
alena f84c81a47d bug 8533: all IP Address fields in DB have char(40) type
status 8533: resolved fixed
2011-03-22 14:06:14 -07:00
alena abb2e2b2ff bug 8831: partial checkin for Domain specific Networks (includes DB changes) 2011-03-21 15:05:07 -07:00
Alex Huang d3ecf719ce looks like everything is working except for snapshots 2011-03-18 09:14:05 -07:00
Chiradeep Vittal 8d791777db Introduce zone (datacenter) details 2011-03-15 15:44:36 -07:00
anthony b32e8f23a6 bug 8712: since we add multiple concurrent policy back in 2.2.3, we only support upgrade from 2.1.7 to 2.2.3, otherwise some policies will be removed silently
need test this upgarde
2011-03-08 17:10:27 -08:00
anthony 5b1a421e62 bug 8712: prepare from snapshot db migration 2011-03-08 17:10:27 -08:00
anthony 3537c7e1a0 fix schema 2011-02-28 18:05:44 -08:00
anthony cd27202a26 bug 8216: create volume from snapshot can take a disk_offering_id, if disk_offering_id is not specified, use the one from original volume
status 8216: resolved fixed
2011-02-28 16:28:41 -08:00
prachi 889827b63a Bug 7845 - Productize DeploymentPlanner
Bug 7723 - merge or re-write host tagging into master / 2.2
Bug 7627 - Need more logging for Allocators
Bug 8317 - Add better resource allocation failure messages

Changes for Deployment Planner to use host and storagePool allocators to find deployment destination.
Also has the changes for host tag feature.
Improved the logging for allocators.
2011-02-28 13:47:51 -08:00
anthony 1970161844 bug 8714: support paraleel recursive snapshot
snapshot doesn't depend on volume any more, volume can be removed even there are snapshots on this volume

status 8714: resolved fixed
2011-02-25 22:17:13 -08:00
Edison Su 8a40371288 refactor security group in advanced network mode: use direct tagged network instead of public network 2011-02-24 19:58:18 -05:00
alena 039b11b9ba 1) Added guestIpType to the network offering; create/listNetworkOffering apis got changed accordingly.
2) Set traffic Type to be Guest for Direct/Virtual non-system default network offerings. Use this guestIpType during the network creation/implementation
2011-02-24 15:36:01 -08:00
kishan 8eb665246e bug 7935: Included hypervisor type to vm usage records
status 7935: resolved fixed
2011-02-24 20:08:12 +05:30
kishan f138552f36 bug 8603: Included netwrok_id in network usage records
status 8603: resolved fixed
2011-02-24 15:31:59 +05:30
Edison Su adbd20ca5a bug 8655: add security group for direct tagged network 2011-02-23 15:53:14 -05:00
Alex Huang 2002abd7c3 fixed copy and paste errors 2011-02-22 19:33:25 -08:00
Alex Huang c22b37e402 latest work on db migration 2011-02-22 18:23:05 -08:00
alena cd90bc7166 bug 8412: allow to delete network when it has dhcp/domRs
status 8412: resolved fixed

1) Don't count domR/Dhcp nic in active nics.
2) Removed domR cleanup thread; Network shutdown thread would shutdown domR/dhcp when network has no active vms
2011-02-18 10:31:59 -08:00
abhishek 2275d8d833 bug 8452: introducing a state for domain; blocking creation of accounts/users whilst domain is in an inactive state 2011-02-17 15:17:45 -08:00
Kelven Yang 45eb1b4d3c Fix syntax error in create-schema.sql 2011-02-17 11:26:34 -08:00
Alex Huang 6b0d4947ed bug 8529: propagated to master. Added junit test support to ant 2011-02-16 17:40:58 -08:00
alena c11a9c18e2 bug 8381: disassociateIpAddress is async now 2011-02-15 12:24:18 -08:00
Kelven Yang d9d128ee9d Incremental refactoring - retire host_master table 2011-02-15 10:56:04 -08:00
alena d80caf24fd bug 8564: Changed implementation for static nat rules. Now we use separate interfaces instead of PortForwardingRules interfaces.
status 8564: resolved fixed
2011-02-15 10:45:28 -08:00
Alex Huang 7dd54f079b started vms with these latest 2011-02-11 17:03:04 -08:00
Alex Huang b0f0efa29b more changes to make it work better in a cluster 2011-02-11 17:03:04 -08:00
kishan 6e9ef0d988 2.2beta4 to GA db changes 2011-02-11 20:37:13 +05:30
alena 4054d7e2b5 Store ip address as String instead of Long in user_ip_address and port_forwarding_rules tables 2011-02-09 19:35:03 -08:00
kishan 77719be46a bug 8465: track network usage per router in user_statistics table
status 8465: resolved fixed
2011-02-09 18:38:41 +05:30
anthony e14b8311cc bug 7563: create snapshot in async create method
status 7563: resolved fixed
2011-02-04 19:20:47 -08:00