333 Commits

Author SHA1 Message Date
Hugo Trippaers
9f00302ad3 Summary: Polish and shine
Document the used options in agent.properties

Default the bridge driver to something sensible based on the
configuration of the bridge type.
2013-01-15 09:18:24 +01:00
Hugo Trippaers
91673b10b8 Summary: Get started with packaging cloud-agent
Modify the spec file to package the agent files and the scripts

Some changes to the poms to put the java dependencies in the right place.

Move the agent script to the dedicated os dir in packaging.
2013-01-07 22:18:01 +01:00
Hiroaki Kawai
a28f4cac3c HttpClient needs releaseConnection method call
reviewboard: https://reviews.apache.org/r/8186/

Signed-off-by: Hugo Trippaers <trippie@gmail.com>
2012-11-29 20:23:30 +01:00
Hiroaki Kawai
c8832cd4b6 Commit https://reviews.apache.org/r/8075/
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2012-11-19 12:02:26 +01:00
Marcus Sorensen
263b8eec14 Summary: Adding utility to make system vm maintenance easier for admins
Detail: new script called cloud-ssh replaces the long
'ssh -i /root/.ssh/id_rsa.cloud -p 3922 root@169.254.0.12'
users can now just run 'cloud-ssh 169.254.0.12'. Also adds it to deb and rpm
builds.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1353086232 -0700
2012-11-16 10:17:12 -07:00
Hugo Trippaers
25a95644d6 Summary: Cleanup more dependencies
Agent does not need jetty for anything, so remove the dependency.

Console-proxy should only depend on agent and agent will pull the other
dependency.

Patches does not require any dependencies
2012-11-07 18:47:16 +01:00
Edison Xu
b101dc7279 KVM agent connet:
* send StartupAnswer right after StartupCommand is recieved
* if post processor going wrong, send out readycommand with error message to agent, then agent will exit
2012-11-05 10:00:16 -08: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
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
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
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
Edison Su
5ae15f8bbf first OSS build 2012-09-05 17:45:25 -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
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
Wido den Hollander
fb16545510 Fix include location for the SUSE init script. 2012-07-25 00:02:42 +02:00
Wido den Hollander
5c5a4e3a10 Modify the other Agent init scripts so they use JSVC as well 2012-07-24 23:59:37 +02:00
Wido den Hollander
8dfaa76d87 Fix for the Ubuntu Agent init script.
The last commit didn't use some tokens, revert that
2012-07-24 23:56:08 +02:00
Wido den Hollander
eab3e4783e Remove cloud-daemonize and use JSVC
We now use JSVC for daemonizing our agent and usage server.
2012-07-24 19:32:39 +02:00
Wido den Hollander
5e9a193f2c agent: Replace tabs by 4 spaces
A lot of old code still has tabs inspead of 4 spaces for indentation.

The Coding Convention requires spaces, so we correct it.
2012-06-23 11:16:16 +02:00
Edison Su
e7995d09dc CS-15281: Removal of third party dependencies in Citrix code base.
[Problem]
CloudStack uses a significant amount of third party software.  As part of the move to ASF there is a certain set of licenses that are compatible with ASF policy.  We need to make sure that every dependency we have is in that set. If it's not we have to remove it.

[Solution]
First set: Removing JnetPcap.

[Reviewers]
Edison Su, David Nalley

[Testing]
    [Test Cases]
     Executed ANT build-all sucessfully after removing JnetPcap and its respective dependencies.

    [Platform]
     Fedora release

Signed-off-by: Pradeep <pradeep.soundararajan@citrix.com>
2012-06-21 10:03:37 -07:00
Wido den Hollander
42c078422c ubuntu: Fix the wait_for_network method in the agent init script.
The init script was waiting for cloudbr0 to come up, but it's not mandatory that this bridge is available.

We now wait for at least one bridge to be up before starting the cloud agent.
2012-06-21 12:20:04 +02:00
Wido den Hollander
bc94948e06 agent: Set the listen addr of a VM specificly to the private IP of a host
Now users have to modify their /etc/libvirt/qemu.conf vnc_listen, this is not needed anymore
2012-06-20 15:29:26 +02:00
Wido den Hollander
a2de5fb7df Fix small typo for VNC settings 2012-06-20 10:54:52 +02:00
Wido den Hollander
bdec29b3dc Create iptable rules for all bridges assigned to a system VM
The default_network_rules_systemvm method in security_group.py only created the appropriate rules for
just one bridge.

This however leads to traffic not being forwarded to the virtual machine in the case of the system VMs
both (console & storage) having different bridges in basic networking.

This patch makes sure rules are generated for all target devices based on their source device/bridge

It however excludes the LinkLocalBridge since no filtering is needed on that bridge.
2012-06-19 12:20:22 +02:00