Commit Graph

4865 Commits

Author SHA1 Message Date
Kelven Yang cf67c361ec bug 14618: Protect servlet container from shutting down on unexpected runtime exceptions
Reviewed-By: Kelven
2012-04-05 15:02:43 -07:00
Kelven Yang cc0ebc9739 Bug 14301: Perform socket-level only management server pings
Reviewed-By: kelven
2012-04-05 15:02:30 -07:00
Alena Prokharchyk 8ef2303c13 Fixed unittest 2012-04-04 16:12:16 -07:00
Alena Prokharchyk 07778f8db3 Code cleanup for createVlanRange api 2012-04-04 15:02:51 -07:00
Alena Prokharchyk c31a6846ad bug 14589: don't accept empty username/firstname/lastname in update/createUser apis 2012-04-04 12:54:52 -07:00
Alena Prokharchyk 0bd655f79b bug 14539: 1) introduced 2 new config parameters defining default offerings for ssvm and cpvm - consoleproxy.service.offering and secstorage.service.offering
2) Added new api - changeServiceForSystemVm - to support service offering upgrade for system vms
3) Removed global config parameters that are not in use anymore: consoleproxy.ram.size, consoleproxy.cpu.mhz, secstorage.vm.ram.size, secstorage.vm.cpu.mhz
2012-04-03 10:51:35 -07:00
frank 72d284de7d Switch to Apache license 2012-04-03 04:54:14 -07:00
Alena Prokharchyk 559dc76fdd bug 14567: put db entry insertion in try/catch block and fail gracefully when the insertion fails (can happen when 2 MS try to insert the same entry)
status 14567: resolved fixed
2012-04-02 14:21:16 -07:00
Kelven Yang 5119b547c8 bug 14564: Upon management server startup, for detected inactive management server (based on timestamp), perform ping-test before we really mark it as down
Reviewed-By: kelven
2012-03-30 16:44:54 -07:00
Alena Prokharchyk 8fa14c7200 bug 14559: podId is required parameter in addCluster api
status 14559: resolved fixed

Conflicts:

	server/src/com/cloud/resource/ResourceManagerImpl.java
2012-03-30 10:38:48 -07:00
Kelven Yang 5dc08bce44 Bug 14551: add top-level catch clause to protect task/thread from stalling
Reviewed-By: Kelven
2012-03-29 18:24:51 -07:00
prachi 399cc04163 Bug 14536 - DB exception while trying to delete physical network
Reviewed-By: Sheng Yang

Changes:
Added proper cleanup for virtual router elements.
2012-03-29 12:38:13 -07:00
prachi 2b6712b7a8 Bug 14536 - DB exception while trying to delete physical network
Reviewed-By: Sheng Yang

Changes:
Added 'removed' column to physical_network_service_providers to avoid the Foreign Key constraint error.

Conflicts:

	setup/db/db/schema-30to301.sql
2012-03-29 10:08:47 -07:00
frank 14f2ee35b0 change a comment in ApiResponseGsonHelper.java
reviewed-by: edison
2012-03-28 16:16:51 -07:00
Kelven Yang 32ce95979b bug 14301: suppress expected exceptions from showing annoying stack dump, the message will be logged at TRACE level.
Reviewed-By: Kelven
2012-03-28 15:44:46 -07:00
Alena Prokharchyk dcf299c26f bug 14292: don't try to reboot vm as part of resetVmPassword if the vm is in Stopped state
status 14292: resolved fixed
2012-03-28 13:51:00 -07:00
Alena Prokharchyk 94986f74f9 bug 14444: specifyVlan should always be false for the network offering of type Isolated supporting sourceNat service
status 14444: resolved fixed
2012-03-28 13:51:00 -07:00
Alena Prokharchyk 77a60597f2 bug 14465: throw exception when try to send email invitation while smtp session wasn't configured
status 14465: resolved fixed
2012-03-28 10:07:10 -07:00
kishan 8a794c1276 Added since version to API response docs
Reviewed-By: Nitin
2012-03-28 14:35:13 +05:30
kishan 23f87663e4 bug 14512: Create user_stats entry for router while persisting routerVO
status 14512: resolved fixed
reviewed-by: Nitin
2012-03-27 19:09:55 +05:30
Kelven Yang 906c979de6 bug 14301:
1) Support HTTP keep-alive in clustering communication channel
2) Increase concurrency level for clustering message delivery

Reviewed-By: Kelven (with unit test)
2012-03-26 23:13:08 -07:00
Kelven Yang 6ebf1cdfbb bug 14301:
1) Drop synchronized call semantic for ClusterManagerImpl.broadcast()
2) Have no choice now but to use an unbound thread pool to notify upper layer. This is to prevent thread starvation when we have cross-management server waitings.

Reviewed-By: Kelven(with unit test)
2012-03-26 17:54:02 -07:00
Kelven Yang b14b35d5f9 bug 14301: fix regressions caused by new clustering transport. Correct usage of HttpClient to avoid socket staying in CLOSE_WAIT state for too long. Reviewed-By: Kelven 2012-03-26 17:54:01 -07:00
Kelven Yang d9a439a513 bug 14301: Decouple synchronized crosss management server call with clustering transport, remove obsolete code. Reviewed-by: Kelven
Conflicts:

	server/src/com/cloud/cluster/ClusterServiceServletImpl.java
2012-03-26 17:54:00 -07:00
Kelven Yang 5bdc9da699 bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven
Conflicts:

	server/src/com/cloud/cluster/ClusterServiceServletImpl.java
	server/src/com/cloud/cluster/DummyClusterManagerImpl.java
2012-03-26 17:53:59 -07:00
Kelven Yang a0c4095601 bug 14301: Decouple synchronized crosss management server call with clustering transport, remove obsolete code. Reviewed-by: Kelven 2012-03-26 17:53:58 -07:00
Kelven Yang 040de04397 bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven 2012-03-26 17:53:57 -07:00
prachi e4de342e0d Bug 14482 - When user tries to delete an acquired Ip address ,right after this is successful, UI calls listRemoteAccessVpns() which results in java.lang.NullPointerException.User is presented with "Internal error executing command" error
Reviewed-By: Sheng

Changes:
- Added the null check for account object.
2012-03-26 14:39:08 -07:00
Sheng Yang d80b58fe1d bug 14484: Apply existed firewall rules when associating IP
It's not a elegant fix. The status for firewall rules should remain unchanged
before/after ip association/disassociation. But the related change is tricky
than this fix, may not get enough test for 3.0.1. So we would apply existed
firewall rules again, which would work, just result in some unnecessary
commands.

status 14484: resolved fixed

Reviewed-by: Edison Su
2012-03-26 13:55:32 -07:00
frank 5fe0faf0cd Bug 14492 - Stop and start of SSVM in Zone1 fails if Zone2 is configured with Storage network
status 14492: resolved fixed
reviewed-by: edison
2012-03-26 11:57:52 -07:00
Alena Prokharchyk 3f58fc707d bug 14500: set default value for is_system field as a part of 3.0 to 3.0.1 upgrade
status 14500: resolved fixed
reviwed-by: Frank Zhang
2012-03-26 10:25:28 -07:00
Nitin Mehta 277c0c8bca Bug 14490: Fix NPE in ListCapacity 2012-03-24 16:32:48 +05:30
Edison Su 8604894a28 bug 1443: even adding host failed, return success in api. status 14443: resolved fixed; Reviewed-by: sheng 2012-03-23 18:22:59 -07:00
Alena Prokharchyk 53f1c487ea bug 14445: automatically enable firewall service for VR when VR is a provider for PF/StaticNat services
status 14445: resolved fixed
reviewed-by: Sheng Yang
2012-03-22 14:17:44 -07:00
Alena Prokharchyk e9bb106527 bug 14439: added search by name/description to listGuestOS and listGuestOSCategories apis
status 14439: resolved fixed
reviewed-by: Frank Zhang
2012-03-22 11:33:11 -07:00
Alena Prokharchyk 0652165adb bug 14446: removed elasticLBVm from components.xml
status 14446: resolved fixed
reviewed-by: Frank Zhang
2012-03-22 10:26:37 -07:00
Abhi 8b235acad0 bug 12947: support for 1.5 beta; reviewed-by: nitin 2012-03-22 17:29:38 +05:30
prachi 64311cc3ab Bug 14299 - Fix adding public ip range per account
Changes:
Fixed as described in the bug.

* CreateVlanIpRangeCmd still accept account/domainId info
* if account owns:
- one Isolated network with source nat service enabled, use this network
- more than one Isolated network with source nat service enabled - error out
- none Isolated networks with source nat service enabled, create it only in
case when there is an Isolated network offering with Availability=Required and
source nat service enabled.
2012-03-21 16:46:13 -07:00
Kelven Yang 93151a701c bug 14313: add map type adapter to ApiGsonBuilder as some API response classes are using Map<String, String> 2012-03-21 15:11:58 -07:00
Kelven Yang 4233cd7aba bug 14188: always make sure to inject SSH keys before copying systemvm ISO to secondary storage 2012-03-21 14:20:53 -07:00
Sheng Yang ce2e1166e0 bug 14042: Don't set dhcp:router option on DHCP server for non-default network on CentOS/RHEL
The routing table with two nics may be messed up, due to we sent same
router(gateway) information from different DHCP server, in order to specify
default gateway. E.g.

Network A: 192.168.1.0/24, gw 192.168.1.1
Network B: 192.168.2.0/24, gw 192.168.2.1

User VM: Nic 1 connect to network A, get ip 192.168.1.10; nic 2 connect to
network B, get ip 192.168.2.10.

Set network A as the default network of user VM.

Currently we would send this information to user VM through DHCP offer:
In network A: dhcp-option:router 192.168.1.1
In network B: dhcp-option:router 192.168.1.1

So both NIC in the guest VM would receive 192.168.1.1 as router(gateway).

But, in CentOS 5.6, dhclient-scripts try to tell if the gateway is reachable
for current subnet.

So when we try to enable nic 2(eth1) of user VM, dhclient would receive:
IP: 192.168.2.10
Mask: 255.255.255.0
Router: 192.168.1.1

Then it would found that the specified gateway(router) is not within its own
subnet(192.168.2.0/24). But since we send out this ip(192.168.1.1) as the
gateway for it, dhclient thought that it should got someway to access the
network through this IP. So it would execute:

ip route add 192.168.1.1 dev eth1
ip route replace default via 192.168.1.1 dev eth1

But it can never reach 192.168.1.1(which is in the eth0's subnet and the
gateway of eth0) by go through eth1 interface. So it is messed up.

We've tested Windows 2008 R2, CentOS 5.3, CentOS 5.6 and Ubuntu 10.04. Windows
and Ubuntu are fine with above policy.

To solve this, we send different dhcp:router option according to the guest OS
type now.

We may need expand this list later, but for now we only know that CentOS and
RHEL would behavior in this way.

status 14042: resolved fixed
2012-03-21 10:37:30 -07:00
Sheng Yang e14cf6a4e1 Fix not sending DNS in DHCP command 2012-03-21 10:37:24 -07:00
Nitin Mehta 220c904be3 Bug 14345: DB discrepecy for capacity.check.period, cluster.memory.allocated.capacity.disablethreshold, pool.storage.allocated.capacity.disablethreshold, pool.storage.capacity.disablethreshold.
Reviewed-By: Kishan
2012-03-21 17:53:22 +05:30
Murali reddy b4e64e653b bug 13899: CloudStack (Advanced Mode) should not allow "NetScaler" as provider for StaticNAT service
status 13899: resolved fixed
2012-03-21 16:52:51 +05:30
Abhi f3c499be3b bug 14216: rightly initializing to avoid NPE 2012-03-21 14:57:09 +05:30
Abhi 3ced403a88 bug 12947: enabling XCP 1.5 2012-03-21 10:21:48 +05:30
Edison Su 6bbe006138 bug 14282: force reconnect: login into kvm host, restart cloud-agent, if host is not connected to mgt server
status 14282: resolved fixed
2012-03-20 17:17:12 -07:00
prachi 3e361a2385 Bug 14336 - Login API does not return UUID's
Changes done:
- Provide UUID for userid and domainid only while constructing the login response. Session will hold the DB id's as before, to ensure other parts keep working.
- This reverts commit de28aa3ddde5b601f2f234f2eccef871fbaf1a06.

Conflicts:

	server/src/com/cloud/api/ApiServer.java
2012-03-20 17:05:46 -07:00
prachi aef7dc9aa0 Bug 14047 - login API fails when UUID is used for domain_id
Changes:
- API should accept UUID for domain and convert to id when needed

Conflicts:

	server/src/com/cloud/api/ApiServer.java
2012-03-20 17:03:19 -07:00
Edison Su 708472e1ef bug 14322: support multiple physical nic in kvm
status 14322: resolved fixed
2012-03-20 16:51:15 -07:00