Commit Graph

530 Commits

Author SHA1 Message Date
Wei Zhou e14bd03da5 CLOUDSTACK-1749: change cloud service name in systemvm
(cherry picked from commit 78b912e38f)
2013-09-19 10:54:44 +02:00
Kelven Yang 71b8f6061f CLOUDSTACK-4376: fix cloud-early-config to workaround vSwitch stall in VPC mode. fix potential NPE in DirectAgentAttache in processing answers from resource 2013-09-04 14:49:45 -07:00
Sheng Yang 495259132c CLOUDSTACK-4601: Add PATH for cron job of check_heartbeat.sh
Also fix a typo in the script template.
2013-09-03 16:55:27 -07:00
Sheng Yang 8daf3e3c23 CLOUDSTACK-1670: Fix multiple nic routing issue when dhcp_release available
dnsmasq.conf need to contain /etc/dhcpopts.txt from the beginning, otherwise
SIGHUP won't make dnsmasq reload the dhcpopts.txt, thus result in multiple nics
user VM get router information from all DHCP offers.
2013-08-22 19:20:04 -07:00
Sheng Yang e515acd7be CLOUDSTACK-4199: Only use ifdown/ifup for the un-configured eth2
Seems the behavior of ifdown/ifup changed in new version, that it would only
enable the default IP of eth2, regardless we can configure additional ips for
it. So we would always use ifconfig for interface control whenever
possible(a.k.a eth2 already got ip addresses).

When VR is booting up, ipassoc command hasn't been delivered, it's possible that
eth2 doesn't have any ip address, then ifconfig would fail because it doesn't
know how to find the ip for eth2. So in this only case, we would use ifdown/ifup
to set the ip address according to /etc/network/interfaces.

It can potentially racy againest ipassoc command, but biglock should prevent
racy condition from happening.
2013-08-22 17:49:27 -07:00
Jayapal a5ada3f363 CLOUDSTACK-4199 Fixed redundant router fail over
When master router down, the back up router is entered into FAIL state
but it supposed to enter into master.
This issue is happening because the the enable_pubip.sh script triying to
ifdown and ifup the eth2 interface. Which is failed. So master.sh script got
failed. Fixed by doing ifdown force
2013-08-20 17:33:22 +05:30
Bharat Kumar 66d7615065 CLOUDSTACK-4132 current dnsmasq config does not allow guest virtual machines(clients) to update its hostnames with a DNS server
Introducing the option dhcp-client-update fails if the dnsmasq version is less than 2.6 (like in older templates).
Added a check for the version in cloud-early-config. will add dhcp-client-update option in the config file only
if the dnsmasq version is 2.6 and above.

Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-19 11:15:06 +05:30
Abhinandan Prateek 9de9dec6e3 Revert "CLOUDSTACK-4132 Added the dnsmasq setting update-dhcp-clent to enable clients to update DNS records"
This reverts commit 5ca4429dab.
2013-08-17 08:39:25 +05:30
Bharat Kumar 5ca4429dab CLOUDSTACK-4132 Added the dnsmasq setting update-dhcp-clent to enable clients to update DNS records
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-08-16 11:10:06 +05:30
Bharat Kumar c01d0f74cd CLOUDSTACK-4317 make the regular expressions in dnsmasq.sh more tighter to avoid matching of ip6dns
Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-15 10:53:48 +05:30
Jayapal 8e7d8ba0b6 CLOUDSTACK-4184 updated the socat in password server for handling parallel requests in parallel vm deployments 2013-08-13 12:52:36 +05:30
Bharat Kumar 78abebae28 CLOUDSTACK-4231 make apache server listen on all the ipaliases to provide access to meta-data.
Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-12 17:32:19 +05:30
Chip Childers 8225374138 Updating pom.xml version numbers for release 4.3.0-SNAPSHOT
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-08-01 10:35:00 -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
Marcus Sorensen eea3bb84d5 CLOUDSTACK-3964 Change permissions on vm router vmdata script
Submitted-by: Toshiaki Hatano
2013-07-30 20:46:37 -06:00
Sheng Yang 9278b2c343 CLOUDSTACK-3357: Add domain and local parameter for VPC dnsmasq.conf
Fix DNS failure for internal guest vms.
2013-07-29 18:24:44 -07:00
Rajesh Battala 8edf6b3467 CLOUDSTACK-3215 Logs in the Software router are not being rotated 2013-07-29 18:50:15 +05:30
Bharat Kumar 62d84d119a Cloudstack-3882 remove duplicate entres of dataserver from /etc/hosts
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-29 17:50:02 +05:30
Saksham Srivastava a10861a57b CLOUDSTACK-3874: Adding method to cloud-early-config to allow updation of systemvms log rotation
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-27 15:38:39 +05:30
Marcus Sorensen 74df662037 Summary: Make vmdata_kvm.py concurrency friendly
Detail: Adds flocks, etc for calling this concurrently, since CLOUDSTACK-3484
made userdata, vmdata, start commands concurrent

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1374773177 -0600
2013-07-25 11:28:42 -06:00
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
Marcus Sorensen 28855b4987 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 14:01:02 -06:00
Jayapal 5dd1116402 CLOUDSTACK-3623 Enabled rps, rfs on vpc VR 2013-07-24 16:56:09 +05:30
Wido den Hollander e6bad5c831 CLOUDSTACK-3776: Mount SSVM root filesystem with sync and noatime 2013-07-24 11:29:03 +02:00
Sheng Yang dabea9da08 CLOUDSTACK-3533: Add space after IP for dhcp_release
To prevent use the wrong mac of the IP with same prefix.

Thanks to Wei Zhou's comment!
2013-07-24 00:50:57 -07:00
Sheng Yang b6f7dccf0b CLOUDSTACK-3533: Fix missing parameter of dhcp_release 2013-07-24 00:04:44 -07:00
Sheng Yang 1ca4f66306 CLOUDSTACK-3533: Fix dhcp_release for IPv6
dhcp_release doesn't support IPv6, though it won't return failure(that's a bug
that has been fixed in recent release). So if it's IPv6, we would still use the
old way(restart dnsmasq) to refresh the lease.
2013-07-23 18:09:05 -07:00
Sheng Yang d893cb48a5 CLOUDSTACK-3699: Fix ARP broadcast of VPC router
Every new public IP should be send out ARP broadcast.
2013-07-21 22:24:16 -07:00
ilya musayev eb3ffef95a CLOUDSTACK-2053: Fixed userdata.sh redundancy and cloud-init support 2013-07-19 09:59:00 -04:00
Sheng Yang f50908341b CLOUDSTACK-3652: Increase maximum connections of sshd server to 1000
In order to meet parallel deployment's requirement.
2013-07-18 19:33:35 -07:00
Jayapal 2d6644d961 CLOUDSTACK-2433 Enable rps and rfs in virtual router 2013-07-17 16:59:59 +05:30
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
Bharat Kumar 6b549074fa Cloudstack-3313 Cannot deploy vm in ipv6 network
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 10:06:11 +05:30
Wei Zhou 53f6b2aee3 CLOUDSTACK-2875: change runlevel of cloud-passwd-srvr to remove error message at systemvm startup 2013-07-16 11:37:06 +02:00
Sheng Yang 9fe1a2b9fa CLOUDSTACK-3540: Fix edithosts.sh to prevent removing active dhcp entries
IP match must terminated by comma.
2013-07-15 18:01:57 -07:00
Sheng Yang a9549a7f81 CLOUDSTACK-3434: Improve the atomic of file lock used in VR
Now we would retry if "ls" failed, since the list of files changed.
2013-07-15 16:08:27 -07:00
Wei Zhou ecdb700311 CLOUDSTACK-2875: change runlevel to disable auto-start cloud-passwd-srvr 2013-07-15 16:41:51 +02:00
Jayapal baf681c16d CLOUDSTACK-3533 Fixed dhcphosts.txt for two entries and also dhcp_relase for ipv6 2013-07-15 20:02:31 +05:30
Jayapal 6c6217594d Revert "CLOUDSTACK-3424 Fixed dhcphosts entry and also dhcp_relase for ipv6"
This reverts commit f37567ef45.
This deletes the duplicate entry when new vm came with deleted vm ip.
So will not fix the bug CLOUDSTACK 3424 fully. So this changes will be committed into new bug
2013-07-15 18:44:22 +05:30
Jayapal f37567ef45 CLOUDSTACK-3424 Fixed dhcphosts entry and also dhcp_relase for ipv6 2013-07-15 18:15:34 +05:30
Sheng Yang 9de2034832 CLOUDSTACK-3436: Fix inconsistent ip routing table between redundant virtual routers 2013-07-10 15:54:39 -07:00
Jayapal 4779a00594 CLOUDSTACK-3404 fixed vm deploy in ipv6 network, dhcp_release is performed only in ipv4 2013-07-09 13:15:45 +05:30
Jayapal daa4c326aa CLOUDSTACK-3312 Updated dhcp_release to listen on eth0 in edithosts.sh 2013-07-04 16:36:50 +05:30
Hiroaki KAWAI c484d8aaba Add notes about systemvm build script 2013-06-26 15:16:29 +09:00
Jayapal 6a7ae637dd CLOUDSTACK-1578 Egress default policy configurable using network offering in xenserver with VR as firewall provider 2013-06-24 13:37:00 +05:30
Hiroaki KAWAI 5c4578ef26 cloud-early-config: add device file existence check
If device file was not found, then it should be logged.
2013-06-24 11:24:42 +09:00
Hiroaki KAWAI 009da93058 upgrade debian systemvm to wheezy
New kvm libvirt requres virtio-console (/dev/vport*), so
upgrading debian guest base OS to wheezy.
2013-06-24 11:16:40 +09:00
Hiroaki KAWAI 3123fe6bba Add iptables-persistent service in guest OS.
cloud-passwd-srvr depends on iptables-persistent.
2013-06-24 11:14:16 +09:00
Hiroaki KAWAI bdfce2bc7e Remove unused code
The files xt_CHECKSUM.ko, iptables_1.4.8-3local1checksum1_i386
and xe-guest-utilities_5.6.0-595_i386 does not exist in the
repo now.
2013-06-24 11:09:09 +09:00
Bharat Kumar f9e7094282 Cloudstack-2644 [Multiple_IP_Ranges] user data service on VR does not work in case of multiple subnets Cloudstack-2953 [Multiple_IP_Ranges] VM does not get the public key from VR incase of multiple subnets per vlan Also removed some unused code and fixed the an error in the dnsmasq config function
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-20 11:15:15 +05:30