443 Commits

Author SHA1 Message Date
Kelven Yang
5fee891162 merge from master 2012-10-11 17:42:25 -07:00
Hugo Trippaers
aa6355ffe6 Updated master to 4.1.0
mvn release:update-versions -DautoVersionSubmodules=true -Dnonoss -P
client,deps,developer  -DdevelopmentVersion=4.1.0-SNAPSHOT
2012-10-01 11:00:55 -07:00
Alex Huang
387c6fc135 Merge branch 'master' into javelin 2012-09-17 15:31:37 -07:00
Wido den Hollander
0d3a2a3678 agent: Send JSVC error output to syslog
Easy for debugging when the Agent won't start.
2012-09-14 23:19:46 +02:00
Alex Huang
db9cc97ab3 Brought over new changes from master 2012-09-13 11:43:22 -07:00
Manikanta Kattamuri
cfc2b85651 Removing eclipse .classpath and .project files as they are configured to ant build and adding the entries into .gitignore to stop further comitting of the files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-13 14:18:14 -04:00
Wido den Hollander
7eaf537d95 Rename cloud-agent-scripts to cloud-scripts
The management server also depends on a couple of these scripts, so renaming
to cloud-scripts makes more sence then installing cloud-agent-scripts.

In the future we might want to split this up in two packages.
2012-09-13 16:29:01 +02:00
Alex Huang
298d224f83 Added extra maven files 2012-09-11 18:14:42 -07:00
Chip Childers
5f15b98fe3 CLOUDSTACK-46 : Removing mycloud, due to the agreed on deprecation of that feature. 2012-09-11 17:33:20 -07:00
Chip Childers
dccad24566 CLOUDSTACK-48 : Removing stale documentation 2012-09-11 17:33:19 -07:00
David Nalley
c73031fbd9 fixing line endings 2012-09-11 17:33:18 -07:00
Chip Childers
c979425ce3 CLOUDSTACK-46 : Removing mycloud, due to the agreed on deprecation of that feature. 2012-09-07 14:31:02 -04:00
Chip Childers
2afd076921 CLOUDSTACK-48 : Removing stale documentation 2012-09-07 14:24:26 -04:00
David Nalley
75665f5b95 fixing line endings 2012-09-07 14:12:32 -04:00
Alex Huang
a1bd6d7eb7 Merge branch 'master' into javelin 2012-09-06 16:31:32 -07:00
Edison Su
5ae15f8bbf first OSS build 2012-09-05 17:45:25 -07:00
Alex Huang
1d0a10c69e Merged master over to javelin to get new poms and maven build 2012-09-05 14:31:24 -07:00
Alex Huang
6309253de1 Deleted some useless files 2012-08-30 09:59:25 -07:00
Kelven Yang
2300310243 Messaging facility initials for new architecture 2012-08-28 17:58:45 -07:00
olivier lamy
40f9d84ea9 versions defined in parent pom 2012-08-27 21:54:27 +02:00
olivier lamy
a06ed5728c remove intermediate parent poms 2012-08-27 16:43:24 +02:00
olivier lamy
3aa469da2a groupdId is now org.apache.cloudstack 2012-08-25 09:20:21 +02:00
olivier lamy
5ef60aceb1 %s/tab/ws/ 2012-08-25 00:03:23 +02:00
Darren Shepherd
4a4007e652 Add license 2012-08-24 11:18:54 -07:00
Darren Shepherd
ebc0fa458a * Maven 3 support
* Pretty Format POM's
* AWS API compiles now
2012-08-24 11:18:54 -07:00
Darren Shepherd
490e87a617 Fix small compilation issue encountered when building with maven 2012-08-24 11:18:53 -07:00
Darren Shepherd
f826971fea Maven config, initial commit 2012-08-24 11:18:52 -07:00
Kelven Yang
d06d6dae72 add maven eclipse project files from Darren 2012-08-23 17:55:20 -07:00
Kelven Yang
9a51ff3bfc Maven worksplace fixes/patches from Darren 2012-08-23 14:26:27 -07:00
Darren Shepherd
2f6cc4b0cb Add license 2012-08-23 14:26:26 -07:00
Darren Shepherd
ad54ed1790 * Maven 3 support
* Pretty Format POM's
* AWS API compiles now
2012-08-23 14:26:26 -07:00
Darren Shepherd
f78aa9d98a Fix small compilation issue encountered when building with maven 2012-08-23 14:26:25 -07:00
Darren Shepherd
b8e95e435f Maven config, initial commit 2012-08-23 14:26:25 -07:00
Edison Su
b9e8b5152c Update RPM build for 4.0
Update cloud.spec for current state of 4.0, minor waf and init script
fixes for RHEL/CENTOS/Fedora

RB: https://reviews.apache.org/r/6658/
Send-by: shadowsor@gmail.com
2012-08-16 14:48:28 -07:00
Wido den Hollander
d91b7dcd4b agent: Read configuration directive 'workers' for number of threads
The example configuration file said 'workers' was the directive, but the code said
'threads'.

Now we accept both to prevent configuration errors, but the example config remains 'workers'
2012-08-08 22:45:02 +02:00
Wido den Hollander
6c015d4f81 agent: Add default path for KVM scripts to sample configuration 2012-08-08 22:31:06 +02:00
Wido den Hollander
27a43f9a97 agent: Remove dummy.agent.properties
This configuration file isn't being used and would only confuse admins
2012-08-08 22:31:06 +02:00
Wido den Hollander
5238a83688 agent: Update sample configuration file
It should now contain everything you need to run your agent
2012-08-08 22:31:06 +02:00
Wido den Hollander
70ae5fed77 agent: Fix a couple of typos in cloud-setup-agent
This tool needs a lot more work though!
2012-08-08 22:31:06 +02:00
Edison Su
387fe57771 don't log null response 2012-08-01 16:54:50 -07:00
Edison Su
88b317f7fd Do not log null lines in agent logfile 2012-08-01 15:26:41 -07:00
chip.childers@gmail.com
90c5e89320 Agent directory license headers. 2012-07-31 14:07:01 -04:00
Wido den Hollander
da0db631d0 agent: Correct environment variable name
Otherwise the agent won't find it's scripts.
2012-07-31 11:51:59 +02:00
Edison Su
7a0a9231c3 Move KVM related code into plugins/hypervisor/kvm, a new jar file is
created: cloud-kvm.jar
2012-07-30 14:55:47 -07:00
kishan
9611a017e9 bug CS-15389: Added prepareStop to Virtualmachine manager and moved network usage collection into prepareStop of VR manager 2012-07-27 23:37:46 -04:00
Wido den Hollander
3f4e906b1d agent: Remove cloud-cleanup.conf for Ubuntu
This is a very dangerous file. Although we do not package it, it would be very dangerous to do so.

If this file would be present on a HyperVisor it would cause all instances to be stopped on a libvirt restart.

There is no need for stopping all instances when libvirt is being stopped (or restarted).
2012-07-27 23:37:45 -04:00
Wido den Hollander
406fd95d87 Add RBD support for primary storage
This patch adds RBD (RADOS Block Device) support for primary storage in combination with KVM.

To get this patch working you need:
- libvirt-java 0.4.8
- libvirt with RBD storage pool support (>0.9.13)
- Qemu with RBD support (>0.14)

The primary storage does not support all the functions of CloudStack yet, for example snapshotting is disabled
due to the fact that backupping up a RBD snapshot is not possible in the way CloudStack wants to do it.

Creating templates from RBD volumes goes well, creating a VM from a template however is still a hit-and-miss.

NFS primary storage is also still required, you are not able to run your System VM's from RBD, they will need
to run on NFS.

Other then these points you can run instances with RBD backed disks.
2012-07-26 22:22:26 +02:00
Edison Su
f497c7c031 Bug: HA takes a lot of time to migrate VMs (trigger HA) to another KVM
host if there are multiple storage pools in a cluster.

The issue is as follows:
1. When CloudStack detects that a host is not responding to ping
requests it'll send a fence command for this host to another host in the
cluster.
2. The agent takes a long time to respond to this check if the storage
is fenced. This is because the agent checks if the first host is writing
to its heartbeat file on all pools in the cluster. It is doing this in a
sequential manner on all storage pool.

Making a fix to get rid of sleep, wait during HA. The behavior is now
similar to Xenserver.

RB: https://reviews.apache.org/r/6133/
Send-by:devdeep.singh@citrix.com
2012-07-25 10:17:09 -07:00
Wido den Hollander
ae60cd7b87 init: log_process_msg doesn't work, so use log_daemon_msg for that.
We also exit earlier, we don't display that we are even trying to start.

When we detect the agent is already running we exit right away with a message.
2012-07-25 14:56:30 +02:00
Wido den Hollander
4d9dd94b53 init: LSB compliant init script
With LSB there is no need for having different init script for different distributions.

This init script should be fully LSB compliant and should work on all Linux platforms we support.

RHEL, (Open)SUSE, Debian and Ubuntu all support at least LSB 3.1
2012-07-25 14:08:41 +02:00