alena
5778204e54
Fixed Db upgrade from 2.1.9 to 2.2.2 which wasn't supported before.
2011-04-15 10:17:08 -07:00
alena
c2455017e0
Fixed logging for remote access vpn code
2011-04-15 09:58:48 -07:00
alena
234917780e
218-222 upgrade - no need to update user statistics with deviceId if account doesn't own any domRs
2011-04-15 09:45:19 -07:00
alena
ce984ce89c
bug 9453: Fixed PF rules upgrade.
...
status 9453: resolved fixed
1) Problem #1 was that in 2.1.x there was a bug when we didn't delete pf rules for expunged vms. These kind of rules will be ignored during the db upgrade
2) Problem #2 . We didn't trim the spaces for PF/LB ports in 2.1.x, and DB upgrade code was failing because of that.
2011-04-14 20:35:34 -07:00
alena
fba10b1cb8
bug 9461: don't update user_statistics with the network id if the domR is already expunged
...
status 9461: resolved fixed
2011-04-14 17:53:38 -07:00
alena
c3c80006ca
bug 9453: domain path is not unique value, removed the constraint added during 2.1.8-2.2.2 upgrade
2011-04-14 16:55:55 -07:00
Edison Su
8b9fc424d5
bug 8532,8755: don't create multiple HA work if there already has one of HAwork of this VM is created, but not finished
...
status 8532: resolved fixed
status 8755: resolved fixed
2011-04-14 16:55:06 -04: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
anthony
c6018bdc60
bug 9455: when host is disconnected, also remove entry in storage_pool_host_ref
...
status 9455: resolved fixed
2011-04-14 14:34:32 -07:00
alena
78aad72ffb
bug 9407: lock network when do deployDomR/deployDhcp to avoid 2 network elements start for the same network
...
status 9407: resolved fixed
2011-04-14 13:19:04 -07:00
anthony
21c936ab15
bug 9411:
...
1. adding storage pool fails, remove the entry in DB
2. in introduce SR, create pbd for master host
status 9411: resolved fixed
2011-04-14 11:16:45 -07:00
root
2ab9238ae7
Bug 9440: we specify the wrong disk size when attaching storage device with custom size offering
...
wrong usage of volume size which is in bytes for setting the size of disk offering which in MB
2011-04-14 21:25:23 +05:30
Alex Huang
7b0f95a466
bug 9422: added rows in op_networks table to correspond to the rows in networks table
2011-04-14 03:53:51 -07:00
Alex Huang
256517f1c3
bug 9422: added rows in op_networks table to correspond to the rows in networks table
2011-04-14 03:17:55 -07:00
anthony
3f4c5225dd
fixed transaction usage
2011-04-13 19:35:13 -07:00
prachi
fede78bea8
More changes for Bug 9438 - [Cloud Stack Upgrade - 2.1.8 to 2.2.4] Secondary Storage VM could not start after stopping it.
...
Added log statement to indicate that a pool is not chosen because the vm template has no entry in template_host_ref table.
2011-04-13 18:09:28 -07:00
alena
9afee0bb46
bug 9433: update network_id (if 0 or NULL) in user_statistics table
...
status 9433: resolved fixed
2011-04-13 17:48:49 -07:00
alena
7acba22063
bug 9436: include page/pageSize/keyword to api xml doc for each list* command
...
status 9436: resolved fixed
2011-04-13 16:19:44 -07:00
anthony
8d36af0033
fixed NPE
2011-04-13 16:03:41 -07:00
alena
98be7ea0f7
bug 9425: fixed detached volume removal.
...
status 9425: resolved fixed
2011-04-13 15:52:55 -07:00
alena
6468b66317
bug 9420: update existing user_statistics records with device_id and device_type
...
status 9420: resolved fixed
2011-04-13 14:31:33 -07:00
prachi
5a73309e75
Bug 9387: Recreate system vms if template id changed....
...
Changes:
While starting a System VM:
- We check, incase the ROOT volume is READY, if the templateID of the volume matches the SystemVM's template.
- If it does not match, we update the volumes' templateId and ask deployment planner to reassign a pool to this volume even if it is READY.
In general:
- If a root volume is READY, we remove its entry from the deploydestination before calling storagemanager :: prepare()
- StorageManager creates a volume if a pool is assigned to it in deploydestination passed to it.
- If a volume has no pool assigned to it in deploydestination, it means the volume is ready and has a pool already allocated to it.
2011-04-13 13:54:08 -07:00
anthony
e001436d94
fixed NPE when delete storagepool
2011-04-13 11:02:12 -07:00
Murali Reddy
3a1fe780cf
Bug 9273 : resource counts going -ve
...
Fixing resource count getting -ve assert. resource count should not be decremented for system VM's.
2011-04-13 17:35:09 +05:30
prachi
edda8e8032
More changes for Bug 9387:
...
- Update system vm_instance's template_id if it does not match the system vm template.
- Use _templateDao.findSystemVMTemplate to find the latest system vm template.
2011-04-12 18:31:46 -07:00
prachi
e2451f6b15
More changes for 9387:
...
Checks in StorageManagerImpl :: prepare() method to avoid NPE's if DeployDestination passed in is null.
2011-04-12 18:31:37 -07:00
prachi
fc35aed2c9
Bug 9387 - Recreate system vms if template id changed...
...
Changes:
- Planner must reassign the storage pool if the template id for system vms has changed. StorageManager must then recreate the volume if the volume has been
reassigned. This is needed to do automatic update of the system template.
2011-04-12 18:31:27 -07:00
Chiradeep Vittal
fe4d5845c2
bug 9330: ensure that console proxies are always created from the same hypervisor type
2011-04-12 15:15:01 -07:00
Chiradeep Vittal
a9f88c5b0c
bug 9330: discover system vm template for a given hypervisor type
2011-04-12 14:49:41 -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
anthony
bd6661c3d2
bug 9392: don't lock domr entry, otherwise updating domr state fails
...
status 9392: resolved fixed
2011-04-11 16:08:05 -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
Chiradeep Vittal
a8487454e8
bug 9330: add kvm / vmware system vm template definitions
2011-04-11 14:35:27 -07:00
prachi
04b9f7c7a5
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:30:35 -07:00
alena
93429a16d8
bug 9381: set accountId=domainId=1 for system vms in vm_instance table
...
status 9381: resolved fixed
2011-04-11 10:10:05 -07:00
alena
6f0da71c1a
bug 9380: db upgrade - use the same case for 'hypervisor_type' in 'vm_instance' table
...
status 9380: resolved fixed
2011-04-11 09:59:23 -07:00
kishan
b5bf6e9bee
Usage upgrade changes
2011-04-11 18:54:10 +05:30
prachi
65d589da73
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.
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
2011-04-08 15:20:47 -07:00
Murali Reddy
95cd5b6f3b
bug 9273: [Stress Test] 'Count' in resource_count table has negative values
...
changing destroy volume logic to decrement volume resource count only for user vm's
2011-04-09 02:01:54 +05:30
Murali Reddy
55caa1d60a
bug 9312: deleteAccount API does not decrement User VM resource count when VM is destroyed
...
status 9312: closed fixed
Decrementing the resource count when we expunge VM.
2011-04-08 17:22:13 +05:30
Murali Reddy
ba7abb4da8
bug 9129:can't create vm if an instance limit is set at root domain
2011-04-08 07:07:50 +05:30
Murali Reddy
4822fcae13
Bug 9273 - Count' in resource_count table has negative values
...
Resolved Fixed
2011-04-06 18:18:38 +05:30
Kelven Yang
623792dfaf
bug 9328: always add explict route to domR
2011-04-05 17:29:52 -07:00
prachi
5fbf83c24f
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:36:00 -07:00
anthony
5353e4abac
hostid and poolid may overlap, fixed deletePoolStats
2011-04-05 16:01:30 -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
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
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
Alex Huang
b2cab48e0c
bug 9308: changed instance_id to nic_id
2011-04-04 16:59:16 -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
Alex Huang
e8720cc1f7
bug 9300: changed the network id to management from storage for ssvm
2011-04-04 13:53:51 -07:00
Alex Huang
fc7f526090
bug 9282: changed the broadcast domain type for control and public network
2011-04-04 09:56:56 -07:00
Alex Huang
5a6d3dc55c
bug 9280: added gateway and cidr for control network
2011-04-04 09:50:16 -07:00
kishan
4f97d4652d
Skip event migration when usage db doesn't exist
2011-04-04 18:31:48 +05:30
alena
29bfde9da4
Revert "bug 8898: allow service offering upgrade for Running vm"
...
This reverts commit 7668e1878a .
2011-04-01 18:16:14 -07:00
Alex Huang
8b34065623
bug 9259: added upgrade test suite
2011-04-01 10:32:23 -07:00
kishan
7b55b41556
bug 9239: Ignore optional zone Id for Snapshot delete events
...
status 9239: resolved fixed
2011-04-01 15:15:00 +05:30
kishan
7f08061e72
Added missing semi-colon and corrected usage unit test error messages
2011-04-01 12:06:52 +05:30
prachi
492dd78f1c
Bug 9180 - Default local SR on XenServer won't be used
...
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:11:11 -07:00
anthony
2c85092316
bug 9161: better fix
2011-03-31 18:24:57 -07:00
anthony
afd7adc775
bug 9161: findByOutstandingWork means find all works with step not equal Done
2011-03-31 18:03:59 -07:00
alena
703537d222
bug 9248: generate events on service/diskOffering create/update/delete
...
status 9248: resolved fixed
2011-03-31 16:30:11 -07:00
alena
7e7c647dea
bug 9245: save ownerAccountId (instead of callerAccountId) to account_id field in async_job table. We already save caller info to user_id field
...
status 9245: resolved fixed
2011-03-31 15:31:27 -07:00
anthony
db351f8cba
bug 9249: use interval type , not snapshot type
...
status 9249: resolved fixed
2011-03-31 13:55:34 -07:00
alena
6d7f3da46a
For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks.
2011-03-30 14:53:04 -07:00
alena
a1a2717811
bug 9192: don't query for securityGroups when Vm's zone is security group disabled.
...
status 9192: resolved fixed
2011-03-30 09:40:45 -07:00
kishan
e276d3b7fb
bug 7631: Convert unprocessed events to usage_events
...
status 7631: resolved fixed
2011-03-30 11:19:04 +05:30
alena
c1db5aea31
Fixed NPE in listVirtualMachines command - when search for ROOT volume's storagePool type, assume that corresponding storagePool might be removed.
2011-03-29 20:21:26 -07:00
alena
aab78874c7
bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
...
status 9201: resolved fixed
2011-03-29 19:21:25 -07:00
alena
f04f2ab10c
bug 9192: More improvements to listVm performance - cache dataCenter/serviceOffering/Network/Template/Iso information on Api level
...
status 9192: resolved fixed
2011-03-29 19:18:30 -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
Edison Su
a7953c1e7a
bug 9205: resolved fixed
...
status 9205: fix NPE in usageEvent
2011-03-29 14:57:16 -04:00
anthony
436dccb6d7
bug 9189: fixed it in master, modifystoragepool doesn't try to create/import any more, will port it to 2.1.x
2011-03-28 19:11:20 -07:00
Kelven Yang
2e284e1f75
Add system VM load scaner
2011-03-28 18:44:48 -07:00
will
a959726f38
bug 9200: Fixed issue when attempting to change the service offering of a VM who's current service offering has been deleted.
2011-03-28 18:15:13 -07:00
alena
f8a1278a80
Don't return rate_limit for the network offering when the limit value is NULL
2011-03-28 17:24:17 -07:00
alena
65a083b1db
bug 8831: no need for "isdedicatedtodomain" and "dedicateddomainid" parameters. If 1) network is private, return account/domainId 2)If network is shared for specific domain, return domainId only 3) If network is shared in zone, don't return account/domainId
...
status 8831: resolved fixed
2011-03-28 16:54:09 -07:00
alena
d3357c6691
Set network limit to be 0 by default for Control/Management/Storage/Public networks (these networks are used by SSVM/ConsoleProxy/domR)
2011-03-28 15:48:11 -07:00
alena
5dec433529
bug 9188: remove all lb-vm DB mapping that are set with Revoke status after the LB rule is set on the backend
...
status 9188: resolved fixed
2011-03-28 15:48:11 -07:00
Kelven Yang
fa0dd8a228
Allow cluster management confliction detection to handle quick manageemnt server restarts
2011-03-28 15:14:51 -07:00
anthony
045b6ac319
bug 9184: allow detach a volume when the VM is in Destroyed status
...
status 9184: resolved fixed
2011-03-28 14:46:54 -07:00
anthony
8712334ae2
bug 9161:
...
add more log
2011-03-28 14:46:54 -07:00
alena
5d195b35c2
bug 9186: removeFromLoadBalancer - set firewall rule state to Add when the last Vm-LB mapping is removed
...
status 9186: resolved fixed
2011-03-28 13:20:05 -07:00
alena
fdf0f589af
bug 8902: added Removed field to "cluster" table
...
status 8902: resolved fixed
2011-03-28 10:50:09 -07:00
Alex Huang
b2eda8c71b
Changes to the planners
2011-03-28 09:48:33 -07:00
alena
8c61e10c08
bug 9158: introduced new parameter "storageId" to listVirtualMachines api.
...
status 9158: resolved fixed
1) Works for admins only
2) When specified, list only vms that have volumes on this storage
2011-03-25 18:26:59 -07:00
nit
ded1184548
bug 8710: 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-03-25 18:04:09 -07:00
alena
bb895a7b75
bug 8103: don't allow to remove host if it has Running/Stopping/Starting vms
...
status 8103: resolved fixed
2011-03-25 17:29:54 -07:00
alena
a8cc285ca9
bug 8934: set correct guest_type for default Xen Centos template. DB upgrade script is also updated.
...
status 8934: resolved fixed
2011-03-25 16:05:06 -07:00
alena
1932652125
bug 5912: Added events and logging for securityGroup create/delete
...
status 5912: resolved fixed
2011-03-25 15:23:18 -07:00
alena
92f01ba143
2.1.x to 2.2.2 upgrade for Domain level vlans
2011-03-25 15:23:18 -07:00
Kelven Yang
359dc18992
Fix possible duplicated JMX registration issue
2011-03-25 15:16:41 -07:00
Alex Huang
9d158dc060
Removed the async create status for volume now that our customers don't use it
2011-03-24 20:04:23 -07:00
alena
304d1cbb55
2.1.x to 2.2.2 DB ugrade - convert account specific vlans to account specific networks
2011-03-24 19:12:33 -07:00
alena
745aa1d66a
bug 8448: generate Alert when vm is scheduled for HA
...
status 8448: resolved fixed
2011-03-24 17:37:18 -07:00
alena
0c9e80eeab
bug 8976: don't allow to delete pod when it has clusters
...
status 8976: resolved fixed
2011-03-24 17:10:01 -07:00