Commit Graph

582 Commits

Author SHA1 Message Date
Anthony Xu
728c505fce 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:14:24 -08:00
Anthony Xu
7f9463bb54 put shell scripts to a seperate directory in XS
use same scripts for both XS and XCP
2013-12-03 01:36:24 -08:00
Anthony Xu
4918e21452 Revert "Changed host stats to be collected through the http connection"
This reverts commit 5e44df6de5.
2013-11-13 19:00:15 -08:00
Anthony Xu
aee7603abb Revert "Removed the hostvmstats method call from the xs plugin vmops in xcposs"
This reverts commit c0602d661a.
2013-11-13 19:00:12 -08:00
Anthony Xu
d8e2f6b6f6 Revert "Removed the hostvmstats.py file from the scripts and from all of patch files and from vmops"
This reverts commit eb19545dc0.
2013-11-13 19:00:10 -08:00
Anthony Xu
a9f473ee5d Revert "Accidentally checked in the wrong file"
This reverts commit 1c3b9b53fe.
2013-11-13 18:59:43 -08:00
Alex Huang
1c3b9b53fe Accidentally checked in the wrong file 2013-11-11 08:24:05 -08:00
Alex Huang
c0602d661a Removed the hostvmstats method call from the xs plugin vmops in xcposs 2013-11-11 08:24:04 -08:00
Alex Huang
eb19545dc0 Removed the hostvmstats.py file from the scripts and from all of patch files and from vmops 2013-11-11 08:24:04 -08:00
Alex Huang
5e44df6de5 Changed host stats to be collected through the http connection 2013-11-11 08:24:02 -08:00
Anthony Xu
bcadbe6f9a 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:15:58 -07:00
Edison Su
9672a45ea1 CLOUDSTACK-4817: fix s3 multipart uplaod 2013-10-28 17:28:10 -07:00
Frank.Zhang
16a51ee479 CLOUDSTACK-4674
[baremetal] /usr/share/cloudstack-common/scripts/util/ipmi.py script
need to recognize various ipmi version and BMC type of server
2013-10-28 14:48:01 -07:00
Anthony Xu
9a27690093 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-21 16:10:07 -07:00
Jayapal
e2b29e3d4e CLOUDSTACK-4624 Fixed security groups rules program issue in Advaced SG VM migration 2013-10-21 17:41:01 +05:30
Wei Zhou
175549f3ab CLOUDSTACK-4405: additional patch for bridge name and firewall rules issues after KVM upgrade to 4.2
There still exist two issues after Edison's commits.
(1) Migration from new hosts to old hosts failed.
The bridge name on old host is set to cloudVirBr* if network.bridge.name.schema is set to 3.0 in /etc/cloudstack/agent/agent.properties, but the actual bridge name is breth*-* after running cloudstack-agent-upgrade.
(2) all ports of vms (Basic zone, or Advanced zone with security groups) on old hosts are open, because the iptables rules are binding to device (bridge) name which is changed by cloudstack-agent-upgrade.

After this, the KVM upgrade steps :
a. Install 4.2 cloudstack agent on each kvm host
b. Run "cloudstack-agent-upgrade". This script will upgrade all the existing bridge name to new bridge name, and update related firewall rules.
c. install a libvirt hook:
    c1. mkdir /etc/libvirt/hooks
    c2. cp /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu
    c3. chmod +x /etc/libvirt/hooks/qemu
    c4. service libvirtd restart
    c5. service cloudstack-agent restart
2013-09-24 08:51:58 +02:00
Edison Su
f2c5b5fbfe CLOUDSTACK-4618: fix CLVM 2013-09-06 17:55:29 -07:00
Jayapal
bd65241660 CLOUDSTACK-4613 correcting anti spoofing security group rules 2013-09-06 15:41:28 +05:30
Edison Su
1a333f369b CLOUDSTACK-4559: fix devcloud 2013-08-29 10:34:32 -07:00
Edison Su
4277bcf8f4 CLOUDSTACK-3229: if delete snapshots on staging area failed, still treat backup snapshot as succeed. And modify snapshot delete logic on devcloud 2013-08-17 13:20:58 -07:00
Dave Cahill
9d053d04ec Fix specifying db passwd in cloud-install-sys-tmplt
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-08-12 11:01:32 +02:00
anthony
f399372233 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:21:56 -07:00
John Burwell
0a85c1d4a7 - CLOUSTACK-3229: Properly converts the Content-Length to string
representation in s3xen
2013-08-01 15:42:02 -04:00
John Burwell
4c5a302219 - 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:28:54 -04:00
John Burwell
42e950aa41 - CLOUDSTACK-3229: Fixes string formatting argument mismatch 2013-08-01 03:12:18 -04:00
John Burwell
fe85a9e6d8 - CLOUDSTACK-3229: Fixes a syntax error in s3xen 2013-08-01 02:54:11 -04:00
John Burwell
952c9daa20 - CLOUDSTACK-3229: Removes String format method call that is not
supported in Python 2.4
2013-08-01 02:44:17 -04:00
John Burwell
1cc98ee7ae - CLODSTACK-3229: Adds missing is_blank function to s3xen 2013-08-01 02:26:46 -04:00
John Burwell
9cd4e089a5 - 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:11:40 -04:00
John Burwell
59492fae10 - 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-07-31 23:16:21 -04:00
Marcus Sorensen
5a2fd3e2a4 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:41:11 -06:00
Anthony Xu
2d87e64371 CLOUDSTACK-3963:
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.
2013-07-30 17:34:44 -07:00
Wei Zhou
449d7821a6 CLOUDSTACK-3843: remove greedy results in save_password_to_domr.sh 2013-07-29 13:36:04 +02:00
Bharat Kumar
43396e9006 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:11 -07:00
Sheng Yang
3b39fb0442 Bring back vm_data.sh which deleted by a KVM related commit
The following commit removed vm_data.sh, but the file shared by Xen as well.

Bring the file back.

commit 28855b4987
Author: Marcus Sorensen <marcus@betterservers.com>
Date:   Wed Jul 24 13:58:17 2013 -0600

    Summary: Get away from dozens of ssh/scp calls for KVM vm_data push

    Detail: userdata and vm metadata take a long time to program on KVM routers.
    This does it all in one go, processed on the router.

    BUG-ID: CLOUDSTACK-3163
    Tested-by: Wido
    Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1374695897 -0600
2013-07-25 16:34:49 -07:00
Kishan Kavala
753f50b307 CLOUDSTACK-3769: Fixed variable name localMountPointPath in vmopsSnapshot plugin 2013-07-25 16:26:40 +05:30
Bharat Kumar
42346cdf47 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 13:59:58 -07:00
Marcus Sorensen
49dce4bd9c Summary: Get away from dozens of ssh/scp calls for KVM vm_data push
Detail: userdata and vm metadata take a long time to program on KVM routers.
This does it all in one go, processed on the router.

BUG-ID: CLOUDSTACK-3163
Tested-by: Wido
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1374695897 -0600
2013-07-24 13:58:17 -06:00
John Burwell
040292d606 - CLOUDSTACK-2583: PEP-8 compliance for s3xen 2013-07-23 18:40:26 -04:00
John Burwell
c1c1e75663 - CLOUDSTACK-2583: Backports the s3xen plugin to Python 2.4 2013-07-23 18:06:54 -04:00
Edison Su
8c3f970434 CLOUDSTACK-2630: fix delta snashpt 2013-07-20 18:21:26 -07:00
Edison Su
e659328ff5 fix create template from snapshot if it's swift 2013-07-19 18:18:02 -07:00
Anthony Xu
ab828a1649 don't overwrite logrotate in XenServer 2013-07-18 16:37:46 -07:00
Anthony Xu
48d5939918 vhd-util check doesn't work for some corrupted vhd file, use vhd-util read instead 2013-07-17 15:00:10 -07:00
Bharat Kumar
956a2a68ce Incorportaed the review changes Now dhcpservice IPs are removed when last vm from the subnet is removed.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 16:53:11 +05:30
Edison Su
ba4c4400b5 be able to upload template into swift 2013-07-16 18:05:01 -07:00
Edison Su
c888fc6b75 add inital swift support 2013-07-13 01:52:03 -07:00
hongtu_zang
4836134313 fix xenserver 6.1 and 6.2 can not open vnc console
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-12 16:34:22 +05:30
Wido den Hollander
0898a264a5 CLOUDSTACK-3409: Do not clean up security group rules for Instances in the "paused" state.
When 'security_group.py cleanup_rules' is called by the KVM Agent it will clean up all Instances
not in the "running" state according to libvirt.

However, when a snapshot is created of a Instance it will go to the "paused" state while the snapshot
is created.

This leads to Security Rules being removed when a Instance is being snapshotted and the cleanup process
is initiated.
2013-07-11 12:00:48 +02:00
Jayapal
c22e7d0052 CLOUDSTACK-1578 SRX: Egress default policy configurable using network offering on SRX firewall 2013-06-24 13:37:01 +05:30