Commit Graph

549 Commits

Author SHA1 Message Date
Kelven Yang 453b31f3f4 Refactor ComponentLocator to be based on Spring so that legacy way of loading component can coexist with Spring 2012-11-07 15:03:23 -08: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
Alex Huang 91e68b5f2c A bunch of .project changes again 2012-11-04 19:25:03 -08:00
Alex Huang f92ce72639 Correct dependency errors 2012-10-24 11:12:40 -07:00
Edison Su 059f605ace add more interfaces 2012-10-22 17:50:51 -07:00
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
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
anthony 510d1dbef7 Swift : upload template to Swift and sync between Swift and secondary storage 2011-10-24 18:48:16 -07:00
Edison Su 92eaf49f29 Add storage migration 2011-10-24 15:59:47 -07:00
anthony 0df249172d Swift: DeleteSnapshotBackupCommand and DeleteSnapshotsDirCommand are executed in SSVM 2011-10-21 19:53:48 -07:00
prachi 8570b25506 NAAS: APIServer changes to introduce framework to read commands from pluggable components having separate commands.properties file
Changes:
- Added a new interface 'PluggableService'
- Any component that can be packaged separately from cloudstack, can implement this interface and provide its own property file listing the API commands the component supports
- As an example have made VirtualNetworkApplianceService pluggable and a new configureRouter command is added
- ComponentLocator reads all the pluggable service from componentLibrary or from components.xml and instantiates the services.
- As an example, DefaultComponentLibrary adds the pluggable service 'VirtualNetworkApplianceService'
- Also components.xml.in has an entry to show how a pluggable service can be added, but it is commented out.
- APIServer now reads the commands for each pluggable service and when a command for such a service is called, APIServer sets the required instance of the pluggable service in the coomand.
- To do this a new annotation '@PlugService' is added that is processed by APIServer. This eliminates the dependency on the BaseCmd to instantiate the service instances.
2011-10-11 17:34:57 -07:00
Edison Su 29e389eb87 bug 11669: report host cpu freq from /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq. It's a bug in libvirt: http://comments.gmane.org/gmane.comp.emulators.libvirt/33277
status 11669: resolved fixed

bug 11669: divide 1000, mgt server needs Mhz
status 11669: resolved fixed
2011-10-10 18:44:59 -07:00
Edison Su d509c777a6 Fixed: only the first snapshot got backedup to secondary storage, if multple snapshot taken.
Reviewed-by: anthony
2011-09-22 15:04:52 -07:00
Edison Su a04f436147 bug 11423: get storage pool stats from "df --total" instead from libvirt
status 11423: resolved fixed
2011-09-13 18:53:21 -07:00
Edison Su 7bbe757d5b Add "Other PV" for kvm, to install pv driver in windows:
1. create a VM from iso/template whose guest os type is "Windows*"
2. attach a disk to windows VM
3. install virtio disk driver
4. stop the vm, and create template from it, chose guest os type as "Other PV"
5. create vm from the template created at step 4. Then this vm will have virtio disk, and virtio nic. Need to install virtio nic driver after VM booting up.
2011-09-13 11:07:47 -07:00
Chiradeep Vittal f41b352d36 revert egress rules implementation pending review
Reverts a19212703b9734ebd44ebf55cfdd81ebdc9d7fe4
Reverts 24e4e44b8f0712a37147a3777833de3f9e24829e
2011-09-12 14:45:58 -07:00
Chiradeep Vittal d817f3c364 Revert "bug 10617: Added Egress rules to Security groups."
revert pending review

This reverts commit a19212703b9734ebd44ebf55cfdd81ebdc9d7fe4.
2011-09-12 14:45:58 -07:00
frank 1ce0ad67c8 Bug 9479 - provide option for built in https
status 9479: resolved fixed
2011-09-01 16:01:28 -07:00
anthony f47bf2e4cf fixed eclipse classpath 2011-08-31 13:35:37 -07:00
Naredula Janardhana Reddy 854f81962f bug 10617: Added Egress rules to Security groups.
Description :
   API's:
     -  Two new api's authorizeSecurityGroupEgress,revokeSecurityGroupEgressCmd are added. These two API's are similer to ingress rule API's.
           - authorizeSecurityGroupEgress :Authorizes a particular egress rule for this security group . Usageof API is very similer to that of authorizeSecurityGroupIngress except that instead of source cidr  there will be destination cidr. By default like ingress, all the outgoing flows are blocked.
           - revokeSecurityGroupEgress : It is similer to revokeSecurityGroupIngress api, It removes the egress rule.
     -  listSecurityGroup API's response changed. It include's egress list apart from the existing ingress rules in the output of the API.

   Hypervisors :
      - It is implemented in Xen and KVM.

   Pending Tasks :  Blocking using destination security groups.

   Previous commits: c9fda641673df7701f44963ef27e1d488f121219 , 24e4e44b8f0712a37147a3777833de3f9e24829e
2011-08-30 16:28:35 +05:30
Edison Su 4e7d4abe3d bug 10931: if local.storage.uuid not found, generate a new one instead of throw exception
status 10931: resolved fixed
2011-08-29 11:06:55 -07:00
Naredula Janardhana Reddy 9feb05ac13 bug 10617: This is Intermediate commit for Egress rules implementation in security groups.
previous commit: c9fda641673df7701f44963ef27e1d488f121219 ( this under bug 1067, typing error)
        changes: 1) partially implemented  listing of egress rules along with ingress rules.
                 2) partially implemneted egress rules for KVM
2011-08-25 12:18:33 +05:30
frank b3478c377e Full opensource 2011-08-23 19:52:19 -07:00
alena 8a7feb8ec1 Merge branch '2.2.y'
Conflicts:
	agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java
	api/src/com/cloud/agent/api/routing/LoadBalancerConfigCommand.java
	api/src/com/cloud/agent/api/to/FirewallRuleTO.java
	api/src/com/cloud/agent/api/to/IpAddressTO.java
	api/src/com/cloud/agent/api/to/PortForwardingRuleTO.java
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/BaseCmd.java
	api/src/com/cloud/api/ResponseGenerator.java
	api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
	api/src/com/cloud/api/commands/CreateIpForwardingRuleCmd.java
	api/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java
	api/src/com/cloud/api/commands/CreatePortForwardingRuleCmd.java
	api/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java
	api/src/com/cloud/api/commands/ListCapabilitiesCmd.java
	api/src/com/cloud/api/commands/UpdateNetworkCmd.java
	api/src/com/cloud/api/response/CapabilitiesResponse.java
	api/src/com/cloud/network/Network.java
	api/src/com/cloud/network/NetworkService.java
	api/src/com/cloud/network/firewall/FirewallService.java
	api/src/com/cloud/network/lb/LoadBalancingRule.java
	api/src/com/cloud/network/lb/LoadBalancingRulesService.java
	api/src/com/cloud/network/rules/FirewallRule.java
	api/src/com/cloud/network/rules/RulesService.java
	api/src/com/cloud/offering/NetworkOffering.java
	client/tomcatconf/commands.properties.in
	cloud.spec
	core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
	core/src/com/cloud/hypervisor/xen/resource/CitrixHelper.java
	core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	core/src/com/cloud/storage/template/DownloadManagerImpl.java
	core/src/com/cloud/vm/DomainRouterVO.java
	debian/cloud-deps.install
	patches/systemvm/debian/config/etc/init.d/cloud-early-config
	patches/systemvm/debian/config/root/ipassoc.sh
	patches/systemvm/debian/config/root/loadbalancer.sh
	scripts/vm/hypervisor/kvm/rundomrpre.sh
	scripts/vm/hypervisor/xenserver/vmops
	server/src/com/cloud/agent/manager/AgentAttache.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/agent/manager/AgentMonitor.java
	server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
	server/src/com/cloud/alert/ClusterAlertAdapter.java
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/api/ApiServer.java
	server/src/com/cloud/cluster/ClusterManagerImpl.java
	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/configuration/ConfigurationManager.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/configuration/DefaultComponentLibrary.java
	server/src/com/cloud/deploy/FirstFitPlanner.java
	server/src/com/cloud/ha/HighAvailabilityManagerImpl.java
	server/src/com/cloud/host/dao/HostDaoImpl.java
	server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
	server/src/com/cloud/network/LoadBalancerVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/dao/FirewallRulesDao.java
	server/src/com/cloud/network/dao/FirewallRulesDaoImpl.java
	server/src/com/cloud/network/element/DhcpElement.java
	server/src/com/cloud/network/element/VirtualRouterElement.java
	server/src/com/cloud/network/firewall/FirewallManagerImpl.java
	server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/network/rules/FirewallManager.java
	server/src/com/cloud/network/rules/FirewallRuleVO.java
	server/src/com/cloud/network/rules/PortForwardingRuleVO.java
	server/src/com/cloud/network/rules/RulesManagerImpl.java
	server/src/com/cloud/network/rules/StaticNatRuleImpl.java
	server/src/com/cloud/network/security/SecurityGroupListener.java
	server/src/com/cloud/network/security/SecurityGroupManagerImpl.java
	server/src/com/cloud/offerings/NetworkOfferingVO.java
	server/src/com/cloud/server/ConfigurationServerImpl.java
	server/src/com/cloud/server/ManagementServerImpl.java
	server/src/com/cloud/storage/StorageManager.java
	server/src/com/cloud/storage/StorageManagerImpl.java
	server/src/com/cloud/storage/dao/VMTemplateHostDaoImpl.java
	server/src/com/cloud/storage/download/DownloadMonitorImpl.java
	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
	server/src/com/cloud/upgrade/dao/Upgrade228to229.java
	server/src/com/cloud/upgrade/dao/Upgrade229to2210.java
	server/src/com/cloud/user/AccountManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
	server/src/com/cloud/vm/dao/DomainRouterDao.java
	server/src/com/cloud/vm/dao/DomainRouterDaoImpl.java
	setup/db/create-index-fk.sql
	setup/db/create-schema.sql
	setup/db/db/schema-222to224.sql
	setup/db/db/schema-227to228.sql
	setup/db/db/schema-228to229.sql
	setup/db/db/schema-229to2210.sql
	tools/testClient/README
	ui/scripts/cloud.core.instance.js
	utils/src/com/cloud/utils/SerialVersionUID.java
	utils/src/com/cloud/utils/db/ConnectionConcierge.java
	utils/src/com/cloud/utils/db/Merovingian2.java
	utils/src/com/cloud/utils/db/Transaction.java
	utils/src/com/cloud/utils/nio/Link.java
	utils/src/com/cloud/utils/nio/NioConnection.java
	utils/src/com/cloud/utils/time/InaccurateClock.java
2011-08-22 20:28:30 -07:00
Kelven Yang 085bd36035 bug 11137: don't start HTTP listen if it is already started 2011-08-15 18:57:46 -07:00
Kelven Yang ced9e1b25e bug 11137: don't start HTTP listen if it is already started 2011-08-15 18:57:06 -07:00
Edison Su 71da03b69d bug 10809: add copyvolume for kvm
status 10809: resolved fixed
2011-08-09 15:33:32 -07:00
Edison Su 2c56b83da6 bug 10809: add copyvolume for kvm
status 10809: resolved fixed
2011-08-09 15:33:18 -07:00
anthony 37dcec77bb Bug 10197:
implement pool-wise VM sync,
    For XenServer, VM fullSync is pool-wise now, VM deltaSync is still per host

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-08-02 17:31:36 -07:00
anthony dc7ff2b5ad Bug 10197:
implement pool-wise VM sync,
    For XenServer, VM fullSync is pool-wise now, VM deltaSync is still per host
2011-08-02 16:52:24 -07:00
Edison Su 8bcad6960c add rhel6.1 support 2011-07-29 20:05:01 -07:00
Edison Su 22483a9c13 add RHEL 6.1 support 2011-07-29 19:14:15 -07:00
Edison Su c3174664de after vm reboot, change the security group if needed 2011-07-29 15:28:16 -07:00
frank 262e6784e5 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:41:38 -07:00
frank 1381c58fa1 Bug 10860 - PremiumUpgrade is not run when upgrading to 2.2.8
Use a new target "system-integrity-checker" in components.xml/components-premium.xml.
All checkers must be explicitly specified in XML file, they will execute before any components load

status 10860: resolved fixed
2011-07-27 17:32:12 -07:00
frank 4c9faa84ec Clean up unused files
agent/patch/patch.tgz
agent/patch/redopatch.sh
2011-07-21 17:42:47 -07:00
Edison Su 7e195ae6ae bug 10440: ipassoca failed, if the public network is untagged
status 10440: resolved fixed
2011-07-08 13:50:02 -07:00
Edison Su 827c71a9f0 wait for 30s, after stop agent 2011-07-08 13:33:15 -07:00
Edison Su e72fed3782 fix meta data for cloudzone 2011-07-08 13:33:05 -07:00
Edison Su 8becb77674 try 5 times if write heartbeat failed 2011-07-08 13:32:17 -07:00
Edison Su a180e3f341 if iso is installed, don't include it into ssvm 2011-07-08 13:32:05 -07:00
Edison Su 1c67301146 don't include the whole /usr/share/java/ directory in classpath, or you will get stackoverflow, and delete vm data folder after vm stopped 2011-07-08 13:31:00 -07:00
Edison Su 5bee237972 fix NPE when stopvm 2011-07-08 13:19:49 -07:00
Edison Su 0574b84e35 bug 9793: remove the thirdparty jar files, then size of cloudzone tar ball is reduced to 4M.
status 9793: resolved fixed
2011-07-08 13:18:14 -07:00
Edison Su e5833731f8 reduce cloudzone package size, hopefully down to < 5M 2011-07-08 13:17:52 -07:00
Edison Su bc64656e6a reduce agent package size 2011-07-08 13:17:39 -07:00
Edison Su 77add5aa93 bug 10212: Finally, user data works. Don't return newline to them
status 10212: resolved, fixed
2011-07-08 13:17:14 -07:00
Edison Su 4a4b03fa01 fix user data 2011-07-08 13:02:38 -07:00
Edison Su d6e0d282d8 bug 9896: RHEL 6 doesn;t support to attach an SCSI disk to a windows VM, then I have to attach a virtio disk.
So for a windows guest, the root disk is an IDE disk(in case there is no virtio driver installed inside guest), but all the data disks will be virtio disks.
That means if you want this feature, people need to install virtio disk driver inside windows guest to get data disk work.
status 9896: resolved fixed
2011-07-08 13:02:38 -07:00
Edison Su 3166b237cb bug 10440: ipassoca failed, if the public network is untagged
status 10440: resolved fixed
2011-06-27 16:08:30 -04:00
Edison Su cd6eba3cde wait for 30s, after stop agent 2011-06-22 17:47:29 -04:00
Sheng Yang 345d747913 Add more _selector.close()
Also add more log.
2011-06-22 14:23:41 -07:00
Edison Su 0377c6bf0d fix meta data for cloudzone 2011-06-22 17:02:12 -04:00
Sheng Yang 64b2293a50 Add more _selector.close()
Also add more log.
2011-06-22 14:24:12 -07:00
Alex Huang a254e90ab3 Renamed IPAssoc to IpAssoc to be consistent with agent commands 2011-06-21 10:15:42 -07:00
Alex Huang 8459ae0beb Renamed IPAssoc to IpAssoc to be consistent with agent commands 2011-06-21 09:25:29 -07:00
Edison Su 5483bc21de try 5 times if write heartbeat failed 2011-06-17 17:38:58 -04:00
Edison Su 0a8421fe66 if iso is installed, don't include it into ssvm 2011-06-17 15:45:28 -04:00
Edison Su 980dd69478 don't include the whole /usr/share/java/ directory in classpath, or you will get stackoverflow, and delete vm data folder after vm stopped 2011-06-16 12:14:24 -04:00
Edison Su 1fa00d14b1 fix NPE when stopvm 2011-06-15 15:28:35 -04:00
Edison Su fc2ed28227 bug 9793: remove the thirdparty jar files, then size of cloudzone tar ball is reduced to 4M.
status 9793: resolved fixed
2011-06-14 15:13:14 -04:00
Edison Su db7a01766c reduce cloudzone package size, hopefully down to < 5M 2011-06-14 14:35:38 -04:00
Edison Su 5b19a5e731 reduce agent package size 2011-06-13 18:14:51 -04:00
Edison Su 4d3481ac5e bug 10212: Finally, user data works. Don't return newline to them
status 10212: resolved, fixed
2011-06-10 15:34:06 -04:00
Edison Su 2da052a463 fix user data 2011-06-09 18:04:48 -04:00
Edison Su e7365fd143 bug 9896: RHEL 6 doesn;t support to attach an SCSI disk to a windows VM, then I have to attach a virtio disk.
So for a windows guest, the root disk is an IDE disk(in case there is no virtio driver installed inside guest), but all the data disks will be virtio disks.
That means if you want this feature, people need to install virtio disk driver inside windows guest to get data disk work.
status 9896: resolved fixed
2011-06-08 16:11:02 -04:00
Edison Su 358fb9aba6 add wait for network before starting agent 2011-06-02 22:38:13 -04:00
Edison Su 47d52ad937 Never get the upstart script stable enough
fall back to systemV init script
Revert "Try upstart init script in the next round"

This reverts commit da56f8e92e74b2e06df66da03e1b77b3a13cb97d.
2011-06-02 22:38:13 -04:00
Edison Su 5caafcbcb0 change log level to debug 2011-06-01 17:39:02 -04:00
Edison Su d6e6190c62 bug 10107,10108: change agent log level from DEBUG to INFO
status 10107: resovled,fixed
status 10108: resovled,fixed
2011-06-01 17:09:39 -04:00
Edison Su 768d990446 Try upstart init script in the next round 2011-05-31 16:38:09 -04:00
Edison Su baa638a352 fix user data 2011-05-27 21:33:17 -04:00
Edison Su 59a6e2157a fix user data, and template sync 2011-05-27 19:44:26 -04:00
Edison Su 2e76571004 Revert "move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state"
This reverts commit 1a2ba7eeee69f9b0a789a787383cf429e9d4c11c.
2011-05-27 12:53:53 -04:00
Edison Su 41e72a809b move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state 2011-05-27 12:01:02 -04:00
Edison Su 9528b4de4f remove cgroup on ubuntu, as sometimes it hang reboot 2011-05-26 19:03:09 -04:00
Edison Su ba6af493cb fix user_data fetch 2011-05-26 15:33:27 -04:00
Edison Su 82ab4fcde4 localstorage uuid is generated by uuidgen, other than from hostip+localstoragepath 2011-05-26 11:52:28 -04:00
anthony 37e6ded80c bug 10023: only set ip route for internal DNS
status 10023: resolved fixed
2011-05-25 17:39:20 -07:00
Edison Su 516ef2c67f put pingtask is in a seperate thread pool 2011-05-20 16:53:41 -04:00
Alex Huang 9c69a983ba session info within sequence numbers 2011-05-17 18:01:11 -07:00
Alex Huang ab49c70add Added some annotations for logging commands 2011-05-16 10:55:18 -07:00
Edison Su 47380dc20e fix add host 2011-05-12 15:03:15 -04:00
Sheng Yang 0c1ad8ac88 Fix another "Too many open file open"
Resources need to be released before creating new NioClient instance during the
reconnecting.
2011-05-11 16:48:27 -07:00
Edison Su 736ed1ba69 rename cloud to cloudutils 2011-05-09 10:09:09 -04:00
Edison Su cbf2b03e31 refactore cloud related tools 2011-05-06 19:54:52 -04:00
Kelven Yang 7c2bcefe71 bug 9371: serve client request only with running proxy VMs, serialize proxy VM launch 2011-05-05 14:59:20 -07:00
Edison Su f5d1154743 Revert "augeas <=0.7.4"
This reverts commit 61fb86de5db1378515cfd479240b3a9bde2ee7c0.
2011-05-04 13:52:25 -04:00
Edison Su 8b884a8400 augeas <=0.7.4 2011-05-04 13:47:50 -04:00
Edison Su bbbb71915c fix reboot issue on ubuntu 10.04 2011-05-03 11:19:04 -04:00
Chiradeep Vittal b42ebf4872 Build fixes after first pass at merge 2011-05-03 10:41:31 -07:00
Chiradeep Vittal 303e2a7481 Start of zonesfeature / mycloud/cloudkit 2011-05-03 10:40:17 -07:00
Sheng Yang cf114fc7af Enable SSL for mgmt servers and agents
The port remains 8250.

The keystore saved at /etc/cloud/management/cloud.keystore. We also include one
fail-safe keystore/certificate for fallback if we are unable to generate
certificate and keystore. If we use fail-safe keystore, a warning and calltrace would be show.

Notice you need to upgrade agent, as well as systemVM's images.
2011-04-28 17:41:29 -07:00
Kelven Yang e69774e13a Add console proxy management state, support certificate upload, all done except UI 2011-04-21 18:46:37 -07:00
Edison Su d8ee7d9fc3 if storage network disconnected, reboot the host 2011-04-14 17:46:54 -04:00
Frank 92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
alena 52bf157387 bug 9398: removed resource_type from volumes table as we no longer use it. Corresponding db upgrade scripts are updated
status 9398: resolved fixed

Conflicts:

	server/src/com/cloud/storage/StorageManagerImpl.java
2011-04-11 18:14:35 -07:00
Edison Su c42b928b7d bug 8459: add nic hotplug support 2011-03-31 19:11:02 -04:00
anthony 436dccb6d7 bug 9189: fixed it in master, modifystoragepool doesn't try to create/import any more, will port it to 2.1.x 2011-03-28 19:11:20 -07:00
Alex Huang 9d158dc060 Removed the async create status for volume now that our customers don't use it 2011-03-24 20:04:23 -07:00
Edison Su 954dacdbda fix NPE on centos when dumpxml 2011-03-24 11:33:30 -04:00
Edison Su b1a316dd91 add guest network for KVM 2011-03-09 19:03:31 -05:00
anthony 5b1a421e62 bug 8712: prepare from snapshot db migration 2011-03-08 17:10:27 -08:00
Edison Su 53eb46dc2a Add local storage support for kvm 2011-03-01 19:51:43 -05:00
Edison Su c80335c9df bug 8783: user vm fs is crashed, use O_DIRECT instead of O_DSYNC/O_SYNC in qemu, aka cache=none. Hope we can reduce the possibility of guest vm crashed.
status 8783: resolved fixed
2011-03-01 16:38:23 -05:00
Edison Su 9b51886850 fix migration issue 2011-02-28 12:16:40 -05:00
Edison Su 2705adb3b1 security group is per bridge 2011-02-28 12:16:40 -05:00
Edison Su adbd20ca5a bug 8655: add security group for direct tagged network 2011-02-23 15:53:14 -05:00
Edison Su 0c8b86fc56 add multiple nics support for security group 2011-02-23 15:52:04 -05:00
Edison Su 37cb0ae2c9 add security group for direct tagged vlan 2011-02-23 15:52:04 -05:00
Kelven Yang 4a66441b93 Fix Eclipse project settings for separation of JUnit 2011-02-17 09:55:05 -08:00
Edison Su b2bb4e6b0a rebuild qemu-kvm on FC14 2011-02-08 20:11:31 -05:00
Edison Su 3cc5ce8642 add new configuration parameter: cmd.wait, for heavy timing-consuming commands, such as backupsnapshotcommand 2011-02-03 18:57:38 -05:00
Edison Su fd0752e995 bug 5811, 8261: When delete host, send a shutdownCommand to kvm agent, then kvm agent will not automatically reconnect to mgt server
status 5811: resolved fixed
status 8261: resolved fixed
2011-02-03 13:40:07 -05:00
Edison Su 4ea260cafd bug 8204: mgt server needs to pass down iso info before migration, if the vm has ISO attached
status 8204: resolved fixed
2011-02-02 19:13:12 -05:00
Edison Su a46155e895 bug 8094: send networkrulesforssvm command to agent, no matter security group is enabled or not
status 8094: resolved fixed
2011-02-02 16:26:54 -05:00
Kelven Yang 8c860ff0d1 Sync KVM resource with premium/open source merge 2011-02-01 17:05:38 -08:00
Kelven Yang a8fb44a148 Use exports for jar dependecy 2011-02-01 11:10:37 -08:00
will 49858cf189 - Exported all thirdpart jars in the deps project to make it available to other projects. 2011-02-01 10:59:11 -08:00
Edison Su d893b24949 bug 8193: enable attaching disk on centos 5 host
status 8193: resolved fixed
2011-02-01 09:16:11 -05:00
Edison Su 14d09f53a4 fix delete storage pool 2011-01-31 16:37:07 -05:00
Edison Su fd944d646d sychronized migrate command, happened see that migrating failed, due to conflict in vnc port allocation 2011-01-31 16:04:56 -05:00
Edison Su 200da6d39d fix creating ssvm data disk 2011-01-31 16:04:56 -05:00
Alex Huang b98961bcb1 fixed all the broken thirdparty stuff 2011-01-31 10:51:01 -08:00
Edison Su 4f3d492366 bug 8264: "cp" is faster than "qemu-img convert" when copying template from secondary to primary
status 8264: resolved fixed
2011-01-29 06:02:33 -05:00
Alex Huang ea59085ae7 added type to startup commands to be used later 2011-01-28 15:37:00 -08:00
Edison Su f8778ea4c6 add sharedmountpoint storage pool to support all kinds of clustered file system 2011-01-28 04:37:31 -05:00
Kelven Yang e932f23af2 Catch and ignore exceptions caused by external program, let console proxy at least continue and give possibility for administrator to manually correct the route issue inside console proxy VM 2011-01-26 13:58:23 -08:00
Edison Su 4b355ca301 bug 8118: add security group back
status 8118: resolved fixed
2011-01-22 04:04:52 -05:00
Edison Su 314a491b9c bug 8094: forword port NetworkRulesSystemVmComman from 2.1.x to 2.2, to fix security group is lost after migration
status 8094: resovled fixed

Conflicts:

	agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java
2011-01-22 04:04:52 -05:00