Commit Graph

1324 Commits

Author SHA1 Message Date
Remi Bergsma 03929d24f7 Have HyperV behave in 4.4 and return null instead of false
Commit 6a4927f660 made the HyperV investigator return false insteads of null.

Returning false means the VM is NOT running, returning null means "I don't know". In 4.4 I experienced corruption because of HyperV returning false, instead of null.
2015-08-31 11:29:48 +02:00
Rohit Yadav cf558be0f6 CLOUDSTACK-8613, CLOUDSTACK-6301: Dump KVM domain XML with secure flag
When dumping XML use appropriate flags:

1, VIR_DOMAIN_XML_SECURE (dump security sensitive information too)
8, VIR_DOMAIN_XML_MIGRATABLE (dump XML suitable for migration)

Source:
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainXMLFlags

This fixes CVE 2015-3252: VNC password lost during VM migration across KVM
hosts. The issue is also seen when a VM is rebooted.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit cb2aca7516)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-14 10:51:52 +05:30
Daan Hoogland 412016567f Updating pom.xml version numbers for release 4.4.5-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2015-06-24 21:44:59 +02:00
Daan Hoogland 6f41061e14 Updating pom.xml version numbers for release 4.4.4
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-06-18 11:17:09 +02:00
Remi Bergsma a26bbc2ce2 CLOUDSTACK-6181: Allow RBD volumes to be resized
We don't need an external script to investigate the format of the RBD volume,
we only have to ask Libvirt to resize the volume and that will ask librbd to
do so.

Backport for 4.4, original commit: 173909e99d
2015-05-21 22:57:12 +02:00
Daan Hoogland 7703872bcf backport of CLOUDSTACK-8197 create MinVRVersion config item
Conflicts:
  api/src/com/cloud/network/VirtualNetworkApplianceService.java
  engine/orchestration/src/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #243
2015-05-13 09:31:46 +02:00
Daan Hoogland 28bcd6aeb7 Updating pom.xml version numbers for release 4.4.4-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2015-04-19 15:52:25 +02:00
Daan Hoogland a22c334be5 Merge branch '4.4-RC20150415T1700' into 4.4 2015-04-19 15:48:06 +02:00
NuxRo 377cbd9f4e use eu.ceph.com as ceph.com is down
Same change as in 05e4ba7350

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>

This closes #175
2015-04-17 09:46:09 +05:30
Daan Hoogland e9441d4786 Updating pom.xml version numbers for release 4.4.3
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
2015-04-15 17:00:24 -05:00
Remi Bergsma 024a2924b7 kvm: improve CentOS 7 support
CentOS 7 does not ship with ifconfig anymore. We should use ip commands instead.
This also works on older versions, like CentOS 6 and Ubuntu 12.x/14.x, that we
support.

This closes #165

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-04-14 13:56:30 -05:00
Rohit Yadav b1f54db18f utils: use a better extended implementation of SSLSocketFactory
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit b4a5a32a74)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
2015-03-16 15:52:38 +05:30
Marcus Sorensen fe5d41d8c3 CLOUDSTACK-8263: KVM - virsh resize doesnt refresh libvirt's view of the volume size, refresh pool
Change-Id: I5ea54f7389d72b57bb625e4d87b45b65eb0c96cd
2015-02-18 12:55:37 -08:00
Marcus Sorensen fbb637791c CLOUDSTACK-8263: KVM - use virsh instead of libvirt for resizing qcow2, as libvirt bindings are insufficient
Change-Id: I08246219cb1469a46dc6a9ec76a8c3a67b0b8bf6
2015-02-17 18:10:27 -08:00
Marcus Sorensen f0893d5794 CLOUDSTACK-8263: KVM - notify qemu process of resized volume for libvirt-resized storage
Change-Id: Iddd8bb068855d3565075d3ecf7c6c0f074d00e1a
2015-02-17 17:23:18 -08:00
Rohit Yadav 422235c667 CLOUDSTACK-8198: Use random local storage UUID
Earlier host addition of multiple hosts with local storage failed due to
same local storage UUID being used where the storage path is same.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit bf17f640c6)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-03 22:37:57 +05:30
Marcus Sorensen 84a14f681f Introduced a typo in the license somehow on the last commit 2015-01-23 00:35:39 -08:00
Marcus Sorensen e2bb4cf583 LibvirtComputingResource: Expose KVMStoragePoolManager
KVMStoragePoolManager is a singleton in practice, any plugin
or extension of LibvirtComputingResource will need to act on
the specific instance of KVMStoragePoolManager that LibvirtComputingResource
has initialized. Therefore, expose this variable for those who
wish to call storage commands from plugins or extensions.

Conflicts:
	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
2015-01-23 00:13:19 -08:00
Rohit Yadav 0269456152 CLOUDSTACK-8160: use preferable protocols
(cherry picked from commit debfcdef78)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	client/tomcatconf/server7-nonssl.xml.in
	client/tomcatconf/server7-ssl.xml.in
	plugins/storage/volume/nexenta/src/org/apache/cloudstack/storage/datastore/util/NexentaNmsClient.java
	pom.xml
	services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxySecureServerFactoryImpl.java
	utils/src/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketFactory.java
2015-01-21 18:11:38 +05:30
Daan Hoogland 8cf67c0bf7 logging in clustering code, to find faulty vif plug on xenserver from clustered ms on nic orchestration for start command 2015-01-05 12:57:00 +01:00
Likitha Shetty 4807fa7de6 CLOUDSTACK-8112. CS allows creation of VM's with the same Display name when vm.instancename.flag is set to true.
Before registering a VM check if a different CS VM with same name exists in vCenter.

(cherry picked from commit 33179cce56)
2014-12-23 21:52:23 +01:00
Likitha Shetty 53fbe84014 CLOUDSTACK-8109. Extract Template is failing.
Fix the OVA path that is returned once an OVA is packaged using a META file.

(cherry picked from commit 507d9d337d)
2014-12-23 16:29:09 +01:00
Saksham Srivastava 2e76d318ae CLOUDSTACK-7950: AttachIsoCmd shoud give correct messge when trying to attach vmwaretools installer iso on non supported guestvm deployed by ISO
(cherry picked from commit 4ff3130bec)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-11 21:59:14 +05:30
Wei Zhou 4a7532ee65 CLOUDSTACK-2823: pass cmdline info to system vms for 30 times
(cherry picked from commit 4eedfe53fc)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	systemvm/patches/debian/config/etc/init.d/cloud-early-config
2014-12-11 13:14:01 +05:30
Sateesh Chodapuneedi 8b4b51b054 CLOUDSTACK-7360 [vmware] Add host to existing cluster fails if the cluster is using Nexus 1000v as backend for atleast one traffic type.
While adding host to existing cluster which is using Nexus 1000v as a network backend, skip validation of Nexus VSM as it was already done while adding that cluster.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
(cherry picked from commit a1d0925f90)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-12-01 17:51:56 +05:30
Anthony Xu afd7996776 CLOUDSTACK-5834: got VBD statistics from RRD
(cherry picked from commit 4e33d359a8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
2014-12-01 17:34:16 +05:30
Daan Hoogland 7e409ea300 Updating pom.xml version numbers for release 4.4.3-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-11-25 15:36:02 +01:00
Daan Hoogland e0420a6fec Updating pom.xml version numbers for release 4.4.2
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-11-21 03:41:26 +01:00
Daan Hoogland a2a82f517b CLOUDSTACK-3383 escaped "'s 2014-11-11 22:15:35 +01:00
Wido den Hollander ee8facd382 CLOUDSTACK-3383: Fetch CPU utilization more reliable.
This should fix that we can't gather CPU statistics on hypervisors
> Ubuntu 12.04
2014-11-11 21:48:50 +01:00
Daan Hoogland b9620c2cbe Updating pom.xml version numbers for release 4.4.2-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-10-19 20:46:15 +02:00
Harikrishna Patnala 0b31732bb1 CLOUDSTACK-6023: Non windows instances are created on XenServer with a vcpu-max above supported xenserver limits
Changed the VCPU max limit to 16 and provided a cluster level configuration parameter for this max limit named xen.vm.vcpu.max
(cherry picked from commit 95e41fdf0d)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-10-02 12:18:13 +02:00
Daan Hoogland a29f954a26 CLOUDSTACK-7184 retry-wait loop config to deal with network glitches 2014-09-18 08:55:23 +02:00
Daan Hoogland 4d065b9a3a CLOUDSTACK-7184: xenheartbeat gets passed timeout and interval 2014-09-16 12:25:07 +02:00
Daan Hoogland eaf3ad1db4 Merge remote-tracking branch 'origin/hotfix/4.4-7405' into 4.4 2014-09-04 11:05:58 +02:00
Fred Clift 54e9a92d24 make virtual router /latest/.htaccess file be static - no longer dynamically generate it, remove code that managed the file previously
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
2014-09-04 04:24:16 -04:00
Sheng Yang 018bcd26f8 CLOUDSTACK-7124: Fix semicolon caused VPN programming issue on Xen
(cherry picked from commit abc0b40acb)
2014-08-30 21:57:24 +02:00
Wido den Hollander 4f0fc5cb20 kvm: Return capitalized NONE when no disk cache mode is set
This caused Instances not to start under rare circumstances
2014-08-19 00:08:00 +02:00
amoghvk 9800b9f07a CLOUDSTACK-7295: VMs is Stopped state have no host ID, resulting in NPE 2014-08-11 14:56:07 -07:00
Anshul Gangwar cda088470b CLOUDSTACK-7220: fixed building hyper-v agent is broken, commits were not applied in correct order while cherry picking from 4.4-forward to 4.4 2014-08-01 15:50:17 +05:30
Rajesh Battala 920f39baaf Fixed windows line ending issues
(cherry picked from commit 648a724dfc)

Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-07-30 12:04:54 +02:00
Rajesh Battala 095fb09b75 CLOUDSTACK-6518 [Hyper-V] Efficient way of finding the empty nic in VR/VpcVR to configure VPC entities
(cherry picked from commit cf41ccaa5b)

Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/IWmiCallsV2.cs
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-07-28 23:21:37 +02:00
Koushik Das e1cfd8dedf Added a simulator based test for VM sync
(cherry picked from commit a83212afdc)
2014-07-28 23:12:55 +02:00
Anshul Gangwar 8fb89cdc8e CLOUDSTACK-6504: removed warnings coming in building hyper-v agent code
(cherry picked from commit 66f8e0e1b5)

Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-07-28 17:31:03 +02:00
Anshul Gangwar 48f9453a74 CLOUDSTACK-6470: while stopping vm in hyper-v, now we are first trying to shutdown it gracefully before turning it off forcefully
(cherry picked from commit 4a85e22264)

Conflicts:
	plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs
2014-07-28 17:24:53 +02:00
Koushik Das d14d0d7c92 Some minor fixes in simulator code
(cherry picked from commit a0486aedca)
2014-07-28 16:02:51 +02:00
Koushik Das ab85d00d7c Some fixes in the simulator
1. Fixed JSON response deserialization. While creating a mock a JSON can be passed which will be deserialized into a response object and returned from agent layer.
For e.g. for a mock corresponding to StopCommand, a response like "{"com.cloud.agent.api.StopAnswer":{"result":false,"wait":0}}" can be passed.
2. Ability to mock PingCommand (returned as part of getCurrentStatus() agent method). As a part of this a mocked VM state report can be returned.
For e.g. {"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},"newStates":{},"_hostVmStateReport":{"v-2-VM":{"state":"PowerOn","host":"SimulatedAgent.e6df7732-69b2-429b-9b6a-3e24dddfa2e0"},"i-2-5-VM":{"state":"PowerOff","host":"SimulatedAgent.e6df7732-69b2-429b-9b6a-3e24dddfa2e0"}},"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":3,"contextMap":{},"wait":0}}

(cherry picked from commit 285557fb5f)
2014-07-28 16:02:49 +02:00
Anthony Xu 794ef207b1 Cs tries to destroy vlan object on XS host when destroying VM, if the VLAN object is being used, CS expects the exception, lower the log level here
(cherry picked from commit 328df6f954)
2014-07-28 16:02:48 +02:00
Anthony Xu 7b1104aa15 Destroy unplugged VIFs before creating a VIF for a VM, and reuse the device id
(cherry picked from commit d0552a2ab2)
2014-07-28 16:02:48 +02:00
Santhosh Edukulla c513d6f5f1 CLOUDSTACK-6976: Added the support for SecStorageFirewallCfgCommand
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 76f72d3624)
2014-07-28 16:02:43 +02:00