Commit Graph

23633 Commits

Author SHA1 Message Date
Wei Zhou ae1b87ca23 CLOUDSTACK-7308: add tags to all security group rules 2014-08-18 14:41:53 +02:00
Wei Zhou b55c114932 CLOUDSTACK-7308: tags for security group rules (additional commit for 4.4) 2014-08-15 09:51:39 +02:00
Stephen Hoogendijk f41019d5b2 CLOUDSTACK-7308 - Adds tagging support for security group rules
(cherry picked from commit 6978c18c3a)
2014-08-15 09:41:15 +02:00
Joris van Lieshout c4d1bf7f24 sysctl improvements. 1. ip_nonlocal_bind for smooth transition in case of a keepalived failover. 2. panic settings so that a vm dies in a way that ACS understands it's down. 3. also up the nf_conntrack limits.
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 45deade1df)

Conflicts:
	systemvm/patches/debian/config/etc/sysctl.conf
2014-08-14 14:00:23 +02:00
Brenn Oosterbaan 8b7130fa65 CLOUDSTACK-7345 changed dd blocksize to 128k when using NFS.
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-08-14 09:59:48 +02:00
Rohit Yadav 47fee57312 CLOUDSTACK-4770: In MacAddress skip macAddress when parsed value is 0x00
In MacAddress class, we start by settig macAddress String as null and go through
the output of ifconfig -a and pick the one string that is a valid mac address
but is not 0x00 and 0xff. With each loop we set the macAddress to null so that
it does not pick the last one if everything fails.

Tested on Ubuntu where I had an interface called cloud0 whose mac id was 0x00
and it was skipped to get the next one:

$ java -classpath <path-to-cloud-utils.jar> com.cloud.utils.net.MacAddress
addr in integer is 5071953436
addr in bytes is  0 1 2e 4f de 1c
addr in char is 00:01:2e:4f:de:1c

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 3b5aa42c6d)
2014-08-13 21:10:19 +02:00
Luis Henrique Okama 260e694e89 bugfix CLOUDSTACK-7309 using findProjectByProjectAccountIdIncludingRemoved
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-13 00:06:17 +02:00
Joris van Lieshout c4b78c3aaa dd with direct io is less impacting on Dom0 kernel resources
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-08-12 13:15:00 +02:00
Hugo Trippaers 9a7cdc0adb Small fix for people that have JDK 1.8 installed on MacOSX and don't bother to fix their links
(cherry picked from commit 8b5ec64842)
2014-08-11 15:58:38 +02:00
Rohit Yadav edb5650c73 appliance: box commands for dumb bash in cleaning branch name, in build.sh
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 21:23:25 +02:00
Jessica Wang d0ff6cd461 CLOUDSTACK-6695: Added support to the UI for uploading a chain of certificates
In the "SSL Certificate" dialog we added:
- new field for the root certificate;
- a button to add intermediate certificates if necessary; when this is pressed, a new field, called "Intermediate certificate 1" is added; pressed again, "Intermediate certificate 2" field is added, and so on.

We upload the certificates in order: first the root certificate (with id=1), then the intermediate certificates (with id=2,3,..) and finally the server certificate.
When uploading a certificate, we wait for the upload to be completed successfully and only then we proceed to uploading the next one. If one fails, we report failure and don't continue with the remaining.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2014-08-08 11:39:38 -07:00
Rohit Yadav bbaefb8e5d appliance: fix branch finding method from e16414e even Junio can be wrong
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 20:27:00 +02:00
Rohit Yadav e16414e56d appliance: use the right way to get git branch name
Taken from Junio C Hamano's blog [1], git's maintainer, he must not be wrong :)

[1] http://git-blame.blogspot.ch/2013/06/checking-current-branch-programatically.html

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 19:20:45 +02:00
Rohit Yadav 493c0a68d2 appliance: change the way we find git branch in build.sh
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 15:42:53 +02:00
Daan Hoogland d29df43c79 add build_date for trouble shooting user-version issues 2014-08-08 15:27:35 +02:00
Daan Hoogland 00265fba34 did git change it output format since this script was made? 2014-08-08 15:22:30 +02:00
Rohit Yadav e77da80e01 CLOUDSTACK-6360: pick setJavaHome from 4.3 and master for 4.4 branch
A JAVA_HOME finder method was implemented by Rajani and got into master and 4.3
but not 4.4: https://reviews.apache.org/r/22721/

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 14:45:47 +02:00
Rohit Yadav 96d6a2a037 CLOUDSTACK-6360: Fix JDK paths in ubuntu packaging init scripts, don't use 1.6
Since we've agreed to use JDK/JRE 1.7, this enforces that for Ubuntu builds
- this fix remove usage of 1.6 paths in JDK_DIR for cloud-{agent, management, usage}.
- adds oracle jdk 1.7 path (in case a user is using that)
- adds mysql-connector-java path to CLASSPATH for usage server
- adds libmysql-java pkg dependency (tested and available for precise and trusty)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 14:12:22 +02:00
Rohit Yadav 72e06b4d9b CLOUDSTACK-6323: Change getUser API arg to userapikey
By default the getUser API picks apikey arg from HTTP request to return the
User object with that api key. We use apikey in the request, so it would return
the same user calling the API. This commit uses the USER_API_KEY in the API
annotation instead.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-08 12:52:58 +02:00
Murali Reddy de85c4d555 CLOUDSTACK-7129: Non-admin user can use deleteNetwork with shared
networks

fix ensures only admin users can delete shared network

(cherry picked from commit 2f293f42d5)
2014-08-08 12:15:40 +02:00
Erik Weber b2efdf20c0 Adding keytool to the list of sudo commands for cloud user to allow certificate creation during startup
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
(cherry picked from commit 451e2ab851)
2014-08-08 11:28:57 +02:00
Daan Hoogland 4c82594145 Merge branch 'hotfix/4.4-readme' into 4.4 2014-08-06 07:49:32 +02:00
Daan Hoogland 7e0697d835 README: some sections from the prior version copied back in.
see commit 3433eb7c09
2014-08-06 07:48:33 +02:00
Daan Hoogland 7f343344a1 Merge remote-tracking branch 'origin/hotfix/4.4-svm-upgrade' into 4.4 2014-08-06 07:38:00 +02:00
Daan Hoogland 89041d2351 Merge remote-tracking branch 'origin/hotfix/4.4-7257' into 4.4 2014-08-06 07:36:01 +02:00
amoghvk e73e7c3939 CLOUDSTACK-7257: Missing LXC mappings, reuse KVM mappings 2014-08-05 09:38:57 -07:00
Daan Hoogland 21a6a6993e remove update to 4.3 templates for 4.4 2014-08-05 17:48:58 +02:00
Rohit Yadav 881275c16c README: Fix links for viewing on Github
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit fc7b2baba3)
2014-08-05 17:31:53 +02:00
Rohit Yadav 7e9269eb2d README: Give CloudStack its much deserved readme file
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d753e765f7)

Conflicts:
	README.md
2014-08-05 17:31:08 +02:00
Rohit Yadav 9315321dac devcloud: user insert on duplicate update in devcloud.sql
This commit modifies insert statements to use the insert on duplicate update
syntax to update configuration table name, values in case primary key already
exists

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-04 22:55:34 +02:00
Daan Hoogland 00c2696e7a upgrade of systemvm templates 2014-08-04 14:12:58 +02:00
Daan Hoogland 86083216de close statement 2014-08-04 12:30:38 +02:00
Rohit Yadav a68d898682 developer: add commonly used glboal config in developer-prefill.sql
This commit adds three commonly used config that developers usually set
after fresh deployment. The account cleanup timeout is set to 60s to speed up
BVT runs.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-08-01 16:44:11 +02:00
Anshul Gangwar cda088470b CLOUDSTACK-7220: fixed building hyper-v agent is broken, commits were not applied in correct order while cherry picking from 4.4-forward to 4.4 2014-08-01 15:50:17 +05:30
Rohit Yadav d79251853b CLOUDSTACK-7211: Add Guest OS mapping before returning VirtualMachineTO object
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 89fabe82b9)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-07-31 19:04:22 +02:00
Kishan Kavala ccee282a74 CLOUDSTACK-6931: Set hypervisor.type in agent.properties using cloudstack-setup -t option. Default is kvm.
(cherry picked from commit 89854de18d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-07-31 18:50:43 +02:00
Wido den Hollander f956ae976f debian: Update the version to 4.4.1-snapshot 2014-07-30 14:43:22 +02:00
amoghvk d3e0ecd130 CLOUDSTACK-6358: KVM mappings for CentOS 6.x and RHEL 6.x
(cherry picked from commit c8ca15b95a)

Conflicts:
	setup/db/db/schema-430to440.sql
2014-07-30 13:38:26 +02:00
Jayapal 865cdc08e5 CLOUDSTACK-7068: addIpToNicCmd changed to BaseAsyncCreate
(cherry picked from commit 252e58381a)

Conflicts:
	api/src/com/cloud/event/EventTypes.java
2014-07-30 13:36:22 +02:00
Nitin Mehta 6d0e43d36b CLOUDSTACK-7000: Fix bugs in ListSnapshotPolicy and updateSnapshotPolicy command
(cherry picked from commit 63c4f02897)
2014-07-30 13:33:22 +02:00
Ian Duffy 9d4d018409 CLOUDSTACK-7005 - Failed to start MS with latest 4.4 RPM builds
(cherry picked from commit f7417d622a)

Conflicts:
	setup/db/db/schema-430to440.sql
2014-07-30 13:33:01 +02:00
Nitin Mehta 6f709f59cc CLOUDSTACK-7000: ListSnapshotPolicy should list by policyid. Introduce updateSnapshotPolicy command
(cherry picked from commit fce21439fa)

Conflicts:
	api/src/com/cloud/event/EventTypes.java
2014-07-30 13:31:14 +02:00
Ian Duffy 75fd63797a Allow for length of password on VMs to be set via global settings
(cherry picked from commit 96412e3e58)

Conflicts:
	setup/db/db/schema-430to440.sql
2014-07-30 13:26:29 +02:00
Nitin Mehta 1fbee507ea CLOUDSTACK-6987: Add support for storing metadata for snapshot policy and controlling policy using display flag
(cherry picked from commit 5cf8edd7ec)

Conflicts:
	setup/db/db/schema-430to440.sql
2014-07-30 13:24:31 +02:00
Anshul Gangwar 8b9166ae0b CLOUDSTACK-6830: Fixed [hyper-v] during VM migration, volumes on zone wide primary
store requires storage migration resulting in failure of VM migration. This also
improves the hostsformigration api. Firstly we were trying to list all hosts and
then finding suitable storage pools for all volumes and then we were checking
whether vm migration requires storage migration to that host. Now the process is
updated. We are checking for only those volumes which are not in zone wide primary
store. We are verifying by comparing volumes->poolid->clusterid to host clusterid.
If it uses local or clusterids are different then verifying whether host has
suitable storage pools for the volume of the vm to be migrated too.

(cherry picked from commit 64153a4371)
2014-07-30 13:21:10 +02:00
Jayapal a7f1d002a8 CLOUDSTACK-6923: updated listLBStickinessPolicies API to list using stickinesspolicy id
(cherry picked from commit b0d726a872)

Conflicts:
	api/src/com/cloud/network/lb/LoadBalancingRulesService.java
	api/src/org/apache/cloudstack/api/command/user/loadbalancer/ListLBStickinessPoliciesCmd.java
2014-07-30 13:19:45 +02:00
Jayapal 970ddd3a57 CLOUDSTACK-6922: Updated events for firewall ingress and egress
(cherry picked from commit 2214bd2502)
2014-07-30 13:14:05 +02:00
Daan Hoogland d387460f44 imports 2014-07-30 13:11:57 +02:00
Nitin Mehta 745ba5cd49 CLOUDSTACK-6895: 1. Populate firstclass entities as uuids in the context instead of dbids for performance.
2. Add ctxDetails in the ParamGenericValidationWorker to avoid warning for api validation
3. Add some missing events.
4. Correcting mapping for ResourceObjectType.NetworkACL and ResourceObjectType.NetworkACLItem

(cherry picked from commit 8a9092c3cd)
2014-07-30 13:10:34 +02:00
Alex Brett f657de5401 Fix for test_01_create_volume to use the correct volume name for KVM
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
(cherry picked from commit 280d167316)
2014-07-30 13:08:59 +02:00