14235 Commits

Author SHA1 Message Date
Alena Prokharchyk
013102c028 CS-16611: when expunge Async job, expunge corresponding sync queue items
Conflicts:

	server/src/com/cloud/async/AsyncJobManagerImpl.java
	server/src/com/cloud/async/dao/SyncQueueItemDao.java
2012-11-02 10:51:29 -07:00
Alena Prokharchyk
fe41325e96 ApiResponseSerializer - replaced all occurrences of string concatenation with StringBuffer.append
Conflicts:

	server/src/com/cloud/api/response/ApiResponseSerializer.java
2012-11-02 10:50:04 -07:00
Alena Prokharchyk
04a3c4ffdc Removed unneeded if statement from VpcVirtualNetworkApplianceManagerImpl 2012-11-02 10:47:34 -07:00
Alena Prokharchyk
efb5f85aad CS-16594: when request is cancelled by the remote peer, in addition to cancelling the request, unblock the agent queue if the request is the current request 2012-11-02 10:47:24 -07:00
Alena Prokharchyk
a5077968db CS-16592: process handleConnectedAgent in a separate thread pool 2012-11-02 10:47:14 -07:00
Alena Prokharchyk
3948d7d7c5 CS-16213: skip agent rebalancing when the management server doesn't own the host any more 2012-11-02 09:59:37 -07:00
Alena Prokharchyk
62607c9a75 HandleDisconnect - don't update the DB when the disconnect event is happening as a part of MS Cluster notification
Reviewed-by: Frank Zhang
2012-11-02 09:59:37 -07:00
Alena Prokharchyk
36babbfcac CS-16213: agent LB - don't process Disconnect event from other management server in cluster, if the recipient is the future owner of the host. The disconnect will be handled during the rebalance host connection process itself.
Reviewed-by: Kelven Yang
2012-11-02 09:59:37 -07:00
Alena Prokharchyk
705130e42c CS-16499: removed useless txn.commit statement. Used to call it to ensure that the lock() on nic object will get removed even in case when we don't do the DB update. But our Transaction code does it automatic 2012-11-02 09:59:37 -07:00
Alena Prokharchyk
597bc8c66c CS-16499: forgot to add @DB to releaseNic() call 2012-11-02 09:59:36 -07:00
Alena Prokharchyk
7bd7884f57 CS-16499: releaseNic - lock the nic row in the DB before checking its state. Hold the lock till the nics attributes + nicCount is updated
Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java

Conflicts:

	server/src/com/cloud/network/NetworkManagerImpl.java
2012-11-02 09:59:36 -07:00
Pranav Saxena
49919bcc6f Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-11-02 11:09:18 +05:30
Pranav Saxena
af7c8c42a5 CS-12436:Static NAT Enabled box: Button with VM label expands beyond the parent box due to length of the name 2012-11-02 11:08:32 +05:30
Joe Brockmeier
7ffcd9e8bf CLOUDSTACK-291 Additional comment on install.sh upgrade path: Noted that users need to agree to changes suggested by Yum or APT. 2012-11-01 18:12:33 -05:00
Joe Brockmeier
dee9264ddc CLOUDSTACK-385: Section 3.2.3 (MD5): confusing first sentence. Fixed this, though the entire section could probably do with a re-write. I think the existing instructions are overly complex. 2012-11-01 17:49:03 -05:00
Joe Brockmeier
5ddb6f251c CLOUDSTACK-392: Install Guide - fixed issue with minor correction needed in docs. 2012-11-01 17:44:08 -05:00
Joe Brockmeier
bb38462b4f CLOUDSTACK-250 minor fix in documentation about maintenance mode. 2012-11-01 17:39:03 -05:00
Brian Federle
33a7f9ad9c Multi-edit table: add scrollbars for longer values
Add horizontal scrollbar to fix longer values (such as CIDR lists)
causing table to overflow.
2012-11-01 15:32:10 -07:00
Pranav Saxena
ed26f69868 CS-16630:UI freeze when accessing the Ip Addresses tab , when we are in the configuration of one of the ip addresses 2012-11-02 01:04:49 +05:30
Brian Federle
53072af8f7 CS-16295: Fix select project search box
Adds search functionality to 'select project' dialog's input box,
which was not sending value to the listProjects API
2012-11-01 12:17:39 -07:00
Joe Brockmeier
db6c8f0176 CLOUDSTACK-439: Fixed typos and changed direct attached to shared network IPs 2012-11-01 14:12:49 -05:00
Rohit Yadav
51a5377d05 cli: add more verbs to grammar
Adds additional verbs to grammar of cli

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-01 14:12:08 +05:30
Jessica Wang
8dd1991e6d CS-16662: cloudstack UI - IP Address page - VPN tab - pass domainId/account parameter to removeVpnUser API. 2012-10-31 16:30:17 -07:00
Joe Brockmeier
6b2d749041 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-10-31 17:54:35 -05:00
Joe Brockmeier
f39cd83999 Minor doc cleanup. 2012-10-31 17:53:56 -05:00
Jessica Wang
e7fad41994 CS-16573: cloudstack UI - update network offering - encode data passed to API call. 2012-10-31 15:53:04 -07:00
Jessica Wang
489b60e3d5 CS-16573: cloudstack UI - system offering page, disk offering page - encode data passed to API call. 2012-10-31 15:45:47 -07:00
Jessica Wang
ab4f707936 CS-16573: cloudstack UI - compute offering page - encode data passed to API call. 2012-10-31 15:27:16 -07:00
Jessica Wang
b2656b5ce2 CS-16573: cloudstack UI - global settings page, Hypervisor Capabilities page - encode data passed to API call. 2012-10-31 15:26:44 -07:00
Jessica Wang
ae79a1ebbd cloudstack UI - domain page - create domain - encode data passed to API call. 2012-10-31 15:26:05 -07:00
Jessica Wang
703c5b44f2 cloudstack UI - user page - update user, change password, generate key, disable user, enable user, delete user - encode data passed to API call. 2012-10-31 15:25:32 -07:00
Jessica Wang
8692f68603 CS-16573: cloudstack UI - create user - encode data passed to API call. 2012-10-31 15:18:46 -07:00
Jessica Wang
bfbf634c0f CS-16573: cloudstack UI - user page - listView - encode data passed to API call. 2012-10-31 15:14:52 -07:00
Chip Childers
713418c0aa Fixed license headers in 2 files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-31 14:29:38 -04:00
Chip Childers
000cc72042 CLOUDSTACK-422: XSL files missing license header
Added license headers to the apidoc XSL files that were fooling RAT.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-31 14:13:48 -04:00
Rohit Yadav
23659684e8 maven: include tools/cli in top level pom
For developer profile include tools/cli in top level pom

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:24 +05:30
Rohit Yadav
b38cf801ac cli: setup.py for cloudmonkey
Version are named in reflection of CloudStack.
<cli major-version>.<cloudstack minor>.<cloudstack.major>
So, for CloudStack 4.1.0, version for cli should be 0.1.4

To create distribution:
  python setup.py sdist
  python setup.py install

Using pip:
  pip install dist/cloudmonkey*

Or pretty soon, from cheese shop:
  pip install cloudmonkey

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:21 +05:30
Rohit Yadav
039b938ecc maven: pom.xml for tools/cli
copies marvin to cli/cloudmonkey/

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:17 +05:30
Rohit Yadav
2ceaa3911e cli: cloudmonkey the command line interface
cloudmonkey
-----------
Apache CloudStack's very own monkey powered command line interface based on Marvin.
The neglected robot and monkey should rule the world!

Features:
- it's a shell and also a terminal tool
- scalable to find and run old and new APIs
- intuitive grammar and verbs
- autocompletion (functional hack)
- shell execution using ! or shell
- cfg support: user defined variables, like prompt, ruler, host, port etc.
- history
- colors
- dynamic API loading and rule generation
- leverages Marvin to get latest autogenerated APIs
- emacs like shortcuts on prompt
- uses apiKey and secretKey to interact with mgmt server
- logs all client commands
- PEP-8 compliant code

TODOs:
- Reverse search
- Fix input and output processing

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:14 +05:30
Rohit Yadav
ff9e60929c gitignore: ignore pythonic eggs and marvin in cli
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:19:10 +05:30
Rohit Yadav
d72d3ee22b marvin: check and use logger
Checks and only then calls logger

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-31 23:18:06 +05:30
Marcus Sorensen
1c0e2cf3f5 Summary: Implement Static NAT for KVM VPC
Detail: SetVPCStaticNatRules was one command that was left off of the initial
VPC implementation. This adds it in.

BUG-ID : CLOUDSTACK-426
Reviewed-by: Marcus Sorensen
Reported-by: Marcus Sorensen
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1351698124 -0600
2012-10-31 09:42:04 -06:00
Marcus Sorensen
761b4f60a1 Summary: Fix virtual router trying to resolve own host name (v2)
Detail: Make change in 95df86e1e030ab955ac09f145df37f3aef606c05 be specific
to VPC.

BUG-ID : NONE
Reviewed-by: Marcus Sorensen
Reported-by: Marcus Sorensen
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1351695701 -0600
2012-10-31 09:01:41 -06:00
marcus
95df86e1e0 Summary: Fix virtual router trying to resolve own host name
Detail: Several virtual router configuration commands, such as iptables
commands, run slowly due to attempting to do a name lookup on the virtual
router's hostname and having to time out. This is seen in the agent logs when
a virtual router command is run, as "unable to resolve host r-410-VM" or
similar. This can make for very slow router configuration, especially as the
number of network rules grows. This change simply sets the router's name to
the localhost IP in /etc/hosts

BUG-ID : NONE
Reviewed-by: Marcus Sorensen
Reported-by: Marcus Sorensen
Signed-off-by: Marcus Sorensen <shadowsor@gmail.com> 1351659441 -0600
2012-10-30 22:57:21 -06:00
Hugo Trippaers
4572bc0685 Summary: Sample packaging scripts
This is a manual merge of the maven-to-rpm branch. This commits show how an RPM
package can be built without waf. The current version only builds the management
server rpm and some related rpms like setup. The main missing items are agent rpm and
the awsapi rpm. But it should at least show how to use maven and packaging.

Several small tweaks are put into the client/pom.xml to make sure that the war
has all items required to run as a standalone war.
2012-10-30 16:31:36 +01:00
Hugo Trippaers
f65b268a2e Active the testrun by default in maven
Exclude the tests that need a database, these should move to the
integration test phase or use an in memory database maybe.
2012-10-30 14:15:07 +01:00
Hugo Trippaers
bd58ceccd8 Summary: Make the authenticator responsible for encoding the password and add a SHA256 salted authenticator
The authenticators now have an encode function that cloudstack will use to encode the user supplied password before storing it in the database. This makes it easier to add other authenticators with other hashing algorithms. The requires a two step approach to creating the admin account at first start as the authenticators are only present in the management-server component locator.

The SHA256 salted authenticator make use of this new system and adds a hashing algorithm based on SHA256 with a salt. This type of hash is far less susceptible to rainbow table attacks.

To make use of these new features the users password will be sent over the wire just as he typed it and it will be transformed into a hash on the server and compared with the stored password. This means that the hash will not go over the wire anymore.

The default authenticator in components.xml is still set to md5 for backwards compatibility. For new installations the sha256 could be enabled.
2012-10-30 12:56:56 +01:00
Prasanna Santhanam
07d555db37 Summary: secondary storage tests refactored
Detail: The secondary storage tests are now simplified. Since before
running tests we already ensure the health checks - template, builtin,
system vms are ready. there is no need to add additonal wait/sleep here.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351595163 +0530
2012-10-30 16:37:28 +05:30
marcus
843e140858 Summary: Allow public and private nic to be the same bridge
Detail: There was a regression in functionality introduced by
915babd970a9b4f209deceb3c4973b7d1c9c0c12 where the public
bridge could not also be the private bridge. This had several
additional consequences, this patch should revert the behavior
back while keeping the functionality enhancements introduced by that
commit.

BUG-ID : NONE
Reviewed-by: Dave Cahill
Reported-by: Dave Cahill via cloudstack-dev
Signed-off-by: Marcus Sorensen <shadowsor@gmail.com> 1351574006 -0600
2012-10-29 23:13:26 -06:00
Prasanna Santhanam
c916d6a1f1 Bash is not python!
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351573594 +0530
2012-10-30 10:37:16 +05:30