Funs
c27c69438b
hypervisors: add OVM3 plugin that supports OVM 3.2.1/3.3.x
...
This is a plugin that puts in ovm3 support ranging from 3.3.1 to 3.3.2. Basic
functionality is in here, advanced networking etc..
Snapshots only work when a VM is stopped now due to the semantics of OVM's raw
image implementation (so snapshots should work on a storage level underneath the
hypervisor shrug)
This closes #113
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-03-12 11:33:42 +05:30
Jayapal
619f014255
CLOUDSTACK-8298: Update copying large size VR config file in xenserver
...
When there is large size VR configuration (aggregate commands) copying data to VR using vmops plugin was failed
because of the ARG_MAX size limitation. The configuration data size is around 300KB.
Updated this to create file in host by scp with file contents. This will create file in host.
Then copy the file from the host to VR using hte vmops createFileInDomr method.
In host file get created in /tmp/ with name VR-<UUID>.cfg, once it copied to VR this file will be removed.
2015-03-04 11:52:10 +05:30
Rohit Yadav
06437dadf5
CLOUDSTACK-8220: Let's have a separate XenServer 6.5 resource
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-02-06 14:44:10 +05:30
Remi Bergsma
4e1527e87a
use directIO flags when dd'ing template
...
This makes sure dom0 in xenserver doesn't get hammered
when copying templates. It doesn't make sense to use
the cache of dom0 as the template does not fit in
memory. The directIO flags prevent it from trying.
2014-12-15 16:36:35 +01:00
Pierre-Luc Dion
5306e43d56
CLOUDSTACK-7887: change int to str into swiftxen
2014-11-12 19:21:37 -05:00
Sanjay Tripathi
6a6d4d876f
CLOUDSTACK-7868: Failed storage.PrimaryStorageDownloadCommand leaves corrupt VDIs in primary storage.
2014-11-08 13:43:56 +05:30
Anthony Xu
fbe205b9dd
remove unused XS plugins
2014-10-21 10:53:48 -07:00
Daan Hoogland
6e1e56d399
CLOUDSTACK-7527 reboot faster by writing to /proc/sysrq-trigger
...
(cherry picked from commit d04f59a30d )
2014-09-18 12:51:42 +02:00
Daan Hoogland
dec9133dcd
CLOUDSTACK-7184: xenheartbeat gets passed timeout and interval
...
(cherry picked from commit 4d065b9a3a )
Conflicts:
plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/discoverer/XcpServerDiscoverer.java
plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
server/src/com/cloud/configuration/Config.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/resource/DiscovererBase.java
2014-09-18 12:51:10 +02:00
Kishan Kavala
4f3de024de
Add script to ensure cgroups are not co-mounted in rhel7/lxc. If required, script will unmount co-mounted cgroups and remount them seperately
2014-09-11 14:34:40 +05:30
Anthony Xu
bd6f03aa95
iptreemap is not supported in new ipset, use iphash instead
2014-08-25 11:22:30 -07:00
Brenn Oosterbaan
7c92bac4a3
CLOUDSTACK-7345 changed dd blocksize to 128k when using NFS.
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 8b7130fa65 )
2014-08-14 10:10:13 +02:00
Joris van Lieshout
37baddd721
dd with direct io is less impacting on Dom0 kernel resources
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit c4b78c3aaa )
2014-08-12 13:17:02 +02:00
Frank.Zhang
88f866645b
fix iptables chain name too long (must be under 30 chars)
2014-07-18 17:31:06 -07:00
Anthony Xu
733102c742
change XS log file name from vmops.log to cloud.log
2014-07-15 11:07:15 -07:00
Murali Reddy
cdb3dc97b5
CLOUDSTACK-6749: [OVS] xe network-param-get with
...
param-key=is-ovs-vpc-distributed-vr-network alway returns error
fixing unnecessary errors in the logs
2014-06-13 16:02:31 +05:30
Tim Mackey
a8212d9ef4
Cleanup of Xen and XenServer terms. Cloned xen plugin creating a xenserver plugin, then removed xen plugin
...
Signed-off-by: Tim Mackey <tmackey@gmail.com>
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
2014-06-07 04:50:23 -04:00
Murali Reddy
9105c779e9
CLOUDSTACK-6685: OVS distributed firewall: source CIDR mismatch while
...
populating ingress & egress network ACL
fix ensures propoer values for nw_src and nw_dst are popoluated
depending on the ingress or egress acl
2014-05-15 16:44:30 +05:30
Murali Reddy
63f6888588
CLOUDSTACK-6668: OVS distributed routing: ensure bridge is deleted when
...
last VM from the VPC is deleted on a host
OVS distributed routing: ensure bridge is deleted when last VM from the
VPC is deleted on a host. This fix ensures that bridge is
destroyed.
2014-05-14 16:41:56 +05:30
Harikrishna Patnala
807b6d2c4c
CLOUDSTACK-6544: [Automation] Failed to create template for ROOT volume in Xen, with Exception: callHostPlugin failed
2014-05-08 15:59:39 +05:30
Murali Reddy
55111e2284
CLOUDSTACK-6609: OVS distributed routing: ensure tunnels are created if
...
not created already when OvsVpcPhysicalTopologyConfigCommand update is
recived
Currently if the tunnel creation fails, there is no retry logic. Fix
ensures OvsVpcPhysicalTopologyConfigCommand updates as an opputiunity to ensure
proper tunnels are established between the hosts.
2014-05-08 15:58:16 +05:30
Murali Reddy
2df5df1b68
CLOUDSTACK-6592: OVS distributed routing: make populate flooding rules
...
transactional
creats a file with all openflow rules updates and using ovs-ofctl file
option updates the brige in one go
2014-05-07 20:05:32 +05:30
Murali Reddy
9e98cbf1c1
CLOUDSTACK-6564: OVS distributed routing: use file based OF rule updates
...
use ovs-ofctl replace flows by file name option to update the OF rules
instead of sequenetially configuring the rules.
2014-05-02 18:54:30 +05:30
Murali Reddy
213a68dc39
CLOUDSTACK-6507: ensure sequence numbers are honoured while processing
...
OvsVpcPhysicalTopologyConfigCommand and OvsVpcRoutingPolicyConfigCommand
fix ensures only latest updates are applied (new openflow rules) to the
bidge enabled for distributed routing.
2014-04-25 15:02:19 +05:30
Murali Reddy
095151c98a
add support for sequence numner in the VPC topology updates and VPC
...
routing policy updates
Conflicts:
setup/db/db/schema-430to440.sql
2014-04-25 15:02:17 +05:30
Anthony Xu
cbb31675a0
remove unused code
2014-04-09 14:01:03 -07:00
Sheng Yang
e8227c88d8
CLOUDSTACK-6314: Use SSH commands for Xen VR execution
...
Instead of XAPI, which would make XenServer unnecessary busy.
2014-04-07 13:38:14 -07:00
Murali Reddy
cc2892c782
fix typos in xenserver scripts to setup OVS tunnel network
2014-04-07 17:31:25 +05:30
Anthony Xu
58b2b6b9e1
Add support for XS6.2 Fox hotfix
2014-03-28 16:45:16 -07:00
Edison Su
731ccb8219
fix devcloud router start
...
Conflicts:
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XcpOssResource.java
2014-03-28 16:16:51 -07:00
Murali Reddy
f6ff11c7d6
OVS distributed routing: fix the issues related to applying network
...
ACL's on OVS. OVS OF rules does not accept 0.0.0.0/0 so while applying
ACL dont include source CIDR in the OF rule if source CIDR is 0.0.0.0/0
2014-03-28 17:09:55 +05:30
Anthony Xu
2dc1c7bec8
get rrd through http directly instead of xapi plugins
2014-03-26 18:04:41 -07:00
Anthony Xu
88c1da679c
check_heartbeat and pingtest execute through ssh, not XAPI, because XAPI may hang when master host is downi
2014-03-25 10:44:20 -07:00
Murali Reddy
7b08bb7cab
CLOUDSTACK-6281: OVS distributed routing: exclude non implemented
...
networks while sending VPC topology updates as GRE key is not associated
with the network unless implemented.
2014-03-25 16:43:46 +05:30
Murali Reddy
c838f3abb8
fix scripts that handle setting up bridge for tunnel network and for
...
distributed routing. Fix ensures there is approproate flag in other
config of the network to indicate the bridge type.
Conflicts:
server/src/com/cloud/network/vpc/VpcManagerImpl.java
2014-03-20 16:30:07 +05:30
Murali Reddy
9a97ba76d3
findbug fixes, added some comments, bug fixes
2014-03-14 16:56:39 +05:30
Murali Reddy
e487b24bb6
couple of bug fixes
2014-03-14 16:56:38 +05:30
Murali Reddy
423a748807
adds hypervisor script to convert JSON routing polcies (ACL) config in
...
to flow rules and applies them on the bridge
add event subscriber in OvsTunnelManager, that listens to
replaceNetworkAcl events. On event sends the updated policy info to all
the hosts in the VPC
2014-03-14 16:56:37 +05:30
Murali Reddy
2c7786992f
some bug fixes
2014-03-14 16:56:37 +05:30
Murali Reddy
e045883c52
introduce OvsNetworkTopologyGuru that has convinenace functions to
...
- get the hosts on which VPC spans given vpc id
- get the VM's in the VPC
- get the hosts on which a network spans
- get the VPC's to which a hosts is part of
- get VM's of a VPC on a hosts
introduces capability to build a physical toplogy representation of a
VPC. This json file is encapsulated in
OvsVpcPhysicalTopologyConfigCommand, and is used to send full topology
to hypervisor hosts. On hypervisor this json config can be used to setup
tunnels, configure bridge, add flow rules etc
Ovs GURU, to use different broasdcast scheme VS://vpcid.gerkey for the
networks in VPC that use distributed routing
each VIF and tunnel interface to carry the network UUID in other/options
config
2014-03-14 16:56:37 +05:30
Murali Reddy
100df92455
Scripts that use ovs-vsctl and ovs-ofctl to setup a bridge for VPC in
...
distributed routing mode, and setup flows appropriatley
script to handle the VPC topology sent from management server in JSOn
format. From the JSON file, reqired configuration (tunnel setup and flow
rules setup) is setup on the bridge
2014-03-14 16:56:36 +05:30
Sheng Yang
3e097a0fb2
CLOUDSTACK-5779: Clean up leftover VR script in Xen
2014-03-11 13:22:14 -07:00
Sheng Yang
2d100f1269
CLOUDSTACK-5779: Generalize calling to execute or create file for Xen
2014-01-24 18:27:55 -08:00
Sheng Yang
e88cc488e5
CLOUDSTACK-5779: Move loadbalancer to use routerProxy
2014-01-20 18:48:46 -08:00
Sheng Yang
0ea1c7dfc4
CLOUDSTACK-5779: Move firewall to use routerProxy
2014-01-17 12:36:42 -08:00
Sheng Yang
ce67e24d0a
CLOUDSTACK-5779: Move ipAlias to use routerProxy
2014-01-17 12:36:42 -08:00
Sheng Yang
0cdf0f6f67
CLOUDSTACK-5779: Moving bumpUpPriority, edithosts.sh, dnsmasq.sh to use routeProxy
2014-01-16 16:03:09 -08:00
root
eca1e97b9b
remove vhd-util from d935d3865a
2014-01-15 08:36:55 +07:00
Sanjay Tripathi
3ad0e8fb47
CLOUDSTACK-5701: physical size is not getting updated in snapshot_store_ref table.
2014-01-06 11:36:43 +05:30
Sanjay Tripathi
5eda091530
CLOUDSTACK-4450: Possibility of /tmp/xapilog filling up the Root disk on Xenserver.
2013-12-27 17:12:23 +05:30
Edison Su
8caf52c6bc
add xenserver 6.2.0 hotfix support, to optimize vdi copy
...
add xenserver hot fix
Conflicts:
api/src/com/cloud/vm/VirtualMachineName.java
core/src/com/cloud/host/HostInfo.java
core/src/org/apache/cloudstack/storage/to/SnapshotObjectTO.java
deps/XenServerJava/src/com/xensource/xenapi/VDI.java
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
engine/storage/src/org/apache/cloudstack/storage/image/db/SnapshotDataStoreDaoImpl.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/XenServerGuru.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerPoolVms.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
server/src/com/cloud/configuration/Config.java
2013-12-19 14:15:41 -08:00
Harikrishna Patnala
55237f8b15
CLOUDSTACK-5507: Unable to add XenServer 5.6 host to cloudstack
...
Fixed "ImportError: No module named cloudstack_pluginlib" on Xenserver 5.6
Signed-off-by: Jayapal <jayapal@apache.org>
2013-12-18 12:03:03 +05:30
Anthony Xu
a44459d6dd
add license header for new file
2013-12-15 17:40:39 -08:00
Hugo Trippaers
1cc68ae6c6
The python module perfmon is not installed by default on XenServer, so be carefull about importing it without checks
2013-12-13 13:36:22 +01:00
tuna
a3b7248a16
enable stp on ovstunnel
2013-12-11 15:58:32 +07:00
Anthony Xu
1ddc0b99fe
put CS/XS plugin log into seperate directory
2013-12-10 01:23:46 -08:00
tuna
5e23f00b1a
add Apache Licensed and add check native
2013-12-10 10:37:29 +07:00
tuna
f355359b23
fix issues
2013-12-10 10:37:28 +07:00
tuna
fca6d56681
remove private changes
2013-12-10 10:36:30 +07:00
tuna
dc151115be
AutoScaling without NetScaler
2013-12-10 10:35:55 +07:00
tuna
c7dab82dc4
move cloudstack_pluginlib
2013-12-09 23:33:15 +07:00
tuna
3df8b912fc
add kvm support & LB service
2013-12-09 23:33:14 +07:00
tuna
d935d3865a
tuna
2013-12-09 23:33:14 +07:00
tuna
3a9c9bd717
fix white-space
2013-12-09 23:33:14 +07:00
tuna
79a7ce871e
make SDN GRE work with XCP 1.6
2013-12-09 23:33:14 +07:00
Anthony Xu
c17cf2595b
after XS host reboot, all SG rules are gone, need to check if SG rules frame is there when program rules for VM, if not , create the SG rule frame
2013-12-05 02:10:59 -08:00
Anthony Xu
5a062e155c
put shell scripts to a seperate directory in XS
...
use same scripts for both XS and XCP
2013-12-03 02:05:34 -08:00
Anthony Xu
27294a3827
CLOUDSTACK-4750
...
use interface wildcard "+" in iptables to cover potential used VLAN interface to allow output on physical interface.
you will see
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out bond2+ --physdev-is-bridged
instead of
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 PHYSDEV match --physdev-out bond2.1234 --physdev-is-bridged
Anthony
2013-10-30 15:12:21 -07:00
Edison Su
89d6e7ed66
CLOUDSTACK-4817: fix s3 multipart uplaod
...
Conflicts:
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
2013-10-28 17:31:49 -07:00
Anthony Xu
e33ae74067
CLOUDSTACK-4649:
...
xs 6.1/6.2 introduce the new virtual platform, so there are two virtual platforms, windows PV driver version must match virtual platforms,
this patch tracks PV driver versions in vm details and template details.
Anthony
2013-10-22 17:54:51 -07:00
Jayapal
b79b2182ef
CLOUDSTACK-4624 Fixed security groups rules program issue in Advaced SG VM migration
2013-10-21 17:41:36 +05:30
Hugo Trippaers
56129c30a9
Fix a situation where the systemvm-vdi would be created even if the systemvm.iso does not exist.
2013-10-15 14:04:34 +02:00
Edison Su
88114350c7
CLOUDSTACK-4559: fix devcloud
2013-09-25 16:17:46 -07:00
Jayapal
137ee50477
CLOUDSTACK-4613 correcting anti spoofing security group rules
2013-09-06 15:47:02 +05:30
Edison Su
1c96898ae1
CLOUDSTACK-3229: if delete snapshots on staging area failed, still treat backup snapshot as succeed. And modify snapshot delete logic on devcloud
2013-08-19 15:25:11 -07:00
anthony
4333209af3
CLOUDSTACK-3495
...
CS used to access vnc server in xenserver dom0 to get VM console, now CS moves to use XenServer console API. getvncport plugin is not needed any more.
remove the code related to getvncport in XenServer
2013-08-09 17:22:54 -07:00
John Burwell
21f62087d3
- CLOUSTACK-3229: Properly converts the Content-Length to string
...
representation in s3xen
2013-08-01 15:41:22 -04:00
John Burwell
c713aef04d
- CLOUDSTACK-3229: Adds a guard condition to s3xen to prevent double
...
"/" in the resource path if the key starts with a "/" and corrects a
log message from adding an additional "/"
2013-08-01 04:29:23 -04:00
John Burwell
cab721529b
- CLOUDSTACK-3229: Fixes string formatting argument mismatch
2013-08-01 03:13:41 -04:00
John Burwell
9f1c74fe65
- CLOUDSTACK-3229: Fixes a syntax error in s3xen
2013-08-01 02:59:31 -04:00
John Burwell
8672e0fb94
- CLOUDSTACK-3229: Removes String format method call that is not
...
supported in Python 2.4
2013-08-01 02:46:00 -04:00
John Burwell
4b0582381f
- CLODSTACK-3229: Adds missing is_blank function to s3xen
2013-08-01 02:28:16 -04:00
John Burwell
e2bcbe90c0
- CLOUDSTACK-3229: Fixes a think-o in the handling of unmodifiable
...
collections and adds a rail in s3xen to raise an exception if the file being
put does not exist
2013-08-01 00:14:57 -04:00
John Burwell
1ae682de78
- CLOUDSTACK-3229: Properly serialize the https property to the s3Xen
...
plugin
- Extracts the duplicated serializeProperties methods to
ReflectUtils#flattenProperties
- Adds unit tests for ReflectUtils#flattenProperties
2013-08-01 00:14:43 -04:00
Marcus Sorensen
ac59a4f136
Summary: Move Xen vmdata to new, non-ssh method
...
Detail: KVM recently got a patch that did away with a few dozen ssh calls
when programming virtual router (CLOUDSTACK-3163), saving several seconds
for each vm served by the virtual router when the router is rebooted. This
patch updates Xen to use the same method, and cleans up the old script refs.
Reviewed-by: Sheng Yang, Prasanna Santhanam
2013-07-30 21:45:36 -06:00
Anthony Xu
f1fb7c3efe
in security group, CS put a rule in ebtables filter table FORWARD chain to prevent user from changing VM mac address
...
util.pread2(['ebtables', '-A', vm_chain, '-i', vif, '-s', '!', vm_mac, '-j', 'DROP'])
if user changes the VM mac address, all egress packet from the VM will be dropped, but the egress packet still contaminate the bridge cache with fake MAC,
This patch moves the rule to ebtables nat table PREROUTING chain, then the egress packet with modified MAC will not contaminate the bridge cache.
Anthony
2013-07-30 17:04:21 -07:00
Bharat Kumar
9c24be4837
CLOUDSTACK-3871 XEN - Unable to deploy VM in guest network VLAN with different subnets
...
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2013-07-28 23:43:44 -07:00
Kishan Kavala
36d900472b
CLOUDSTACK-3769: Fixed variable name localMountPointPath in vmopsSnapshot plugin
2013-07-25 16:27:32 +05:30
Bharat Kumar
e14f5d0aeb
Cloudstack-3694 Dnsmasq rewrite in bash
...
(Sheng: Fix typo, fix log and error message, remove 'set -x' in script)
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2013-07-24 14:00:31 -07:00
Edison Su
d22bea6031
CLOUDSTACK-2630: fix delta snashpt
2013-07-24 09:48:59 -07:00
Edison Su
be3883b678
fix create template from snapshot if it's swift
2013-07-24 09:48:07 -07:00
John Burwell
a2af4b5db7
- CLOUDSTACK-2583: PEP-8 compliance for s3xen
2013-07-23 18:37:51 -04:00
John Burwell
529ac6f129
- CLOUDSTACK-2583: Backports the s3xen plugin to Python 2.4
2013-07-23 18:02:49 -04:00
Anthony Xu
a235840856
don't overwrite logrotate in XenServer
2013-07-18 16:38:24 -07:00
Bharat Kumar
d73bb22802
Incorportaed the review changes Now dhcpservice IPs are removed when last vm from the subnet is removed. Rebased with master.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 12:35:06 +05:30
hongtu_zang
9d857c0362
fix xenserver 6.1 and 6.2 can not open vnc console
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-12 16:35:17 +05:30
Anthony Xu
fdc9f10cc1
fix , Windows 2008 32bit instance can't get IP address,
...
normally, in dhcp reply, the target ip is allocated ip for VM.
but windows 2008 32bit has special field in dhcp reply, which makes dhcp reply use 255.255.255.255 as target ip, which is blocked by SG rule,
2013-05-29 16:01:22 -07:00
Sheng Yang
83c13fcf27
CLOUDSTACK-2614: Fix the permission of patchviasocket.pl
...
It's non-executable now, which cause trouble on deb package.
2013-05-29 14:24:49 -07:00
Sanjeev Neelarapu
aa60105a84
CLOUDSTACK-2543: [Multiple_IP_Ranges] Failed to create IP alias on router vm
...
createipAlias.sh/deleteipAlias.sh won't be copied to XenServer host.
The directory of the scripts should be ".." rather "../../.." in all the xenserver patches file.
Corrected the path to ".." because the scripts are located at scripts/vm/hypervisor/xenserver/xenserver56/patch
2013-05-20 20:40:59 +05:30
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