Edison Su
9cfd434640
CLOUDSTACK-2729: another try to solve libvirt storage pool missing issue: if the storage pool is missing, then recreate it
2013-08-21 17:17:06 -07:00
Edison Su
42e4b74402
CLOUDSTACK-2729: another try to solve libvirt storage pool missing issue: if the storage pool is missing, then recreate it
2013-08-21 16:33:57 -07:00
Edison Su
dfa81da53a
delete snapshot_store_ref if the snapshot is in error state
2013-08-20 15:33:24 -07:00
Anthony Xu
e2710f8bc5
CLOUDSTACK-4176
...
hot unplug NIC in VR when there is no ips on this NIC
Author: Jayapal Reddy Uradi <jayapalreddy.uradi@citrix.com>
Reviewed-by: Anthony
2013-08-19 11:09:46 -07:00
Edison Su
a2951b57b1
fix unit test
2013-08-19 10:29:21 -07:00
Rajesh Battala
6c593b0b16
fix for kvm test failure
2013-08-19 17:46:09 +05:30
Nitin Mehta
836ee4b139
CLOUDSTACK-4386
...
KVM - Create template from volume
Vmware - Create template from volume / Create template from snapshot
send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-19 17:16:38 +05:30
Edison Su
3c40e8bb3f
CLOUDSTACK-4338: fix NPE if create volume failed
2013-08-18 16:26:08 -07:00
Edison Su
ca678a8742
CLOUDSTACK-4300: possible fix: cputune feature is only available after 0.9.0, so start vm can fail on rhel 6.1
2013-08-17 00:19:03 -07:00
Edison Su
a247be70d8
CLOUDSTACK-4315: add code to clean up libvirt data structure after plug/unplug, that's the only thing I can do to fix this kind of libvirt issue
2013-08-14 16:57:14 -07:00
Edison Su
6abc3da828
CLOUDSTACK-4318: clean up snapshot stored in staging area, after backup snapshot to object store
2013-08-14 14:58:01 -07:00
Edison Su
1451b8b642
CLOUDSTACK-4324: need to clean up snapshot_store_ref, if creating snapshot failed.
2013-08-14 14:18:22 -07:00
Wido den Hollander
97cad491ac
CLOUDSTACK-4278: Fix resizing RBD volumes
...
Although libvirt supports resizing RBD volumes (and other formats) the
Java bindings (libvirt-java) don't.
Right now we use the Java bindings for librbd to handle the resizing for us,
but in the future this should be done by libvirt rather then these
Java bindings.
2013-08-14 16:17:37 +02:00
Wido den Hollander
5d9ce82f7d
rbd: When the template is a RAW image, do not use a temp file when deploying
2013-08-14 13:28:21 +02:00
Wei Zhou
7f63128061
Remove unused method deleteVbdByPath from KVM storage classes
...
(cherry picked from commit c3bc9d65dd )
2013-08-13 23:51:48 +02:00
Wido den Hollander
8a49f5a1a9
CLOUDSTACK-4114: Use RAW disk images for RBD instead of QCOW2
2013-08-13 16:26:02 +02:00
JijunLiu
df1756b619
add doc for kvm cpu model
...
Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
(cherry picked from commit 8d53887cec )
2013-08-12 15:35:01 +02:00
Edison Su
9f9cf2a7fc
CLOUDSTACK-4216: fix extract volume for kvm
2013-08-09 20:52:08 -07:00
Edison Su
4cd76b5a99
CLOUDSTACK-4211: fix s3 on kvm
2013-08-09 19:43:45 -07:00
Wei Zhou
dacc4e1a4f
CLOUDSTACK-2729: increase waiting timeout for global file lock to 300 seconds
...
(cherry picked from commit 6d86af85ba )
2013-08-09 08:59:34 +02:00
Edison Su
2b32477aca
CLOUDSTACK-3538: if passcmdline succeed, don't need to retry again, and increase the retry to 5 minutes at most
2013-08-08 17:19:34 -07:00
Wei Zhou
ea50c6663f
CLOUDSTACK-2729: use spd.getTargetPath instead of mount path to fix issue on local storage
...
(cherry picked from commit b2ed632396 )
2013-08-08 16:43:23 +02:00
Edison Su
6766c01fc6
CLOUDSTACK-3535: still maintain stop agent wont trigger HA
2013-08-07 14:42:04 -07:00
Wei Zhou
9ec8d48945
Revert "CLOUDSTACK-2729: don't refresh storage pool when accessing libvirt storage pool"
...
This reverts commit b50060be0c .
Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
2013-08-07 08:11:15 +02:00
Marcus Sorensen
3b2e62dbfa
Revert "Summary: Use hypervisor as clock source for system vms"
...
removing due to CLOUDSTACK-2872, ubuntu 12.04's libvirt isn't new enough
This reverts commit c7ebcb4e8c .
2013-08-06 23:10:04 -06:00
Edison Su
33d06d25b8
CLOUDSTACK-3535: add kvminvestigator to investirage kvm host
2013-08-06 18:50:33 -07:00
Min Chen
923c4fd60f
CLOUDSTACK-4116: Volume operations fail: InvocationTargetException when
...
invoking RPC callback for command: createVolumeCallback
2013-08-06 15:21:56 -07:00
Marcus Sorensen
016fe3ecb8
Summary: Quiet erroneous stopVM failures on kvm
...
Detail: Cloudstack tries to stop VMs all the time, for all sorts of reasons,
but usually just to get into a known state. Libvirt throws an exception of
'Domain not found' when attempting to stop a VM that doesn't exist. This causes
problems for troubleshooting real issues. Domain not found should equate
to success if trying to stop.
BUG-ID: CLOUDSTACK-4011
Bugfix-for: 4.2
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1375825281 -0600
2013-08-06 15:44:23 -06:00
Wei Zhou
c229244dab
CLOUDSTACK-2729: move unlock to finally block to handle failed libvirt operations
...
(cherry picked from commit 5cb090ed40 )
2013-08-06 12:40:32 +02:00
Wei Zhou
0f539b4ce1
CLOUDSTACK-2729: use file lock to prevent concurrent refreshPool/deleteVolume on KVM shared storage pool
...
Signed-off-by: Edison Su <sudison@gmail.com>
2013-08-05 11:21:00 -07:00
Wido den Hollander
78b745f7cd
rbd: Move some logic from LibvirtComputingResource into KVMStorageProcessor
...
All this logic was in LibvirtComputingResource but seems redundant. Move it
into the KVMStorageProcessor
2013-08-05 17:35:32 +02:00
Wido den Hollander
59b23fe1f4
CLOUDSTACK-4004: Fix attaching a newly allocated RBD image to an Instance
...
Signed-off-by: Wido den Hollander <wido@42on.com>
2013-08-02 13:21:23 +02:00
JijunLiu
725d281cb2
Add cpu model for kvm guest.Now all the kvm guest's cpu model is 'QEMU Virtual CPU version xxx'. This will affect the activation of Windows OS and low performance. I add three mode for user to indicate the guest cpu model.add libvirt version check
...
Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
(cherry picked from commit 2903bb5fd9 )
2013-08-02 11:59:02 +02:00
Edison Su
5384cbc41d
CLOUDSTACK-4008: return virtual size of volume in KVM
2013-08-01 13:22:46 -07:00
Wido den Hollander
698253576a
rbd: Enable snapshotting of RBD images
...
Signed-off-by: Wido den Hollander <wido@42on.com>
2013-08-01 09:57:13 +02:00
Toshiaki Hatano
a310815aac
CLOUDSTACK-3959: [KVM] agent setup failed when physical interface name is in pXpY format
...
Add handling.
Signed-off-by: Edison Su <sudison@gmail.com>
2013-07-30 16:14:38 -07:00
Min Chen
9f23b1c0c1
CLOUDSTACK-3665:KVM specific issue in create volume from snapshot.
2013-07-24 18:34:59 -07:00
Edison Su
bfe30cd2e3
CLOUDSTACK-3681: fix bunch of bugs related to vmware, regarding to snapshot
2013-07-24 15:54:36 -07:00
Edison Su
b50060be0c
CLOUDSTACK-2729: don't refresh storage pool when accessing libvirt storage pool
2013-07-18 10:21:43 -07:00
Jayapal
50b5ba6452
CLOUDSTACK-2433 Enable rps and rfs in virtual router
2013-07-17 18:07:46 +05:30
Edison Su
ba4c4400b5
be able to upload template into swift
2013-07-16 18:05:01 -07:00
Kishan Kavala
ccc07cdb93
CLOUDSTACK-3484: Removed method synchornization in libvirt and virtual router resources
2013-07-16 19:06:49 +05:30
Wei Zhou
564c30a040
CLOUDSTACK-2823: move kernelVersion to global configuration in LibvirtComputingResource.java
2013-07-15 10:55:17 +02:00
Toshiaki Hatano
8065a5570d
CLOUDSTACK-3431: KVM: cloudstack-plugin-hypervisor-kvm with BridgeVifDriver doesn't cleanup vNet due to multiple reasons
...
- Move vnetBridge clean up function from LibvirtComputingResource to BridgeVifDriver
-- since only BridgeVifDriver have to handle this event
- LibvirtComputingResource now properly call VifDriver.unplug() when it receives UnPlugCommand
- Remove not working and no longer used method getVnet(String) from VirtualMachineName
- Remove not working and no longer used method getVnet() from StopCommand
- Remove unused constructer StopCommand(VirtualMachine, String, boolean) from StopCommand
- Remove unused member vnet from StopCommand
- Remove unused member _modifyVlanPath from OvsVifDriver
Tested with 2 KVM hosts and confirmed it correctly manipulate vnetBridge with start, stop, migrate, plug, and unplug event
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-07-15 09:11:43 +02:00
Wei Zhou
22c6df0ba2
CLOUDSTACK-2823: try passCmdLine some times if kernel < 2.6.34 and qemu < 1.1.0 on hypervisor (for instance, CentOS 6.4)
2013-07-12 09:47:12 +02:00
Vijayendra Bhamidipati
2a8e113aa1
CLOUDSTACK-1510: NPE when primary storage is added with wrong path
...
Description:
a) Fixing NPE when wrong path is provided for primary datastore.
b) No error dialog shows up in GUI when wrong path is provided,
after NPE fix - propagating exception upward.
c) If the KVM agent is down, an invalid datastore gets logged in
storage_pool table and doesn't get removed, so it shows up
in the GUI in the list of datastores - fixing this as well.
2013-07-10 14:58:41 -07:00
Prasanna Santhanam
085e8838e4
Fix typo in backupSnapshotCommand
...
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 13:50:25 +05:30
Mike Tutkowski
99227f7b3e
SolidFire plug-in and related changes
...
SolidFire plug-in
SolidFire plug-in related
2013-06-28 16:59:21 -06:00
Laszlo Hornyak
882e5fa4e0
FileUtil simplified
...
- writeToFile removed since no references to it
- readFileAsString replaced with FileUtils.readFileToString
- minor code duplication removed in dependent method getNicStats
- unit test added
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2013-06-27 11:08:03 -07:00
Hugo Trippaers
f74e635225
Setting the required version of libvirt to 10.0 for the openvswitch
...
support. This version actually supports setting the vlan tag on an
interface.
2013-06-25 12:21:25 -07:00
Hiroaki KAWAI
f706f6757c
Add class check before cast
...
DataTO might be one of SnapshotObjectTO, TemplateObjectTO
or VolumeObjectTO
2013-06-25 12:48:01 +09:00
Wei Zhou
2899395808
CLOUDSTACK-2017: network throttling implementation for KVM
2013-06-20 11:30:44 +02:00
Edison Su
9aec9c605c
merge to master
2013-06-19 18:16:47 -07:00
Wei Zhou
882220e802
CLOUDSTACK-1301: VM Disk I/O Throttling
2013-06-18 10:02:55 +02:00
Edison Su
f41c800d88
merge to master
2013-06-14 19:06:33 -07:00
Edison Su
c4267b546f
CLOUDSTACK-2973: fix detach iso
2013-06-14 18:15:20 -07:00
Edison Su
34f6538454
CLOUDSTACK-2970: wait is in seconds in command
2013-06-14 17:57:34 -07:00
Edison Su
619ec12f61
CLOUDSTACK-2972: due to change on master, using name instead of uuid to find vm name, so break object_store branch
2013-06-14 17:35:53 -07:00
Edison Su
c2da4eac89
fix NPE for cache ref cnt
2013-06-14 17:24:31 -07:00
Edison Su
793d549072
fix unit test
2013-06-13 17:02:53 -07:00
Fang Wang
bf73d755b0
Add protection for VNC port with password on KVM.
2013-06-13 14:41:09 -07:00
Min Chen
18aeef3ef1
Merge branch 'master' (up to commit
...
c30d9be3ce ) into object_store.
2013-06-12 11:20:32 -07:00
Min Chen
cc0de88088
Remove old DeleteTemplateCommand, DeleteVolumeCommand,
...
DeleteSnapshotBackupCommand, replaced by DeleteCommand.
2013-06-10 17:55:30 -07:00
Wei Zhou
ecbce6a67f
fix disk IO requests display error
2013-06-10 23:11:48 +02:00
Min Chen
04b5f53392
Removed unused code handling for DeleteSnapshotBackupCommand since we
...
don't send that command anymore.
2013-06-07 17:55:05 -07:00
Prasanna Santhanam
da6f39b782
PlugNic and UnplugNic both call the method getVmName
...
Renaming the method in the command objects to be uniform with
PlugNicCommand/UnplugNicCommand.getVmName
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-05 12:37:42 +05:30
Marcus Sorensen
ddfdc9af63
KVM - Don't fail to start due to old VM definition. On rare occasion we see
...
inactive VM definitions block a new VM starting. Definitions aren't supposed to
be persistent, but sometimes a crash or failed migration can leave behind a
definition.
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1370299734 -0600
2013-06-03 16:48:54 -06:00
Wei Zhou
f714d26039
Revert "CLOUDSTACK-1301: Add VM Disk I/O Throttling"
...
This reverts commit 6dad8adf8f .
2013-06-03 07:48:03 +02:00
Wei Zhou
6dad8adf8f
CLOUDSTACK-1301: Add VM Disk I/O Throttling
2013-06-01 08:03:02 +02:00
Wei Zhou
b9b0168da4
CLOUDSTACK-1192: Add Disk I/O Statistics
2013-06-01 08:00:48 +02:00
Min Chen
bc91e7692d
Fix build.
2013-05-29 15:22:04 -07:00
Hiroaki KAWAI
cfd8056c14
remove a call path that cause NullPointerException
...
QemuImg.convert expects the arguments not null.
2013-05-28 20:54:01 +09:00
Wido den Hollander
322db71eed
agent: Only probe running VMs for the current Hypervisor Type
...
Otherwise we try to probe for LXC VMs on a KVM hypervisor and vise versa.
2013-05-26 11:38:41 +02:00
Wido den Hollander
bef3a2edb7
CLOUDSTACK-1191: rbd: Use cloning for deploying templates instead of a copy
...
RBD format 2 supports cloning (aka layering) where one base image can serve
as a parent image for multiple child images.
This enables fast deployment of a large amount of virtual machines, but it also
saves spaces on the Ceph cluster and improves performance due to better caching.
Qemu-img doesn't support RBD format 2 (yet), so to enable these functions the
RADOS/RBD Java bindings are required.
This patch also enables deployment of System VMs on RBD storage pools. Since we
no longer require a patchdisk for passing the boot arguments we are able to deploy
these VMs on RBD.
2013-05-24 16:00:08 +02:00
Min Chen
98af424053
Merge branch 'master' into object_store.
2013-05-23 18:00:15 -07:00
Edison Su
4e4112fcec
fix attach volume for kvm
2013-05-23 13:51:46 -07:00
Marcus Sorensen
fce59b8fc4
Summary: Code cleanup for KVM - look up domains by name rather than coversion
...
Detail: We do two strange things, #1 , when a vm is created, we create the uuid
for the domain by converting the name into a uuid, then subsequently, any time
we look for a domain, we convert its name to a uuid and domainLookupByUUID. This
is an unnecessary obfuscation, so instead we just do a domainLookupByName. As
a bonus, we are now setting the domain's uuid to be the cloudstack uuid. It is
no longer used anywhere, but will be less confusing to admins. This shouldn't
affect upgrades, since we can always lookup existing VMs by name.
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1369287049 -0600
2013-05-22 23:30:49 -06:00
Marcus Sorensen
795fd803da
Summary: KVM - double migration can fail
...
Detail: Undefine VM after migration. Lingering domain definitions cause
migrations back to the original host to fail, since domain already exists.
BUG-ID: CLOUDSTACK-2640
Bugfix-for: 4.1.0,4.2.0
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1369285950 -0600
2013-05-22 23:12:30 -06:00
Wido den Hollander
239bb13dde
Better parse domain XMLs so network devices can be detached as well
2013-05-18 10:34:22 +02:00
Wido den Hollander
5646f5e977
rbd: Allow RBD disks to be attached to a Instance
2013-05-17 17:34:05 +02:00
Edison Su
f7c1b711ad
merge to master
2013-05-16 23:56:20 -07:00
Wei Zhou
a29e39365a
CLOUDSTACK-2545: Change unit of network statistics from 1000 to 1024 for KVM
...
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-05-16 22:07:50 +01:00
Marcus Sorensen
20a9d877cf
Summary: Use hypervisor as clock source for system vms
...
BUG-ID: CLOUDSTACK-2492
Bugfix-for: 4.1,master
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1368635782 -0600
2013-05-15 19:41:50 -07:00
Wido den Hollander
738067077a
CLOUDSTACK-2515: Verify if the targetPath isn't null before comparing
2013-05-15 19:41:49 -07:00
Sheng Yang
2d2c0c48cd
Merge branch 'pvlan'
...
Conflicts:
scripts/vm/hypervisor/xenserver/xenserver60/patch
server/src/com/cloud/network/NetworkManager.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/NetworkServiceImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/network/vpc/VpcManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
server/test/com/cloud/network/MockNetworkManagerImpl.java
server/test/com/cloud/vpc/MockNetworkManagerImpl.java
server/test/com/cloud/vpc/MockVpcVirtualNetworkApplianceManager.java
2013-05-15 16:08:08 -07:00
Marcus Sorensen
bfc5887a1b
Summary: Use hypervisor as clock source for system vms
...
BUG-ID: CLOUDSTACK-2492
Bugfix-for: 4.1,master
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1368635782 -0600
2013-05-15 10:36:22 -06:00
Wido den Hollander
68a428f84d
CLOUDSTACK-2515: Verify if the targetPath isn't null before comparing
2013-05-15 13:57:58 +02:00
Edison Su
a0c3d280b4
merge to master
2013-05-15 00:40:53 -07:00
Edison Su
879a954b98
delete snapshot at the backend
2013-05-14 21:58:07 -07:00
Edison Su
68ffe1c706
fix bug in create volume from snapshot
2013-05-14 16:38:02 -07:00
Jayapal Reddy
2d950e2858
CLOUDSTACK-768: ACL on private gateway
2013-05-13 19:24:23 +05:30
Edison Su
492127c035
fix kvm
2013-05-12 18:27:37 -07:00
Nitin Mehta
c11dbad9c9
merge master
2013-05-11 15:28:43 +05:30
Alex Huang
342624e0eb
Merged with head
2013-05-10 16:33:57 -07:00
Alex Huang
3047929367
Merged
2013-05-10 16:21:43 -07:00
Edison Su
42e25a22fc
refactor kvm/vmware resource code
2013-05-09 23:10:05 -07:00
Sheng Yang
70da1b3be3
PVLAN: Fix KVM ovs driver cannot get vlan id issue
2013-05-02 16:32:07 -07:00
Jayapal
1f1467974f
CLOUDSTACK-1828 Source Nat on private gateway feature
2013-05-02 15:40:15 +05:30
Sheng Yang
3c3d67769b
PVLAN: PvlanSetupCommand for KVM support
2013-05-01 13:23:09 -07:00
Marcus Sorensen
33006ff197
Summary: Don't add secondary storage to KVM heartbeat
...
BUG-ID: CLOUDSTACK-2173
Bugfix-for: 4.2
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1366865750 -0600
2013-04-24 22:55:50 -06:00