5616 Commits

Author SHA1 Message Date
Kelven Yang
160b2e1114 Finalize custom certficate support. hook with UI 2011-04-22 13:45:09 -07:00
alena
7255d68875 HA: no need to investigate why vm was stopped on host when host is being Dicsonnected with investigate=false option 2011-04-22 13:38:25 -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
prachi
09b4b06b63 Bug 9447 - ModifySshKeyCommand contents are logged...
Since private and public keys are logged, this is a Security concern

Changes: Added capability to 'Command' instances to support excluding certain fields from getting logged using GSON @Expose annotation.
2011-04-22 10:43:26 -07:00
Kelven Yang
e69774e13a Add console proxy management state, support certificate upload, all done except UI 2011-04-21 18:46:37 -07:00
alena
1a6d78eae4 Code cleanup. No need to declare runtime exceptions (CloudRuntimeException, InvalidParameterException, PermissionDenied exceptions) 2011-04-21 16:26:53 -07:00
alena
b83456f895 bug 9504: don't send DHCP entry command for Destroyed vm
status 9504: resolved fixed
2011-04-21 14:26:42 -07:00
alena
d7ec734b01 bug 9481: deployVm with Guest Virtual network - throw an exception when fail to acquire guest Ip address
status 9481: resolved fixed
2011-04-21 13:59:07 -07:00
alena
c844655825 bug 9488: throw InsufficientVirtualNetworkCapcityException when fail to allocate guest vnet as a part of network implement() call
status 9488: resolved fixed
2011-04-21 13:59:06 -07:00
alena
3d33fd7f92 deleteNetwork: return false when fail to cleanup network resources (LB/PF/StaticNat rules) 2011-04-21 13:59:06 -07:00
Murali Reddy
435c20c0cc Bug 9273: resource cont going -ve
adding addtional check that ensure we decrease the count in advanceStart only on new vm creation.
2011-04-22 01:19:23 +05:30
Frank
3b75abbde7 Fix DomR reply to windows's periodical DNS requirement 2011-04-21 11:23:23 -07:00
nit
8cbdfe07c9 bug 8803: Allow to add an ISO with URL that doesn't end with ".iso". The check checks that the url path should end with an iso
status 8803: resolved fixed
2011-04-21 16:37:53 +05:30
nit
f55e83f607 List Iso/Templates - Cleaning the code for access rights using the centralized acl layer 2011-04-21 13:40:14 +05:30
Abhinandan Prateek
ea14ff5f6c bug 9470: line breaks not escaped for events
status: resolved fixed
2011-04-21 12:20:50 +05:30
alena
22ee7117f5 bug 9521: fixed NPE in finalizeCommandsOnStart() method by adding vm's nic to vm profile during the vm to vmProfile conversion.
status 9521: resolved fixed
Conflicts:

	server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
	server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-04-20 16:16:01 -07:00
alena
f881d394e2 bug 9415: deleteHost - cleanup vms running on the host to be removed
status 9415: resolved fixed
2011-04-20 15:50:10 -07:00
Jessica Tomechak
15e14fbf0a bug 9386: add version number to doc 2011-04-20 13:46:51 -07:00
Jessica Tomechak
654aeebcd0 bug 9386, also 9144, 9149. Doc fixes for API page limit, account resource limit config, open port for MS/vCenter/system VM/ESXi host communications. 2011-04-20 11:50:27 -07:00
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