Commit Graph

500 Commits

Author SHA1 Message Date
anthony 94861ecf4a For some NFS Servers, mount option tcp is required 2011-08-08 17:58:47 -07:00
anthony ef2802aaed For some NFS Servers, mount option tcp is required 2011-08-08 15:31:18 -07:00
Chiradeep Vittal 8277584b8a merge ELB / nectarine branch 2011-08-08 15:20:56 -07:00
Chiradeep Vittal 736b6cf98e properly clean up rules for nonexistent vms 2011-08-04 22:58:42 -07:00
Chiradeep Vittal 0c408d8da5 handle elb vm restart 2011-08-04 22:05:48 -07:00
alena 8d47c53735 Revert "bug 10435: removed vpn feature"
This reverts commit ea9e1b5d138950e8de49fce7ffdbb12a1c72c560.

Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	scripts/vm/hypervisor/xenserver/vmops
	server/src/com/cloud/configuration/Config.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2011-08-02 18:12:57 -07:00
Edison Su 0bc6026d6b fix description of addcluster api, and a typo in one script 2011-08-01 14:28:39 -07:00
anthony 7c420a071c use rmdir 2011-08-01 11:55:05 -07:00
anthony 767d4b104a use rmdir 2011-08-01 11:48:56 -07:00
Edison Su 31549b337e bug 10622: use /root/.ssh/id_rsa.cloud instead of ~/.ssh/id_rsa.cloud
status 10622: resolved fixed
2011-07-29 17:06:44 -07:00
Chiradeep Vittal 29c88787e1 from eip feature:
1. fix ordering of ingress and egress rules so that vms are protected from other vms on the same host in all cases
2. remove dependency on cloud-guest
2011-07-28 16:08:51 -07:00
anthony 6620d39b7e fixed cloud-prepare-upgrade.sh 2011-07-28 15:07:26 -07:00
anthony b63bee2d9a bug 10197: add some scripts which is used in upgrade 2011-07-28 15:07:08 -07:00
anthony fc94196920 fixed cloud-prepare-upgrade.sh 2011-07-28 15:03:39 -07:00
anthony 5b168f30e0 bug 10197: add some scripts which is used in upgrade 2011-07-26 16:22:54 -07:00
anthony bad0f77659 use the safe way to delete secondary storage directory 2011-07-25 18:16:05 -07:00
anthony a7af9cdae2 use the safe way to delete secondary storage directory 2011-07-22 19:35:46 -07:00
anthony afbadbf223 use the safe way to delete secondary storage directory 2011-07-22 19:29:58 -07:00
anthony e666cf5e77 bug 10743: default local storage is ext in XenServer 6.0, add ext local storage support 2011-07-21 17:31:43 -07:00
anthony c152d1c33f support XenServer 6.0 beta 2011-07-20 16:47:48 -07:00
anthony 9f2eaca6cb Support XenServer 6.0 beta 2011-07-20 16:47:48 -07:00
anthony 7a47a5afcf introduce nfs.py and NFSSR.py from XenServer 6.0 beta 2011-07-20 16:47:48 -07:00
Sheng Yang 44d4113ae6 bug 10429: backport redundant router
Part 2

commit 797839360c65cd348d2eb20630521177ab0919de
    bug 9154: redundant virtual router

commit 8ff7f230204d4d3a7a4adee75523a9a84f4276fe
    bug 9154: Replace domain_router.is_master with domain_router.redundant_state in DB

commit 230b99e9e0b152648f1dd2a5eab6f22315b8e7b4
    bug 9154: Add redundant state to DomainRouterResponse

commit ccefb5ff5e83d713798a347c99bce1a0d04b4317
    bug 9154: Add router fault state report

commit 7a3090378f9785caecf741b70554f6ea17c41764
    bug 9154: Send alert if found two virtual routers in master state

commit 66831056e4bf27665871bccd24e6159071564847
    bug 9154: Code clean up

commit bf3f58a85741fa7118bd848a42d8b21baa4478d4
    bug 9154: Add isRedundantRouter to DomainRouterResponse
2011-07-18 18:30:02 -07:00
Edison Su a3da10e9b8 bug 10622: use /root/.ssh/id_rsa.cloud instead of ~/.ssh/id_rsa.cloud
status 10622: resolved fixed
2011-07-13 17:49:43 -07:00
Chiradeep Vittal 7d95efb7c6 fix ipset problem introduced by 58e92bbe84 2011-07-10 12:44:15 -07:00
Edison Su 81475c256b fix user/meta data: if data is empty, return a blank file, not 404 2011-07-08 13:50:27 -07:00
Edison Su 56bc4f27a9 fix user/meta data: if data is empty, return a blank file, not 404 2011-07-01 12:58:14 -07:00
alena 74f34a0e0c bug 10435: removed vpn feature
status 10435: resolved fixed
2011-06-24 09:18:46 -07:00
David Nalley 6bb0b490ca fixing some typos in error messages 2011-06-20 15:22:33 -04:00
David Nalley fb0dae2ce5 fixing some typos in error messages 2011-06-20 15:18:30 -04:00
Sheng Yang a492c07e4c bug 9154: redundant virtual router
Add CheckRouterCommand for XenServer

Now VMware/Xen/KVM all support redundant virtual router.
2011-06-14 15:45:29 -07:00
anthony 5e1bdce052 bug 10081: don't save iptable 2011-06-06 18:19:01 -07:00
anthony 072fd1b1c5 bug 10111: set hidden flag to 0 after copy template from secondary storage to primary storage
status 10111: resolved fixed
2011-06-01 17:44:09 -07:00
Alex Huang 2dbb8eb502 bug 9651: Make same VLAN work on two different nics 2011-06-01 17:07:44 -07:00
alena c2afcdec52 bug 9873: always add default security group to the SG list when deploy vm in 1) Basic zone 2) Advance zone using SG enabled network
status 9873: resolved fixed

Following fixes were made as a part of the checkin:

* When deploy user vm and SG doesn't exist in the DB, create it automatically.
* SecurityGroup enabled use vm start: if map to default group is not present in security_group_vm_map table, create one.
* Added "name" (securityGroupName) parameter back to deleteSecurityGroup/authorizeSecurityGroupIngress/deployVm. Mutually exclusive with security group id parameter.

Conflicts:

	api/src/com/cloud/api/commands/AuthorizeSecurityGroupIngressCmd.java
	api/src/com/cloud/api/commands/DeleteSecurityGroupCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
2011-05-17 15:08:13 -07:00
Frank aad64a5170 Fix in XenServer, when do primarystorage downlaod command, mount secondary storage
as readonly. And umount with options -fl to avoid hang if at that time NFS server down
2011-05-16 13:50:45 -07:00
Chiradeep Vittal 46e40cab3f ebtables not programmed in some cases 2011-05-13 14:41:37 -07:00
anthony bf54422b11 bug 9866:
It happens only when the template is not created by XenServer and the virtual disk size is not integer time of 2M.
    fixed in 2.2.4
    status 9866: resolved fixed
2011-05-12 18:28:56 -07:00
Edison Su 47380dc20e fix add host 2011-05-12 15:03:15 -04:00
anthony 10c4c14ad5 swift integration checkin 2011-05-05 13:55:29 -07:00
Chiradeep Vittal 4ab68bd44a bug 9689: handle old style vm names 2011-05-04 14:21:49 -07:00
Chiradeep Vittal aecd64e51c bug 9092: consistent naming 2011-05-04 14:21:49 -07:00
David Nalley 74fcb0d06e bug:9702 - fixing ssh key path 2011-05-03 14:21:44 -04:00
anthony d2e68c2dab bug 9525: empty known_hosts at reconnect
status 9525: resolved fixed
2011-04-29 14:13:25 -07:00
anthony 8271f034ce bug 9541: fix one snapshot DB migrate, one java check and one script typo
status 9541: resolved fixed
2011-04-22 12:57:16 -07:00
anthony 054f6b0199 bug 9472: when get vnc port for a vm, check if the port is really used by this vm for security
status 9472: resolved fixed
2011-04-15 12:47:12 -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
anthony 44678b60bc add VERSION into to scripts 2011-03-23 14:54:31 -07:00
anthony bdcffa2b0d bug 8061: add forcely shutdown 2011-03-09 16:30:11 -08:00
anthony 5b1a421e62 bug 8712: prepare from snapshot db migration 2011-03-08 17:10:27 -08:00
anthony 0c2a639a2d bug 6772: use vhd-util to coalesce snapshots into primary storage
status 6772: resolved fixed
2011-03-07 19:47:29 -08:00
anthony b8e03aca4c script fix 2011-03-07 19:47:29 -08:00
anthony a9c36d7b79 use new vhd-util for xenserver 2011-03-07 19:47:29 -08:00
anthony e01ca05208 copy_vhd_from_secondarystorage implement coalesce 2011-03-07 19:47:29 -08:00
anthony 5cc7745d9f never set lvm volume unavailable, there may be a conflict with XenServer GC 2011-03-02 19:23:21 -08:00
Chiradeep Vittal 697b4f60db bug 8380: use instance name status 8380: resolved fixed 2011-03-01 14:07:30 -08:00
anthony 17f5d55459 fix typo 2011-02-18 13:07:57 -08:00
anthony 54802c6d49 typo fix 2011-02-07 15:01:30 -08:00
anthony 7a8fcdb611 support lvmohba on copy_from/to_secondary 2011-02-07 14:44:34 -08:00
Kevin Kluge ee3bb01a11 cloud stack to CloudStack 2011-02-05 22:30:06 -08:00
Chiradeep Vittal 4f1342a4dd bug 8380: default chains weren't getting deleted 2011-02-04 12:04:53 -08:00
anthony c26833fb8a remove systemvm-premium.iso 2011-02-03 15:33:19 -08:00
Chiradeep Vittal 58e92bbe84 bug 8347: skip ebtables if kernel doesn't support it 2011-02-03 11:57:31 -08:00
Chiradeep Vittal ca057a43dd bug 8347: skip ebtables if kernel doesn't support it 2011-02-03 11:53:25 -08:00
anthony 294e41392e Console proxy is back 2011-02-03 10:57:19 -08:00
anthony b9e32cceb9 script may return stdout from command, need to add another # to seperate it 2011-02-02 16:29:11 -08:00
anthony 36778f4e3c bug 8291: get physical vdi size before dd
status 8291: resolved fixed
2011-02-02 14:13:59 -08:00
Chiradeep Vittal 6b8024ffaa bug 8302: dont hardcode ebtables path
status 8302: resolved fixed
2011-02-02 12:56:46 -08:00
Chiradeep Vittal 0be687dc09 bug 8302: dont hardcode ebtables path
status 8302: resolved fixed
2011-02-02 12:56:46 -08:00
anthony 7ec201bc69 bug 5405: version file is not needed
status 5405: resolved fixed
2011-01-28 20:06:54 -08:00
anthony d838411957 remove unused xen scripts 2011-01-28 19:22:12 -08:00
anthony 19e7387702 build fix 2011-01-28 19:19:53 -08:00
will 153ec6b561 Initial Japanese language support - This one really requires another lookover. 2011-01-28 19:12:33 -08:00
anthony 9e63416da3 merge setupxenserver 2011-01-28 18:58:50 -08:00
Frank ec98a539b4 merge premium xenserver scripts to oss 2011-01-28 17:42:27 -08:00
Chiradeep Vittal 8a1ca01f44 Bug 8199: insert generated private key where it is expected 2011-01-28 12:24:20 -08:00
Chiradeep Vittal daa8439c00 Bug 8199: move private key into a more logical place 2011-01-28 12:24:19 -08:00
Frank 276e37115b open vswitch - Implement gre tunnel based network that doesn't use vlan
it allows cross zone communication and no 4096 limitation introduced by vlan
2011-01-21 17:32:02 -08:00
Frank e6b0346270 bug 7722: open vswitch -
1. extend gre tunnel creating timeout to 30 secs
2. don't del drop flow since we don't delete gre tunnel
2011-01-14 17:11:37 -08:00
Frank 39f75887b1 bug 7722: open vswitch -
1. add more readable log when tunnel create failed
2. correct drop flow when port number more than 10

other fixs:
return false when vm is null in checkSessionPermision
this avoid null pointer Exception
2011-01-14 13:47:50 -08:00
Frank 9e1c4ba779 bug 7722: open vswitch - set noflood flag to gre port 2011-01-13 19:52:03 -08:00
Chiradeep Vittal dd7f8625cc bug 7380: SNAT rules when there are multiple public interfaces
bug 6854: port from 2.1.x
2011-01-13 16:59:35 -08:00
Frank 488dd424aa bug 7722: open vswitch -
fix a race condition, create tunnel sync
correct drop flow, this fix a flooding case which may cause openvswitch hang in kernel
2011-01-13 13:53:35 -08:00
Frank c6683c2eab bug 7722: open vswitch -
refine ovs plugin, create a separate plugin instead of messing with vmops
refine gre tunnel, maintains tunnel in database instead of plugin
fix an arp issue cause by overlap vlan range
2011-01-11 02:55:36 -08:00
Frank c07d1be1aa bug 7722: open vswitch - fix issue that flows un-delete when VM stop 2011-01-10 14:34:31 -08:00
Frank a964494332 bug 7722: open vswitch - align some data type with master branch 2011-01-08 17:31:00 -08:00
Frank e9959d32a9 bug 7722: open vswitch - handle router when schedule a work 2011-01-08 16:28:47 -08:00
Frank ec643c7e59 bug 7722: open vswitch - refine code; add normal flow makes vswitch work as
normal L2/L3, otherwise the output packet cannot find right output port
2011-01-08 16:28:47 -08:00
Frank 6f9f8b145b bug 7722: open vswitch - complete 2011-01-08 16:28:47 -08:00
Frank 9d2916ffcc it works 2011-01-08 16:28:47 -08:00
Frank c94b6acadf bug 7722: open vswitch - works at VM start time, need fullsync() and flow clean in next 2011-01-08 16:22:59 -08:00
Frank 5c01c42ba7 fix bug 7722, code complete basic architecture 2011-01-08 16:20:39 -08:00
Chiradeep Vittal c6b027310d Merge in various security groups fixes from 2.1.x 2011-01-07 15:55:17 -08:00
anthony ad305ff6ac reuse session passed to plugin 2011-01-05 19:30:25 -08:00
anthony 791e14bb5f add more output for cloud-setup-bonding.sh 2011-01-05 19:12:39 -08:00
anthony b4dad6e9cc make the output more readable 2011-01-05 19:02:49 -08:00
anthony b732208c23 change file name 2011-01-04 10:39:05 -08:00
anthony 9249ee199f add setupBonding script 2011-01-03 19:22:07 -08:00
anthony bcc327cad1 correct path in patch file 2010-12-21 13:38:40 -08:00
edison ae4bd0fb70 fix a security group bug: restart mgt server or reconnect xenserver will destroy existing security group, then you can't ping user vm any more 2010-12-20 16:58:02 -08:00
anthony 2be0b45297 support xenserver 5.6 fp1 in oss 2010-12-20 14:18:10 -08:00
anthony baa6666897 create xenserver 5.6 patch file 2010-12-17 20:21:28 -08:00
anthony 44a8fdf918 fixed mount issue 2010-12-17 20:07:09 -08:00
anthony a8a6419bf4 remove scsiutil.py 2010-12-17 16:18:34 -08:00
anthony d35fbad6f5 get 5.6 NFSSR.py 2010-12-17 16:07:37 -08:00
anthony f1bdebb628 remove LUNperVDI.py 2010-12-17 16:02:11 -08:00
anthony 6ff038a9c3 delete ISCSISR.py 2010-12-17 15:53:43 -08:00
anthony c6633f9095 delete cleanup.py 2010-12-17 15:41:47 -08:00
anthony fbbf78efbb intialize only get xenserver info 2010-12-14 15:24:21 -08:00
edison 5c73e46113 bug 7296: add kvm.public.network.device and kvm.private.network.device from UI
status 7296: resolved fixed
2010-12-04 20:01:10 -08:00
anthony ef9c9b8c5f split scripts to premium-script 2010-12-03 20:53:53 -08:00
anthony 4b20796467 remove patch domr logical 2010-12-01 16:32:33 -08:00
Anthony Xu 7518488672 bug 7293: return complete installpath for createprivatetemplatefromvolume
status 7293: resolved fixed
2010-11-23 16:22:51 -08:00
edison 007783f6cf add more logs when taking heartbeat, and make ha enabled even in oss 2010-11-10 09:49:03 -08:00
edison 4bc63e5c32 Enable KVM HA on nfs storage 2010-11-09 22:03:22 -08:00
anthony 224da7e775 several snapshot fixes 2010-11-05 20:55:19 -07:00
anthony ff5ea1eabd merge from 2.1.x 74b798240c
1. remove plugin check Sr, heartbeat does that
    2. if pbd.plug fails, moves on, and report warnning
2010-11-03 19:36:25 -07:00
anthony 003b0e4a23 merge from 2.1.x 86d02eaa15
delete all snapshut which has been backed up to secondary storage
change dd block size from 512 to 1M, make taking snapstho faster for iscsi primary storage
2010-11-03 19:05:23 -07:00
anthony 25c0d0f197 patch.tgz and prepsystemvm.sh are not needed, we use iso instead 2010-11-03 17:19:04 -07:00
Chiradeep Vittal 8dda98a1bb fix problems after merging in bug fixes from 2.1.x 2010-11-01 12:31:10 -07:00
Chiradeep Vittal d6a2766c04 dont wipe dhcp and antispoof rules every time 2010-11-01 12:21:56 -07:00
Chiradeep Vittal 3c897c5b27 bug 5532: allow more instances. could still fail with a very long instance name 2010-11-01 12:21:56 -07:00
Chiradeep Vittal c1b7f5a6fa bug 6485: fix reboot logic 2010-11-01 12:21:56 -07:00
Chiradeep Vittal 2c14634e3b bug 6268: cloud-private is actually the management interface 2010-11-01 12:21:55 -07:00
Chiradeep Vittal 1e0eb04442 Add VPN apis, some systemvm changes for vpn 2010-11-01 10:27:49 -07:00
anthony cc6b43d58d bug 6546: support ubuntu 10.04 PV kernel,
for ext3 requirement, we can file a seperate bug for it, the solution should be install ext4 module in xenserver

    status 6546: resolved fixed
2010-10-21 18:28:31 -07:00
Kris McQueen f964470ba4 remove whitespace at the start of the file which confuses the interpreter and prevents plugins from working 2010-10-20 16:48:20 -07:00
anthony 4cca3f9b87 when get scsi_id, replace all whitespaces by underscores 2010-10-20 13:55:14 -07:00
anthony 121d29211e update new keypair 2010-10-15 15:50:53 -07:00
anthony b66203ebca empty it instead of rm it 2010-10-15 15:05:22 -07:00
anthony 93f3205a84 change the script 2010-10-07 23:24:25 -07:00
edison 139ff273ff fix systemvm template for kvm, using chiradeep's latest debian template 2010-10-05 20:41:39 -07:00
anthony 319d4f1aa0 snapshot redesign
1. use full snapshot and delta snapshot, there are maxsnashot/2 of delta snapshot between two full snapshot
2. only support one policy for one volume
3. remove all coleases in secondary storage.
2010-09-28 18:37:46 -07:00
edison d933f19d35 bug 5800: add cluster for KVM
TODO: need to make sure the host cpu is from the same vender in a cluster
2010-09-10 16:00:36 -07:00
anthony 0d55059583 remove some SMlog 2010-09-09 13:59:31 -07:00
Alex Huang 7249f168d5 more file changes 2010-09-09 13:27:20 -07:00
anthony 5d8cadb7b0 correctly use session in plugin 2010-08-29 23:59:33 -07:00
anthony afd8052203 remove unused scripts 2010-08-29 18:39:15 -07:00
anthony a517338ac7 fix a bug about backupsnapshot to nfs primary storage 2010-08-28 19:17:40 -07:00
Anthony Xu d72e0538da Revert "Revert "use iso to patch systemvm""
This reverts commit 145e2e0aaa.
2010-08-26 16:06:28 -07:00
Anthony Xu 145e2e0aaa Revert "use iso to patch systemvm"
This reverts commit 3565f8d21b.
2010-08-26 16:03:34 -07:00
root 3565f8d21b use iso to patch systemvm
Conflicts:

	core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	scripts/vm/hypervisor/xenserver/xenserver56/patch
2010-08-26 15:56:02 -07:00
edison 867b49edb6 Don't install console proxy agent on agent 2010-08-25 15:26:33 -07:00
Anthony Xu 0366dd093c use slaveconnection instead of masterconnection for all host plugin calls.
tested by creating domr and user vm and migrating them

1. if you add host for kvm , you need specify kvm://ip_address, otherwiset there is no to differ kvm and xenserver hosts, edison cloud you please test this, may need some minor fixes.

2. if you want to session inside your plugin call, you can not use the one which is passed in, due to it is a slavesession, you need to call get_xapi_session() to get a new local session and use it. I have modified some of these, I may ignore some. Please let me know if you see XENAPI_PLUGIN_EXCEPTION.
2010-08-23 18:01:39 -07:00
Anthony Xu 09680d80a7 bug 5939: add the new script to patch
status 5939: assigned
2010-08-18 16:59:04 -07:00
Anthony Xu 334b2f7d27 bug 5939: script to clean xenstore disk 2010-08-16 17:06:20 -07:00
edison 53df26daaa "Add host" for kvm:
The sequence:
1. add host in UI
2. scp setup_agent.sh to agent host, and execute it. This script receives hostip,zoneid, podid and guid, then runs "cloud-setup-agent" and "cloud-setup-console-proxy". Here, we assume that network/hostname and cloud-agent are already configed and installed.
3. Write a dummy kvm resource into the database, then wait for agent connects to server, by polling the database for every 1 minutes. If it finds the agent is in UP state in database, then return, or wait for at least 10 minutes.
2010-08-13 23:19:36 -07:00
edison dc005b9b9c add setup_agent.sh, the first script running during add host
Make cloud-setup-agent/console-proxy in unattended mode
2010-08-11 19:31:07 -07:00
Manuel Amador (Rudd-O) 05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00