Commit Graph

15971 Commits

Author SHA1 Message Date
Sheng Yang 4da47c2ffd Fix a typo
CanUseForDeploy() didn't return correct result due to this
2013-02-08 14:41:58 -08:00
Sheng Yang b5860725a1 IPv6: CLOUDSTACK-1107: Add support for createVlanIpRange to extend existed network 2013-02-08 14:41:58 -08:00
Min Chen 76183aa045 Merge branch '4.1' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack into 4.1 2013-02-08 14:15:59 -08:00
frank c811a025f2 CloudStack CLOUDSTACK-774
Supporting kickstart in CloudStack baremetal

add api annotation to baremetal related api
2013-02-08 14:18:05 -08:00
Min Chen 94fc648525 CLOUDSTACK-1216: insert UUID when we create "admin" user in DB. 2013-02-08 14:15:15 -08:00
Sebastien Goasguen cfffa38f53 Docs: Adding license header to .tx/config 2013-02-08 22:48:57 +01:00
Sebastien Goasguen e05a3b0012 Docs: Adding license header to .pot files 2013-02-08 22:48:28 +01:00
Min Chen ee90b4cad3 CLOUDSTACK-1190: make APIChecker throw one sensible exception. 2013-02-08 11:05:11 -08:00
Murali Reddy 69d24545c4 CLOUDSTACK-1208: Failed to shutdown guest network
Firewall manager was being used instead of LoadBalancingRules manager
while applying the load balancer rules in shut down network. Changing it
to LoadBalancingRules manager.
2013-02-08 18:50:18 +05:30
Rohit Yadav 5d1769335c CLOUDSTACK-1210: Fix pluggable service, apiserver, mgmt server impl, api-discovery
- Mgmt server impl is a pluggable service, fix it's method
- Fix getCommands() to return all cmd api classes supported by this mgmt server
- For api-discovery, get commands from pluggable services only, don't use reflections
- Don't use reflections in ApiServer, iterate pluggableservices
- Fix api discovery unit test
- The fix was done automatically using following python program along with
  following step:

1. Get all apis provided by default mgmt server, all of them are in cloud-api now
   cd api/src/org/apache/cloudstack/api/command
   find . >> apis
2. For all apis, generate java code that adds the class to the cmdList arraylist:
   f = open('apis', 'r')
   data = f.read()
   f.close()
   output = ""
   for a in data.split('\n'):
     output += "cmdList.add(%s);" % a.split('/')[-1].replace('.java', '.class')
   # wrote output to a file, copied content to mgmt server impl's getCommands()
   # similarly, fixed import statements using same code, splitting on /

Testing:
Ran apiserver, put breakpoints in ApiServer's init() where classes are processed
Total cmd classes found by reflections (ReflectUtil) = 354
Total cmd classes found by getCommands for all pluggable services = 354

Next, copied the comma separated values for each set to a string in ipython, a & b
set(a).difference(set(b)) returned null.

The above test implies both set of cmd classes found by both methods, i.e. using
reflections and using getCommands() had same set of apis and all were unique.

Conclusion:
The changes are idempotent and don't break api server's cmd class api discovery
processing.

BUG-ID: CLOUDSTACK-1210

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:52:04 +05:30
Rohit Yadav 4a9af125cf netapp: Fix as pluggable service and return list of apis it offers
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:52:04 +05:30
Rohit Yadav af34142802 bigswitch-vns: Fix since version in apis, add spring annotation to fix NPE
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 16:52:04 +05:30
Rohit Yadav dc446485e1 INSTALL.md: Update port info with better summary and fix building section
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 31f0c6a3bd)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-08 13:54:15 +05:30
Min Chen f589d61334 Move Api rate limit configurations from xml file to global
configuration, and also modify listCapabilitiesCmd to also return api
limit interval and max for UI consumption.
2013-02-07 23:48:15 -08:00
Min Chen 3ce7531d2b Remove duplicate bean for ApiRateLimitServiceImpl to make sure that only
one ApiChecker instance is injected in ApiServer.
2013-02-07 21:42:30 -08:00
Min Chen 3050c43909 Revert "CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects"
This reverts commit b513448ec2.
2013-02-07 21:20:07 -08:00
Likitha Shetty 1884f518a3 CLOUDSTACK-1119 [EC2 Query API] Add filter support for DecsribeAddresses
EC2DescribeAddresses doesn't have filter support.
Support will be available for filters -> instance-id and public-ip
2013-02-07 18:33:59 -08:00
Likitha Shetty 40d1fe1049 [EC2 Query API] DescribeAvailabilityZones doesn't have any filter support.
CLOUDSTACK-1118

Support will be available for filters - zone-name and message
2013-02-07 18:25:21 -08:00
Likitha Shetty b97f468b03 CLOUDSTACK-1117 [EC2 Query API] DescribeImageAttribute fails
EC2DescribeImageAttribute fails with 'Unsupported - only description supported' error. And this is observed for both the supported attributes 'Description' and 'LaunchPermission'
2013-02-07 18:25:11 -08:00
Prachi Damle c92f1f9839 CLOUDSTACK-1116 [EC2 Query API] Support for ModifyImageAttribute and ResetImageAttribute
https://reviews.apache.org/r/9213

Add support for EC2 ApiI's ModifyImageAttribute and ResetImageAttribute.
Attributes supported are Description and LaunchPermission.
2013-02-07 17:42:27 -08:00
Jessica Wang e9c923aee0 CLOUDSTACK-537: cloudstack UI - Advanced sg-enabled zone - VM Wizard - step 5 - select network screen - populate only sg networks (i.e. not show non-sg networks). 2013-02-07 13:29:32 -08:00
Jessica Wang e56cb26f5c CLOUDSTACK-537: cloudstack UI - Infrastructure menu - create network dialog - Advanced sg-enabled zone - (1) account-specific network doesn't work at backend. Therefore, remove "account" option from scope dropdown. (2) zone-wide network: list only sg network offerings. 2013-02-07 13:28:01 -08:00
Sebastien Goasguen 368d5a1ea5 Preparing docs for translation 2013-02-07 15:44:22 +01:00
Sebastien Goasguen 7dd2ed12f9 Docs: Adding documentation and translation chapter in dev guide 2013-02-07 15:43:05 +01:00
Rohit Yadav b513448ec2 CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 9b691fc443)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 18:24:35 +05:30
Hugo Trippaers c693cfb37f Summary: Fix path so the right files are removed from the install dir
(cherry picked from commit db3b0d3256)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-07 13:47:33 +01:00
Pradeep Soundararajan 94d50fbb08 Summary: changed the path from cloud to cloudstack.
The change in package script allowed us to create proper tar under rpmbuild/SOURCES directory

The change in the path enabled us to launch the management server properly.

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed-by: Hugo Trippaers <htrippaers@schubergphilis.com>
(cherry picked from commit a9955f155a)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-07 13:47:26 +01:00
Rohit Yadav 91e284b173 CLOUDSTACK-1066: Fix only one postinstall script, install packages etc.
- Remove different scripts, just use postinstall.sh that runs after basic appliance
  is built using veewee
- Port package installation method from old script
- Time the installation/build process

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 04d51c9e4d)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 17:47:07 +05:30
Rohit Yadav f315a9a6ea CLOUDSTACK-1066: Add definitions for building systemvm template appliance
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit f97e2a6297)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 17:46:37 +05:30
Rohit Yadav 72291ef97f CLOUDSTACK-1037: Implement fuzzy parameter completion
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 1fd0563137)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 16:01:51 +05:30
Pranav Saxena 7f0e5fefec CLOUDSTACK-1184 Localization - Add Korean label to all locales 2013-02-07 14:17:02 +05:30
Murali Reddy 18bf69696c CLOUDSTACK-1178:DB Commit warning logged for every Deploy VM request
removing the regression that introduced premature transaction commit
2013-02-07 13:20:41 +05:30
Radhika PC 6768f0d1c2 CLOUDSTACK-1050:Documentation for adding load balancer rule 2013-02-07 11:45:44 +05:30
Rohit Yadav f270f627d6 CLOUDSTACK-520: Autorename vmware and manageontap jars
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 5fe1ef47dd)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 11:34:39 +05:30
Mice Xia 15d6609468 CLOUDSTACK-1176 1) remove 'final' modifier from id attribute in SnapshotVO 2) make state setter method comply with convention 2013-02-07 13:42:41 +08:00
Rohit Yadav f95b0edaff CLOUDSTACK-1181: Fix NPE, ignore if default path is not readable, we're passing props file anyway
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 7c003611d0)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-07 11:10:37 +05:30
Pranav Saxena 6db11cb7de Enabling Korean Translation on the CloudStack UI 2013-02-07 10:49:28 +05:30
Channy Yun 624ff03f24 Localization:Korean Translation 2013-02-07 10:48:14 +05:30
Sheng Yang 5adcea209d IPv6: One network can have more than one vlan 2013-02-06 20:02:46 -08:00
Hugo Trippaers 76a5bdac70 Before any database calls are made we need to make sure that encryption
is properly initialized if we have an encrypted db.properties.(cherry picked from commit b1d70f7fe3)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-06 23:03:22 +01:00
Hugo Trippaers 1404cf8c1f Summary: fixup spec file
Remove duplicate entries in the config dir

Fix directory permisisons of some directories

Remove the scripts from the webapp as they are packaged inside the cloudstack-common package
(cherry picked from commit 5af6d16c5d)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-06 23:00:28 +01:00
Hugo Trippaers 6287d4512e If encryption is already initialized we don't need to do it again.(cherry picked from commit b28f3addfc)
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-06 23:00:19 +01:00
Sheng Yang 17212984c9 IPv6: CLOUDSTACK-1141: Fix reboot router with IPv6 assigned VM 2013-02-06 13:59:14 -08:00
Jessica Wang 00b2a99e7a CLOUDSTACK-1166: cloudstack UI - dashboard - sanitize content before setting it to a HTML element. 2013-02-06 10:50:07 -08:00
Marcus Sorensen d3ffceb25e Summary: Add default newline after summary in prepare-commit-msg
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360171397 -0700
2013-02-06 10:24:22 -07:00
Marcus Sorensen dc0ef3cef7 Summary: Make prepare-commit-msg hook more compatible with operating systems
Detail: Was using sed -i, which breaks on Mac

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360170672 -0700
2013-02-06 10:24:10 -07:00
Marcus Sorensen 73bb1795cb Summary: Fix NPE when calling createFirewallRule
Detail: CreateFirewallRuleCmd.java was returning 'null' for getTrafficType().
Recently, getTrafficType started being used by createIngressFirewallRule.
Changing getTrafficType() to return ingress per Jayapal Reddy.

BUG-ID: CLOUDSTACK-1168
Bugfix-for: master,4.1
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360170916 -0700
2013-02-06 10:21:20 -07:00
Radhika PC 1ac95e15f1 CLOUDSTACK-722 - Documentation:Changing the SSL proxy console certificate 2013-02-06 20:34:57 +05:30
Marcus Sorensen 87286d0549 Summary: Add missing ResizeVolumeCommand in VmwareResource.java
Submitted-by: hongtu_zang <hongtu_zang@tcloudcomputing.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com>
2013-02-06 07:55:11 -07:00
Rohit Yadav 4d9056c2fe ApiDiscovery: Fix tests and make constructor light weight, let spring run init()
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-06 20:09:15 +05:30