Commit Graph

5554 Commits

Author SHA1 Message Date
Wei Zhou a5723992a0 CLOUDSTACK-1325: add password in response of RestoreVM 2013-05-27 21:32:56 +02:00
Wei Zhou 6fa9527353 remove duplicated Vpc routers in return of listByStateAndNetworkType 2013-05-27 21:30:37 +02:00
Wei Zhou 98a9edfaaf remove duplicated ExpungeTask from BareMetalVmManagerImpl 2013-05-27 21:29:43 +02:00
Min Chen f797d45026 Fix incorrect Annotation on deleteUser, addTrafficMonitor and
listTrafficMonitor apis.
2013-04-18 11:34:49 -07:00
Hugo Trippaers c898b72b33 CLOUDSTACK-2090 Fix upgradepath from 4.0.1 to 4.0.2 2013-04-18 16:16:12 +02:00
Joe Brockmeier 080ddfede6 Updating version to 4.0.2 (removing -SNAPSHOT) 2013-04-15 23:06:14 -05:00
Chip Childers d6c31a5f19 Adding package import for new upgrade DAO
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-04-15 15:26:05 -04:00
Chip Childers 4db86cf7de Adding Upgrade401to402
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-04-15 15:23:32 -04:00
Chip Childers 18e8aad0e1 Updating version number from 4.0.1-incubating to 4.0.2 in a number of places
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-04-15 18:56:19 +01:00
Chip Childers c6994c3759 CLOUDSTACK-1151: Adding 4.0.2 upgrade step to see if this unblocks testing of the bug in question. 2013-04-15 16:37:24 +01:00
Chiradeep Vittal 0db91eb721 CLOUDSTACK-524: also add proxy information when resuming errored download job
Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
2013-04-12 10:48:01 -07:00
Marcus Sorensen f12b328b33 CLOUDSTACK-2003: When accounts and domains are deleted, cleanup can fail,
leaving instances in eternal expunged state. This happens when a domain is
deleted while a deleted account is cleaning up. The cleanup looks for the domain
of the account and we hit a null pointer. Adding null pointer check.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1365695448 -0600
2013-04-11 11:09:27 -05:00
Wei Zhou 5ac59fbecb CLOUDSTACK-962: CloudStack usage server didn't store data to cloud_usage in correct time 2013-03-22 18:14:57 +05:30
Wei Zhou af0723e9c9 CLOUDSTACK-1668: Fix IP conflict in VPC tier
Currently, allPossibleIps return the Ip lists which include the gateway,
so we need to remove gateway ip from this list.

Now, for non-VPC network it works, because NetUtils.getAllIpsFromCidr
return the Ip lists which do not include the first IP of the network
(like 192.168.0.1).
We need too add the first IP into the returned Ip list, because it can
be used for VM if it is not the gateway IP (for example, VPC networks).

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-03-20 00:34:17 +00:00
Kishan Kavala 58b316c907 CLOUDSTACK-1151: 302 to 40 upgrade. Upgrade system template for Vmware. 2013-03-07 14:06:10 +05:30
Min Chen 85455f6514 CLOUDSTACK-1137: force reconnect to a disconnected host throws error. 2013-02-14 18:00:33 -08:00
Wei Zhou 0ec4217aae ignore unassignIPFromVpcNetwork in finally block of EnableStaticNat
unassignIPFromVpcNetwork processing should not execute when
EnableStaticNat succeed.  Without this patch, unassignIPFromVpcNetwork
will execute whenever EnableStaticNat is successful or failed

Reviewed-by: https://reviews.apache.org/r/9443/
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-02-14 17:12:30 +05:30
Wei Zhou a61a2b18fa CLOUDSTACK-1088: EnableStaticNat error will clear the data in database
The issue occur in two conditions

(1) If I use two sessions or browsers to EnableStaticNat on CloudStack
UI. one is successful, the other is failed. However, there is no ip in
database.

(2) If I use API call EnableStaticNat several times The first time
succeed, the second failed, the third succeed. the result is
success-fail-success-fail-success-fail, which it is not correct.

Reported-by: Wei Zhou <w.zhou@leaseweb.com>
Reviewed-by: https://reviews.apache.org/r/9254/
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-02-09 16:17:49 +05:30
Chip Childers a81d227f1f CLOUDSTACK-505: Added string cleaning to the start and end debug
log statements within the API servlet.

Conflicts:
	server/src/com/cloud/api/ApiServlet.java
2013-01-24 19:21:58 -06:00
Chip Childers d5c9ad0f94 CLOUDSTACK-505: Reworked approach to cleaning request / response strings
As noted in the bug, several of the API command in question
are async calls.  I've added a simple regex-based string cleaning
function, and have the request and response strings running through
it prior to being appended to the audit log.

Unit tests added for the new cleaning function as well.

The call to skip logging the createSSHKeyPair response remains intact
for now, although it should probably be scrubbed similarly to the
password fields.

Signed-off-by: Chip Childers <chip.childers@gmail.com>

Conflicts:
	utils/src/com/cloud/utils/StringUtils.java
2013-01-24 19:20:02 -06:00
Kishan Kavala 2f1d83037b CLOUDSTACK-685: Fixed network usage. Send network usage command for isolated guest nic of non VPC VR. Send network usage command for public nic in VPC VR. 2013-01-10 15:17:33 +05:30
Koushik Das c69da4c1b3 CLOUDSTACK-595 : Recreate root volume scenarios doesn't work in vmware
Issue seen during system vm template upgrade and restoreVM command
scenarios for vmware. In these cases CS tries to recreate root disk with
same name as the existing one, in case of vmware this results in creation
of vmdk file with same name for both existing and new root volume.
This results in undesired behavior when storage cleanup thread tries to
cleanup old volume. Made the vmdk file name unique by adding the volume
id to it. This will ensure that during volume recreation in the scenarios
mentioned vmdk will get created with a new name and there will be
no undesired side effects of running the storage cleanup thread.
2013-01-07 16:08:04 +05:30
Hugo Trippaers 5a484e65f6 [CLOUDSTACK-415] Workaround this problem for now 2012-12-14 22:57:18 -06:00
Chip Childers 7abf11780f CLOUDSTACK-505: Removed logging of deployVirtualMachine and resetPasswordForVirtualMachine commands.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-12-13 16:03:11 -05:00
Mice Xia 559ba3a46b CLOUDSTACK-603 Upgrade from 4.0 to 4.0.1 is not enabled 2012-12-11 14:14:43 +08:00
David Nalley 5f025138e8 Merge branch '4.0' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack into 4.0 2012-12-06 13:53:00 -05:00
David Nalley ee9c804f2d CLOUDSTACK-580 setting all (I think) of the versions to 4.0.1-incubating 2012-12-06 13:52:27 -05:00
Chip Childers 8de21b2b74 CLOUDSTACK-505: Do not log the command response object for the createSSHKeyPair command.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-29 12:31:36 -05:00
Hugo Trippaers c02edf9d81 [CLOUDSTACK-359] Hook up the other side of the event propagation 2012-11-15 16:41:01 -06:00
Mice Xia 06bca1d247 CLOUDSTACK-118 Status of host resorce stuck in ErrorInMaintenance 2012-10-16 15:41:45 -07:00
Edison Su 8a6dbbfaf4 CLOUDSTACK-316: if public network is not specified, set to guest network 2012-10-11 16:47:53 -07:00
Chip Childers 8bb7226397 Modified references to 4.0.0 to 4.0.0-incubating 2012-10-09 20:22:59 -04:00
Alena Prokharchyk 29e6dae86d CLOUDSTACK-287: don't allow API call against system account (adding users to system account is prohibited; can't delete/update System account)
Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
2012-10-08 11:00:46 -07:00
Alena Prokharchyk cfd2091337 Fixed CLOUDSTACK-287
1) Always fail to authenticate system user.
2) DB - always create system user with RANDOM not null password
3) Don't allow modifying (setting api/secretKeys, etc) system user via API

Conflicts:

	server/src/com/cloud/user/AccountManagerImpl.java
	setup/db/db/schema-305to306.sql
2012-10-08 10:51:41 -07:00
Alena Prokharchyk ef1ba9bf38 Fixed unittest 2012-10-05 15:37:28 -07:00
Alena Prokharchyk d5b86d8149 CLOUDSTACK-84: fixed NPE that used to happen on API layer when list resource of the project was called when project was going through removal process. 2012-10-05 14:23:48 -07:00
Rohit Yadav f7ebb76f57 CLOUDSTACK-121: Fixed "Incorrect username/domainId login causes NullPointerException " 2012-10-05 11:33:21 -07:00
Sheng Yang a438346745 CLOUDSTACK-191: Update checking for updateCustomerGateway
Reviewed-by: Anthony Xu

Conflicts:

	server/src/com/cloud/network/vpn/Site2SiteVpnManagerImpl.java
2012-10-04 15:40:14 -07:00
Anthony Xu 0c6bdd2781 CLOUDSTACK-251 :
when host is reconnected, CS try to make sure the host can access primary storage,
CS only do this when primary storage is UP, and even host cannot access primary storage,
that is okay, do not throw exception, just print a warning message
2012-10-04 11:35:43 -07:00
Hiroaki Kawai 046e916fcf fix 4.0 build failure (invalid constructor argument)
Signed-off-by: Edison Su <disheng.su@gmail.com>
2012-09-27 22:29:16 -07:00
Alena Prokharchyk d4261f8400 Removed unused code that was commented out in SnapshotManagerImpl- you can alway retrieve it back from the history if needed
Conflicts:

	server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2012-09-27 17:22:10 -07:00
Alena Prokharchyk d55212e386 Removed unused imports from snapshot manager 2012-09-27 17:22:06 -07:00
Alena Prokharchyk e441c600c4 Validate port ranges in PF rule only when startPort != endPort in private or public range 2012-09-27 17:21:46 -07:00
Alena Prokharchyk aa8048aa04 Port ranges for PF rules: public port start should be equal to ending port start; the same applies to end ports 2012-09-27 17:21:08 -07:00
Mice Xia 666edf2138 CLOUDSTACK-215 CPVM load balance didn't work, VNC console sessions go to one CPVM and ignore other CPVMs 2012-09-26 22:07:09 -07:00
Marcus Sorensen 34e1fd8441 CLOUDSTACK-202 Can't create VM from ISO, when in VPC
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
2012-09-26 21:57:40 -07:00
Kishan Kavala 0cb655a16d bug CLOUDSTACK-198: VPN user add, on failure remove user currently being added only, other users will remain in Add state 2012-09-26 21:33:06 -07:00
Mice Xia e5c0206d98 CLOUDSTACK-204 Setting global config 'consoleproxy.service.offering' causes mgmt failed to start (add exception handling) 2012-09-26 21:32:41 -07:00
Mice Xia bbb72dc036 CLOUDSTACK-204 Setting global config 'consoleproxy.service.offering' causes mgmt failed to start 2012-09-26 21:31:39 -07:00
Edison Su 515b608266 CLOUDSTACK-123: fix NPE 2012-09-18 16:42:36 -07:00