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
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
David Nalley
c15948a3ef
committing Chip Childers patches fixing licensing headers
...
Applying to the following directories:
* api
* deamonize
* agnet
* agent-simulator
* cloud-cli
2012-06-12 12:32:58 -04:00
Robert Schweikert
980f7931f7
- support SLES and openSUSE as configuration and build targets
2012-05-27 19:31:27 -04:00
Kelven Yang
e8a5d51da7
Support console access through rebooting with XAPI session re-negotiation
2012-05-16 17:02:22 -07:00
Edison Su
26e78bd0b7
send ssh key to kvm host, even if it's developer env
2012-05-16 14:51:04 -07:00
Edison Su
e323a4f725
CS-14871 return hostip in getvncportcommand
2012-05-16 10:24:46 -07:00
Edison Su
bafc3f2a5a
CS-14521
...
Remove CLVM, due to license issue
2012-05-15 15:13:15 -07:00
Kelven Yang
c5083787c2
Hardening console proxy AJAX protocol to address security concerns
2012-04-19 12:10:33 -07:00
Sheng Yang
b31f383398
CS-14369: Fix Quick Installation on the single host
...
Notice, even after this fix, there would be 2 entries in the mshost table, after
mgmt server restarted. But it should be harmless, since only one of them is
"Up".
Some message in the log would indicate something wrong with the original mshost
entry, but still, it seems harmless.
2012-04-18 20:19:17 -07:00
David Nalley
54d9686a1c
more line ending issues - agent
2012-04-06 17:58:12 -04:00
frank
2f634c0913
Switch to Apache license
2012-04-03 04:50:05 -07:00
Edison Su
0d99538c4b
bug 14535: fix multiple data disk; status 14535: resolved fixed; Reviewed-by: sheng
2012-03-28 17:44:20 -07:00
Edison Su
04312dabc4
bug 14024: apply sweller's patch. status 14024: resovled fixed; Reviewed-by: sweller
2012-03-23 17:58:30 -07:00
Edison Su
35911856db
bug 14168: add re-try to mgt server, in case mgt server is down. status 14168: resolved fixed
2012-03-14 10:50:48 -07:00
Sheng Yang
edcf95a6f0
Change KVM's delimiter from "," to "%"
...
In order not to confuse with commandline parameters
2012-03-13 15:59:09 -07:00
Edison Su
cf0a4e0274
bug 14034: add newline around configuration file. status 14034: resolved fixed. Reviewed-by: frank
2012-02-27 15:40:27 -08:00
Edison Su
a148ae3fbf
bug 13958: enable virtio for all the centos/fedora/ubuntu guests. status 13958: resolved fixed. Reviewed-by: frank
2012-02-23 11:41:21 -08:00
Edison Su
86ce1b0675
bug 13857: set vm migration speed as the network speed
...
status 13857: resolved fixed
Reviewed-by: Frank
2012-02-17 15:43:52 -08:00
David Nalley
b6ba3c0e3d
more formatting changes
2012-02-10 20:47:52 -05:00
David Nalley
c11d702cac
fixing some more formatting issues
2012-02-10 20:34:44 -05:00
David Nalley
783b9e7f6e
format changes
2012-02-10 20:04:10 -05:00
David Nalley
66b33b4f57
fixing some whitespace issues - checkstyle
2012-02-10 19:22:03 -05:00
Edison Su
83a329af4e
fix build
2012-02-09 14:58:01 -08:00
Edison Su
46492ebbf6
fix storage mount point is not available issue
2012-02-09 14:56:41 -08:00
Edison Su
5b11e67a18
Agent disconnected due to so many Fencecommand send to agent, cause agent can't get pingaswer from mgt server, then agent thinks it's ping timeout, reconnect to mgt server.
2012-02-09 14:56:41 -08:00
David Nalley
1048a42a24
fixing more whitespace issues
2012-01-25 16:55:32 -05:00
David Nalley
9872f074de
just a few more whitespace issues
2012-01-25 03:00:36 -05:00
David Nalley
79b1584e74
cleaning up a few more whitespace issues
2012-01-25 02:56:55 -05:00
David Nalley
49ebeb901e
fixing more whitespace issues
2012-01-25 00:18:37 -05:00
David Nalley
3fb42e3092
cleaning up more whitespace issues, complying with style guide
2012-01-24 22:53:59 -05:00
David Nalley
9a323b9f09
fixing some whitespace issues and line length issues to conform to the style guide
2012-01-24 22:44:43 -05:00
Edison Su
ecab972060
execute fencecommand in seq for kvm, as there are only 5 default nio reading work threads on kvm agent. pinganswer may not be got serviced immediately, then agent will reconnect to mgt server again and again
2012-01-20 17:04:27 -08:00
Edison Su
bced9a6e48
advanced startup command
2012-01-20 11:54:32 -08:00
Edison Su
5fcaa5a659
for windows vm, use localtime
2012-01-19 15:07:03 -08:00
Edison Su
46257f71d5
add debian 6 as pv as guest
2012-01-17 17:00:58 -08:00
Edison Su
15b57e6974
fix multiple data disks booting issue on windows vm
2012-01-13 18:36:53 -08:00
Edison Su
1d352f1e2c
bug 12148: add checkpoint for storage migration
...
status 12148: resolved fixed
2012-01-13 15:19:14 -08:00
Edison Su
a7daf4b9b4
set kvm HA heartbeat log level to warn
2012-01-12 14:45:53 -08:00
frank
52610ffcb3
add copyright header to shell scripts
2012-01-11 18:41:53 -08:00
Edison Su
fe667e949e
fix Maintenance releated issues with kvm:
...
1. put host into Maintenance, will send a Maintenance command to host, tell host that do not reconnect to mgt server
2. cancel Maintenance, will ssh into kvm host, and restart cloud-agent, which will reconnect to host
2012-01-11 17:36:58 -08:00
Edison Su
470ec2cabc
bug 10586: apply Nils's patch
...
status 10586: resolved fixed
2012-01-10 16:20:34 -08:00
frank
30680542bf
Bug 12777 - Add storage network configuration into CloudStack
...
add storage network support for KVM
2012-01-06 11:07:14 -08:00
Edison Su
b39d29ef76
bug 12898:fix storage related bugs
...
status 12898: resolved fixed
2012-01-05 18:07:12 -08:00
Edison Su
653290a85c
set creating template timeout from cmds.timeout
2011-12-20 18:12:41 -08:00
Edison Su
031671edd3
bug 12192: umount iso if it's dettached, or vm is stopped
...
status 12192: resolved fixed
2011-12-20 16:46:48 -08:00
Edison Su
56fcfd01bd
bug 12627: if nic stats less than 0, just return 0
...
status 12627: resolved fixed
2011-12-19 18:04:10 -08:00
frank
761069440e
Bug 12194 - Ubuntu init script can fall into infinite loop
...
Bug 11723 - (Ubuntu Install) Management Server service won't restart
patch from community
status 11723: resolved fixed
2011-12-19 14:50:04 -08:00
Edison Su
da5fb5097c
put the default network as cloudbr0, if not specified
2011-12-15 17:06:32 -08:00
Edison Su
e60f356f62
set the cpu weight based on cpu * cores
2011-12-15 15:13:33 -08:00
Naredula Janardhana Reddy
e4d94650ea
Bug 12449: KVM-Default network rules for system vm and uservm based on Isolation Type.
2011-12-13 17:43:20 +05:30
Edison Su
dfa9ae51bc
fix reboot vm, then attached disk is lost
2011-12-06 11:09:33 -08:00
Edison Su
2e79da0ce5
kvm is working now
2011-12-05 18:07:00 -08:00
Naredula Janardhana Reddy
09905b641b
bug 10617: merge code from branch bug10617.
2011-12-01 14:17:52 +05:30
Naredula Janardhana Reddy
f1b99f4f07
Revert "bug 10617: merging code from branch bug10617"
...
This reverts commit 8bc33448b9220534ba0ddc6c642ffb1e69d5844e.
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
2011-11-11 20:23:26 +05:30
frank
caf945bca2
Don't allow Agent send out StartupCommand if it can not get its local IP address,
...
otherwise mgmt server will get an incomplete StartupCommand
2011-11-10 17:37:45 -08:00
Alex Huang
d6c22c42fe
Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss
2011-11-10 15:26:39 -08:00
Alex Huang
f6fcaa49ec
Merge complete except for virtualnetworkappliancemanager
2011-11-10 15:18:16 -08:00
Naredula Janardhana Reddy
02adbd4bd3
bug 10617: merging code from branch bug10617
2011-11-10 15:23:48 +05:30
Edison Su
6841e265d3
bug 10330: finally merge Rommer's CLVM patch
...
status 10330: resolved fixed
2011-11-02 18:03:58 -07:00
Edison Su
15641ef1a7
fix build
2011-11-01 17:06:39 -07:00
Edison Su
dd6ed6b108
bug 10330: refactor storage code befor merge clvm code
2011-10-31 20:25:26 -07:00
anthony
46dac852fa
Merge branch 'swift'
...
Conflicts:
server/src/com/cloud/agent/AgentManager.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/host/dao/HostDao.java
server/src/com/cloud/host/dao/HostDaoImpl.java
server/src/com/cloud/resource/ResourceManagerImpl.java
server/src/com/cloud/server/ManagementServerImpl.java
server/src/com/cloud/storage/download/DownloadMonitorImpl.java
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2011-10-31 15:04:48 -07:00