5596 Commits

Author SHA1 Message Date
alena
63cd66beb0 Fixed the bug in listNetworks when isSystem parameter was ignored if it was specified along with account/domainId parameter 2011-04-19 18:30:55 -07:00
Kelven Yang
7103e1c9a7 global replacement to avoid using getClass().getName() for unique names 2011-04-19 17:26:41 -07:00
alena
c7e120a72e Transform InvalidParameterValueException and PermissionDeniedException to proper API exceptions 2011-04-19 17:07:05 -07:00
Kelven Yang
6ed18b5583 Add keystore management and related JUNIT test case 2011-04-19 16:20:06 -07:00
alena
98baa7392e bug 9383: createStaticNat rule - allow opening the same port for tcp/udp traffic
status 9383: resolved fixed
2011-04-18 17:55:41 -07:00
alena
4e5b6c902a bug 9498: allow zone deletion when it has pods having not NULL removed field
status 9498: resolved fixed
2011-04-18 17:30:45 -07:00
alena
7d0528d693 bug 9493: fixed the bug in Basic zone when nic_count was updated incorrectly due to multiple domRs per network
status 9493: resolved fixed
2011-04-18 17:00:05 -07:00
alena
996d0edbc9 Throw server api exception with correct error code 2011-04-18 16:59:55 -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
57341081dc Added more logging to DB upgrade code 2011-04-18 16:59:33 -07:00
Kelven Yang
565dfb9809 Add java keystore helper class, prepare for dynamically generating keystore for SSL use 2011-04-18 11:08:07 -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
Sheng Yang
227b03fd93 bug 4387: Add maximum limit to the packet, prevent OOME
The OOME is due to when server reading the data, it would try to adjust the
reading buffer size according to the "packet length" it read. But if the "packet
length" is some random numbers, server would still try to allocate a part of
very big memory for the reading buffer, result in OOM.

This patch add a 64k limit to sending/receiving the packet. It's the maximum
length one IP datagram can support, and we don't think the request can exceed
this limit. Even if exceed the limit in normal condition, we would aware of it
due to the exception.

Solution has been verified using wget and telnet.

status 4387: resolved fixed
2011-04-15 15:28:43 -07:00
abhishek
7adb5c71e5 bug 9175: fixing the cpu util being over 100% on the dashboard
status 9175: resolved fixed
2011-04-15 14:54:21 -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
5d6e2871ad bug 9475: don't update vlan in "networks" tab for non-implemented guest networks
status 9475: resolved fixed
2011-04-15 13:42:50 -07:00
anthony
054f6b0199 bug 9472: when get vnc port for a vm, check if the port is really used by this vm for security
status 9472: resolved fixed
2011-04-15 12:47: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
55627a91d2 Fixed Db upgrade from 2.1.9 to 2.2.2 which wasn't supported before. 2011-04-15 10:19:56 -07:00
alena
51c837fc66 Fixed logging for remote access vpn code 2011-04-15 09:57:56 -07:00
alena
fa3b147853 218-222 upgrade - no need to update user statistics with deviceId if account doesn't own any domRs 2011-04-15 09:49:00 -07:00
Abhinandan Prateek
efa0417881 bug 5242: adding a host does not return useful error
status 5242: closed fixed
2011-04-15 17:28:46 +05:30
nit
8c5c58dc35 bug 9059: Host Details would account for Stopped VM's as well - basically they will take into account the reserved_capacity from op_host_Capacity table
status 9059: resolved fixed
2011-04-15 17:05:01 +05:30
nit
1d55d2fc05 bug 8703: delete op_host_capacity entries for host when host is successfully deleted.
status 8703: resolved fixed
2011-04-15 15:37:55 +05:30
nit
8567935561 bug 9221: Parse storage.overprovisioning.factor as a float rather than as an int.
Status 9221: resolved fixed
2011-04-15 13:46:51 +05:30
alena
ce37212610 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:39:43 -07:00
anthony
2a68def576 on reconnect, heartbeatfile is cleared , MS needs to fill heartbeatfile in ModifyStoragePoolCommand 2011-04-14 20:40:12 -07:00
anthony
af68342982 don't need to remove heartbeat tag when reconnect, it breaks HA , because when host reconnects, it tries to create heartbeat, but at this time, master may be able to access storage pool 2011-04-14 20:40:02 -07:00
Jessica Tomechak
ab720be9c8 Updated files with doc fixes still in review. 2011-04-14 18:31:33 -07:00
Jessica Tomechak
f110931247 bug 9313: clarified ESX pod scalability. Also bug 9145 2011-04-14 18:31:32 -07:00
alena
cdae8b091d 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:59:22 -07:00
Edison Su
d6b5acb852 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 17:46:54 -04:00
Edison Su
d8ee7d9fc3 if storage network disconnected, reboot the host 2011-04-14 17:46:54 -04:00
will
24737154b7 bug 9426: Deleting an ISO will no longer cause the UI to continue to poll for download process 2011-04-14 17:36:38 -07:00
will
7ec80d8b61 bug 9426: Deleting a template will no longer cause UI to continue to track download progress resulting in errors appearing. 2011-04-14 17:30:32 -07:00
will
db40e32095 bug 9435: decoded text for disk offering. In fact, I added it globally so all text calling the fromdb() would be correctedly decoded. 2011-04-14 17:30:30 -07:00
Jessica Wang
07f3d2b31b ISO page - (1) stop timer when ISO is in error state. (2) Stop timer when ISO is deleted. 2011-04-14 17:13:25 -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
Jessica Wang
24e1553399 Template page - (1) stop timer when template is in error state. (2) Stop timer when template is deleted. 2011-04-14 16:58:05 -07:00
alena
f830b8cd70 Removed trailing spaces from Api doc for createPortForwardingRule command 2011-04-14 16:14:39 -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
anthony
86f32e4735 bug 9455: when host is disconnected, also remove entry in storage_pool_host_ref
status 9455: resolved fixed
2011-04-14 14:31:16 -07:00
Nikita
8d7131d9fb bug 9424: has been resolved 2011-04-14 14:02:56 -07:00
alena
7615ded08f bug 9407: lock network when do deployDomR/deployDhcp to avoid 2 network elements start for the same network
status 9407: resolved fixed

Conflicts:

	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-04-14 13:35:02 -07:00
prachi
0fa06646ba Bug 9310 - HostCapacityChecker thread does not cleanup reserved capacity for hosts that are not in 'Up' state
List all 'Routing' hosts irrespective of the State.
2011-04-14 13:24:14 -07:00
Frank
92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
anthony
60768d0014 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:17:24 -07:00
Murali Reddy
9dddeaa5a5 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
pushing 2.2.4 fix to master
2011-04-14 21:16:08 +05:30