Commit Graph

16006 Commits

Author SHA1 Message Date
Rohit Yadav ce46821b4a CLOUDSTACK-1237: Fix an overriding method that would help find template adapter
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit fcb4b7a6a7)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-13 15:21:24 +05:30
Marcus Sorensen 53ae738d56 Summary: fix cloud-agent KVM calls to cloudstack-agent for centos6.3
BUG-ID: CLOUDSTACK-1234
Bugfix-for: 4.1, master
Reported-by: Rayees Namathponnan
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1360736064 -0700
2013-02-12 23:14:24 -07:00
Sheng Yang 5dbd33d8ab Add missing break to applyRules in FirewallManager
Otherwise it would falling through PortForwarding rule.

Seems like a typo after network refactor.
2013-02-12 20:26:52 -08:00
Sheng Yang 72234efa3e CLOUDSTACK-1242: Fix inline mode
Network refactor dropped many inline mode codes. I've added at least part of
them back. Now I can create LB rule for inline mode.
2013-02-12 20:25:26 -08:00
Prachi Damle 48368263aa CLOUDSTACK-1135: [EC2 Query API] AuthorizeSecurityGroupIngress and RevokeSecurityGroupIngress fails when icmp code and type is provided
For AuthorizeSecurityGroupIngress RevokeSecurityGroupIngress query calls parse and set the icmp code and type
2013-02-12 15:09:18 -08:00
Likitha Shetty de5adcd86e CLOUDSTACK-1133: [EC2 Query API] In StopInstances add support for parameter 'force'
Propagate this parameter to CS to force stop an instance
2013-02-12 15:08:59 -08:00
Likitha Shetty b45d63feed CLOUDSTACK-1131
[EC2 Query API] RunInstances allows negative values for paramters 'MinCount' and 'MaxCount'
Add parameter validation to ensure MinCount is greater than 0 and MaxCount is great than or equal to MinCount
2013-02-12 15:08:29 -08:00
Likitha Shetty e5bb55c5a3 CLOUDSTACK-1125: [EC2 Query API] Permission denied exception when a parameter value contains space
Convert space characters in the parameters to %20 while forming a query string after url-encode because java.net.URLEncoder performs application/x-www-form-urlencoded-type encoding and not percent-encoding. According to RFC 3986 as required by Amazon, we need to percent-encode.
2013-02-12 15:08:16 -08:00
Prachi Damle c06a16c884 CLOUDSTACK-1129: [EC2 Query API] DescribeVolumes, add support for filter attachment.status
1. If volume is attached to a VM set attachment state based on the state of the VM it is attached to.
Running, Starting, Stopped -> Attached
Starting -> Attaching
Destroyed, Error -> Detached
2. If volume is not attached to a VM set attachment state as 'detached'
2013-02-12 13:45:31 -08:00
Prachi Damle ee90ebfc00 CLOUDSTACK-1128: [EC2 Query API] DescribeAvailabilityZones, support for message filter
Add message in the response element of EC2DesrcibeAvailibilityZones. Add support for filter 'message'.
The value of 'message' should be set to the allocation_state of the zone
Code cleanup
2013-02-12 13:45:29 -08:00
Likitha Shetty 961c8ee365 CLOUDSTACK-1127: [EC2 Query API] DescribeSecurityGroups, support for additional filters
Add support for filters ip-permission.group-name and ip-permission.user-id
2013-02-12 13:45:26 -08:00
Likitha Shetty 2a565d4dc8 CLOUDSTACK-1126: [EC2 Query API] RunInstances ignores the UserData input parameter
When EC2RunInstances is called with UserData parameter, the parameter is not propogated to CS
2013-02-12 13:45:24 -08:00
Logan McNaughton 85db267709 CLOUDSTACK-1106: Fix documentation for cloud-setup-databases
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 03b8181dcb)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-12 21:06:10 +05:30
Hugo Trippaers 5594b1d622 Don't forget the environment.properties when packaging 2013-02-12 16:18:23 +01:00
Rohit Yadav c6b80df289 CLOUDSTACK-1243: Add @Inject to fix NPE in AccountManagerImpl
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit bd034e0b9f)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-12 18:01:43 +05:30
Murali Reddy 513f8b98e9 CLOUDSTACK-1241: Network apply rules logic is broken
added logic to check if the network element is configured service
provider for the network before applying rules
2013-02-12 15:25:07 +05:30
Rohit Yadav 0364a4a34e maven: don't use process-test-resources lifecycles, target are skipped if test are
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 733ec50d46)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-12 12:18:54 +05:30
Wido den Hollander f65ba4fd93 CLOUDSTACK-1206: Change path from /etc/cloud to /etc/cloudstack
Reported-by: Pradeep Soundararajan <pradeep.soundararajan@citrix.com>
2013-02-12 12:02:30 +05:30
Chip Childers 86f5b424b5 CLOUDSTACK-1233: Fixed veewee config file legal documentation
The veewee configuration files used for the devcloud base-box build, as
well as the newly introduced files used to create a system vm, were
inappropriately identified as ASLv2 licensed and copyrighted by the ASF.

The fixes:
- The ASF headers stripped to match the source.
- The files are now excluded from RAT checks in the root pom.
- The tools/whisker/descriptor.xml file updated
- The root LICENSE and NOTICE were re-generated

Changes in the Apache Whisker templates for LICENSE and NOTICE files
caused a good bit of whitespace oddness in this commit for those 2
files.

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

Conflicts:

	tools/appliance/definitions/systemvmtemplate/base.sh
	tools/appliance/definitions/systemvmtemplate/cleanup.sh
	tools/appliance/definitions/systemvmtemplate/zerodisk.sh
2013-02-11 21:54:49 -05:00
Likitha Shetty 203fb466de CLOUDSTACK-1136: [EC2 Query API] AssociateAdress, DisassociateAddress and ReleaseAddress fail with NPE
When invalid parameter is provided as input for any of these API's we get an NPE
2013-02-11 12:08:03 -08:00
Likitha Shetty d592ea10bd CLOUDSTACK-1124 [EC2 Query API] Improve the logging. Having empty response objects is harmless to functionality
This is observed in the awsapi.log for all Describe* EC2 commands when the response object returned by CS has no elements. But with EC2DescribeImages command it is always observed. This is because every time DescribeImage is fired, we call CS listTemplates command multiple times, each time setting a different value for the templateFilter parameter (e.g. featured, executable, community etc.). And for some of these CS calls made we obtain am empty response and hence the message in the logs.
2013-02-11 11:59:40 -08:00
Likitha Shetty 1fbda5d177 CLOUDSTACK-1112 [EC2 Query API] DescribeSnapshots fails, when an invalid 'snapshotId' parameter is provided 2013-02-11 11:40:07 -08:00
Likitha Shetty b1d0d8d5f9 CLOUDSTACK-1121: [EC2 Query API] RunInstances, instance is always deployed in the default security group
During EC2RunInstances, even if the security group the instance is to be deployed in specified the instance gets deployed in the default security group
2013-02-11 11:24:06 -08:00
Likitha Shetty e63fc4c0cb CLOUDSTACK-1120 [EC2 Query API] Parameter 'keynames' is not honoured by DescribeKeyPairs
When EC2DesribeKeyPairs is called with filter 'keynames' it ignored the key-name provided and lists all the key-pairs
2013-02-11 11:23:53 -08:00
Hugo Trippaers 2b593dd894 Slightly upgraded memory requirements, with 128M the server will crash
after 30 minuted with an OOM on PermGen(cherry picked from commit 1896685d83)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-11 17:47:12 +01:00
Hugo Trippaers 2bc30e8b1b Compileall does not compile single files
(cherry picked from commit 6d952a15ab)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-11 17:45:42 +01:00
Hugo Trippaers 1ec1b3f55e Include the compiled python module, so it will be removed as well when the package is removed
(cherry picked from commit 2f44ed0820)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-02-11 17:45:04 +01:00
Rohit Yadav 3ecec178ec usage: Add maven target to run usage server
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 1187fb7ed2)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 18:13:50 +05:30
Rohit Yadav 5eb767f563 CLOUDSTACK-710: mkdir -p destination before scp-ing file in CitrixResourceBase
- Assumption is that mkdir is available on xen host
- We don't know what kind of file we're copying, dirs would have 0777 permission
  by default

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 16:42:49 +05:30
Rohit Yadav e3156a6e16 CLOUDSTACK-1226: Fix 4.1-new-db-schema.sql, use cloud before exec statements
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 16:42:48 +05:30
Rohit Yadav a880f47fc5 CLOUDSTACK-1019: Load 4.1-new-db-schema.sql when setting up databases
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 15:25:19 +05:30
Rohit Yadav e97bc4baed CLOUDSTACK-1222: Remove double quotes in upgrade script s/"//g
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 0895c34002)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 14:07:23 +05:30
Rohit Yadav a184816488 CLOUDSTACK-1181: Find by catalina.home property first
The previous commit fails if a person had defined CATALINA_HOME already.
Instead of system env variable, get any passed variable 'catalina.home' and find
the file in that path.

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

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 12:18:33 +05:30
Rohit Yadav a0341d1ce4 CLOUDSTACK-1181: Fix Environment so db.properties is in classpath
We export CATALINA_HOME to utils/ which is the path which a lot of utils class would
check and read db.properties file. This is exactly what is done in production.
The utils classes (Transaction, Encryption*Checker etc.) would use PropertiesUtil
which tries to find it in CATALINA_HOME.

The only issue is, even if someone defined an override file, the encryption type
would be still read from the db.properties file. For all other params, the override
file would be re read and datastores would be reinitialized

BUG-ID: CLOUDSTACK-1181

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

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-11 12:18:33 +05:30
anthony 0923bf8f85 CLOUDSTACK-1199: add external DNS to dnsmasq configuration file 2013-02-08 16:32:24 -08:00
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