Commit Graph

176 Commits

Author SHA1 Message Date
Joe Brockmeier 48e7eadb85 Removing pesky -SNAPSHOT in poms. Grumble. 2013-04-19 20:48:23 -05:00
Joe Brockmeier 080ddfede6 Updating version to 4.0.2 (removing -SNAPSHOT) 2013-04-15 23:06:14 -05:00
Chip Childers 18e8aad0e1 Updating version number from 4.0.1-incubating to 4.0.2 in a number of places
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-04-15 18:56:19 +01:00
Marcus Sorensen 3541aa86e3 CLOUDSTACK-1846, CLOUDSTACK-1845 - KVM Storage, sometimes KVMHA will remount
deleted NFS pools, causing failures when defining new storage pools. Sometimes
a storage pool has never been used on a host, and getStoragePool fails when
copying templates or in storage migration. deleteStoragePool(pool) often fails
silently, leaving no pool defined in libvirt, but a mountpoint left behind.
This patch handles some of these exceptions and brings forward any issues via
logging.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-04-02 20:46:53 +01:00
Marcus Sorensen c0d2c1b958 CLOUDSTACK-1761 - Available local storage disk capacity incorrectly reported in
KVM to manager. This adds collection of available storage to KVM, not
     just used.

Bugfix-for: 4.0.2, 4.1, master
Submitted-by: Ted Smith <darnoth@gmail.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1363966235 -0600
2013-03-22 10:35:08 -05:00
Wei Zhou 5c8f3a4c5f CLOUDSTACK-1666: add procedure VPCNetworkUsage and getVPCNetworkStats to deal with the operation on VPC virtual router.
"create" to add iptables rules for network usage statistics.
"get" to get the network usage statistics from iptables.
2013-03-19 18:44:46 +05:30
Marcus Sorensen 8a50bac8a9 CLOUDSTACK-1648 - KVM - make storage pools non-persistent in libvirt. Persisting
cloud-defined resources on the host has caused various problems. As a backward
compatible fix, if an existing pool with a different name collides with a pool
being created (by path), the pool will be redefined with the name cloudstack
knows about. This is actually what brought up the bug, a persisted storage pool
cloudstack wasn't managing.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1363210149 -0600
2013-03-14 15:36:07 -04:00
anthony 2b09f68b30 CLOUDSTACK-587:
use setMemoryLimits instead
2013-02-21 15:44:56 -05:00
Marcus Sorensen 23d5553976 Summary: Fix bridge parsing when bridge names are subsets of others
Detail: There are several places in the code that do a
"brctl show | grep bridgeName" or similar, which causes all sorts
of problems when you have for example a cloudVirBr50 and a
cloudVirBr5000. This patch attempts to stop relying on the output
of brctl, instead favoring sysfs and /sys/devices/virtual/net.
It cuts a lot of bash out altogether by using java File. It was
tested in my devcloud-kvm against current 4.0, as well as by the
customer reporting initial bug.

BUG-ID: CLOUDSTACK-938
Fix-For: 4.0.1
Signed-off-by: Marcus Sorensen <marcus@betterservers.com>
2013-01-18 17:25:20 -07:00
Murali Reddy 9a61ff2143 Missed portion of the fix for CLOUDSTACK-595 submitted by commit
3ffbc4320a which caused build break.

Fixing the build break and added missing code.
2013-01-07 16:47:38 +05:30
Koushik Das c69da4c1b3 CLOUDSTACK-595 : Recreate root volume scenarios doesn't work in vmware
Issue seen during system vm template upgrade and restoreVM command
scenarios for vmware. In these cases CS tries to recreate root disk with
same name as the existing one, in case of vmware this results in creation
of vmdk file with same name for both existing and new root volume.
This results in undesired behavior when storage cleanup thread tries to
cleanup old volume. Made the vmdk file name unique by adding the volume
id to it. This will ensure that during volume recreation in the scenarios
mentioned vmdk will get created with a new name and there will be
no undesired side effects of running the storage cleanup thread.
2013-01-07 16:08:04 +05:30
Joe Brockmeier 97f6fe1e59 CLOUDSTACK-699: removing hard-coded references to 4.0.0-incubating/changing to 4.0.1-incubating. 2013-01-04 15:37:15 -06:00
Gavin Lee 333e7c4ae6 Push the nonoss lib by mistake, revert them.
Revert "BUILD: Make CloudStack buildable with nonoss libs"

This reverts commit 20fab87108.
2012-12-26 17:51:40 +08:00
Rohit Yadav 20fab87108 BUILD: Make CloudStack buildable with nonoss libs
Nonoss libs are packaged into cloud-deps rpm

Make sure you've following nonoss libs:
 deps/cloud-iControl.jar
 deps/cloud-manageontap.jar
 deps/cloud-netscaler-sdx.jar
 deps/cloud-netscaler.jar
 deps/vmware-apputils.jar
 deps/vmware-vim.jar
 deps/vmware-vim25.jar

This reverse engineers and sort of reverts the commit:
5ae15f8bbf.

The vhd-util is downloaded and added to (refer CLOUDSTACK-134)
scripts/vm/hypervisor/xenserver/vhd-util, from:
http://download.cloud.com.s3.amazonaws.com/tools/vhd-util

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-25 07:17:43 +08:00
David Nalley b59742ad27 apparently I missed some versions - CLOUDSTACK-580 2012-12-06 14:30:00 -05:00
David Nalley ee9c804f2d CLOUDSTACK-580 setting all (I think) of the versions to 4.0.1-incubating 2012-12-06 13:52:27 -05:00
Chip Childers c4acf035fb CLOUDSTACK-326: Removing extra license and README files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-10-12 14:31:49 -04:00
Chip Childers 8bb7226397 Modified references to 4.0.0 to 4.0.0-incubating 2012-10-09 20:22:59 -04:00
Wido den Hollander a11530397c rbd: Make secret usage names unique for all pools
Since only the cephx user like 'admin' was passed we couldn't define two RBD storage pools
using the cephx user admin, even if they were running on different Ceph clusters.

By adding the monitor hostname and poolname to the secret's usage (which we don't even use) it becomes
unique.
2012-10-09 20:18:52 -04:00
Alex Huang 608c8c450d Changed the hardcoded vmware path to point to cloud/common 2012-10-06 23:08:59 -07:00
Marcus Sorensen 521b0f6401 KVM: removes check for 'snapshot' text in qemu-img --help output
Signed-off-by: Edison Su <sudison@gmail.com>
2012-10-05 17:59:13 -07:00
Marcus Sorensen c8afd81696 KVM: Don't delete systemvm patch disks on StopCommand
Signed-off-by: Edison Su <sudison@gmail.com>
2012-10-05 16:26:37 -07:00
Rohit Yadav 33ae7ef3af CLOUDSTACK-254: Fix exec path for netusage.sh
Fixes the hard coded path in the vmware plugin.
The systemvm.iso file would copy the script only to /opt/cloud/bin.
Same is the path used for vpc_netusage.sh

Signed-off-by: Rohit Yadav <rohit.yadav@citrix.com>
2012-10-05 05:02:58 -07:00
Anthony Xu 889a34c9ee CS-16370 , VCP, support delete guest network for vmware 2012-09-26 21:55:20 -07:00
Anthony Xu d59b5f88b5 CS-16375: do desetup network after last VM in guest network is gone 2012-09-26 21:55:16 -07:00
Edison Su c5650fa562 Revert "find local storage based on name label"
This reverts commit a95a9dc07c.
2012-09-26 21:54:40 -07:00
Marcus Sorensen 9d618380bd KVM: Storage Pool collisions on ISOs due to using random UUID on pool
create

The code is unable to detect an existing pool, because we use a random
UUID each time. New Libvirt doesn't allow multiple pools to be defined
to the same storage.  This patch generates a UUID based on the storage
path, so that it can be detected as existing and reused. It also cleans
up no-op code and adjusts the naming of a few things to clean up any
confusion.

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-26 16:17:23 -07:00
Marcus Sorensen 92ad48fff0 fix /root/.ssh directory creation for KVM
Since /root is r-x permissions, Java fails to mkdir /root/.ssh (even
though the agent is running as root) because it looks for the writable
permission. This patch modifies the 'chmod 700 /root/.ssh' shell command
that we already use into 'mkdir -m 700 /root/.ssh', to be able to create
the directory as root even though write permissions are not set on
/root. This seemed cleaner/safer than adding writable to /root.

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-26 14:04:05 -07:00
Edison Su 47671b9dc6 find local storage based on name label 2012-09-26 11:49:44 -07:00
Edison Su 4f764e6335 fix can't find system vm template on latest ubuntu 12.04, for devcloud 2012-09-25 15:50:44 -07:00
Edison Su c44f97a834 add error log, if adding storage pool failed 2012-09-21 17:48:51 -07:00
Kelven Yang 2862774c60 Commit for https://reviews.apache.org/r/7191/ 2012-09-20 17:10:51 -07:00
Kelven Yang dbd6ec4f24 Commit for https://reviews.apache.org/r/6928/ 2012-09-20 17:10:13 -07:00
Marcus Sorensen 86044c9484 systemvm.iso not found when KVM launches system vms
Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-20 14:00:47 -07:00
Edison Su 2a5e5b2e62 fix compile error 2012-09-18 19:49:06 -07:00
Hiroaki Kawai c11378ff22 add logging for debugging.
The default value for local.storage.path does not exists by
default in CentOS 6. By default, this results in NullPointerException
silently. Without this log message, administrator can't figure out
the reason at all.

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-18 18:26:34 -07:00
Marcus Sorensen 35908aa887 CLOUDSTACK-120: Add proper OS name to KVMGuestOsMapper for systemvm
Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-18 15:47:19 -07:00
Marcus Sorensen a883180633 Fix potential nullpointer in recent KVM systemvm patchdisk update
Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-14 15:26:29 -07:00
Alex Huang 8180ad8f49 Removed the prefs 2012-09-13 17:14:28 -07:00
Wido den Hollander fed7938814 xen: Rename JAR file
cloud-xen.jar does not meet the namespace, so rename it to fit in
2012-09-13 23:19:48 +02:00
Chip Childers 763311c006 License header updates, and modification to root pom for exclusions. 2012-09-13 16:55:48 -04:00
frank 7f8a1aabbf remove patch for ovm agent due to license incompatible
will keep them in another place
2012-09-13 13:43:33 -07:00
Jie Feng c9aa08350a [DOC] docbook conversion - choosing a deployment architecture 2012-09-13 16:12:06 -04:00
Wido den Hollander b892ff6630 Depend on libvirt-java 0.4.9 due to license change
0.4.9 switched from GPL to MIT
2012-09-13 16:29:01 +02:00
Mice Xia 5532f58bbc remove cloud.com license headers 2012-09-13 12:34:32 +08:00
Marcus Sorensen 4c3ab1afb6 fix patch disks from reproducing like rabbits
RB: https://reviews.apache.org/r/7040
Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-12 16:48:38 -07:00
Marcus Sorensen 537c29c2fa Permissions fix for agent creating /root/.ssh
/root/.ssh is created with perms '600' if it doesn't already exist. This causes
a problem in that it can't write out id_rsa.cloud:

2012-08-27 16:35:40,227 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:null)
Processing command: com.cloud.agent.api.ModifySshKeysCommand
2012-08-27 16:35:40,228 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) Failed to create file: java.io.IOException:
Permission denied

Doing 'chmod u+x /root/.ssh' fixed the above, so it seems that even though the
agent is running as root it cares about being able to chdir into /root.ssh

Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2012-09-12 15:48:33 -07:00
Sheng Yang fe8a2992a2 Elimiate mystery guestIp in IpAddressTO
Nobody can explain why it's there...

Also fix wrong return result of several empty network element callbacks
2012-09-12 15:42:48 -07:00
Koushik Das eb7746c965 CS16171 : Cannot attach ISO on VMware VM due to Invalid datastore path error
Handled upgrade scenario where data store already exists in vCenter
2012-09-10 14:26:25 +05:30
Anthony Xu fbba8c2ef3 CS-15542, return success when vif is not there on deipassoc 2012-09-07 17:29:49 -07:00