Commit Graph

505 Commits

Author SHA1 Message Date
Sheng Yang 064f6c01b3 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-23 11:58:34 -07:00
Sheng Yang 82b8933854 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-23 11:58:22 -07:00
Kelven Yang d7c49e485a CLOUDSTACK-4376: fix cloud-early-config to workaround vSwitch stall in VPC mode. fix potential NPE in DirectAgentAttache in processing answers from resource 2013-08-20 14:58:52 -07:00
Jayapal 8c68660537 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:32:51 +05:30
Anthony Xu e2710f8bc5 CLOUDSTACK-4176
hot unplug NIC in VR when there is no ips on this NIC
Author:  Jayapal Reddy Uradi <jayapalreddy.uradi@citrix.com>

Reviewed-by: Anthony
2013-08-19 11:09:46 -07:00
Bharat Kumar 8babd390d6 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:13:17 +05:30
Abhinandan Prateek af71fb2ab3 Revert "CLOUDSTACK-4132 Added the dnsmasq setting update-dhcp-clent to enable clients to update DNS records"
This reverts commit 76990612f5.
2013-08-17 08:34:18 +05:30
Bharat Kumar 76990612f5 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:12:18 +05:30
Bharat Kumar 16deb39352 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:52:38 +05:30
Jayapal e37318a492 CLOUDSTACK-4184 updated the socat in password server for handling parallel requests in parallel vm deployments 2013-08-13 12:48:27 +05:30
Bharat Kumar 608c63a534 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:30:11 +05:30
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
Marcus Sorensen 949c088e7b CLOUDSTACK-3964 Change permissions on vm router vmdata script
Submitted-by: Toshiaki Hatano
2013-07-30 20:43:25 -06:00
Sheng Yang 0f765727d5 CLOUDSTACK-3357: Add domain and local parameter for VPC dnsmasq.conf
Fix DNS failure for internal guest vms.
2013-07-29 18:22:32 -07:00
Bharat Kumar 1f50e74d60 Cloudstack-3882 remove duplicate entres of dataserver from /etc/hosts
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-29 17:50:46 +05:30
Saksham Srivastava 6403bb339d 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:40:57 +05:30
Marcus Sorensen 9db03bf426 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:26:17 -06:00
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
Jayapal ce8a869a92 CLOUDSTACK-3623 Enabled rps, rfs on vpc VR 2013-07-24 16:55:36 +05:30
Wido den Hollander 722266378f CLOUDSTACK-3776: Mount SSVM root filesystem with sync and noatime 2013-07-24 11:32:12 +02:00
Sheng Yang 26f3427b66 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:51:58 -07:00
Sheng Yang 730021c107 CLOUDSTACK-3533: Fix missing parameter of dhcp_release 2013-07-24 00:03:14 -07:00
Sheng Yang 3af96338dc 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:08:44 -07:00
Sheng Yang 8a257fb07c CLOUDSTACK-3699: Fix ARP broadcast of VPC router
Every new public IP should be send out ARP broadcast.
2013-07-21 22:21:17 -07:00
ilya musayev 88b36edf87 CLOUDSTACK-2053: Fixed userdata.sh redundancy and cloud-init support 2013-07-19 11:10:27 -04:00
Sheng Yang bc0f68d424 CLOUDSTACK-3652: Increase maximum connections of sshd server to 1000
In order to meet parallel deployment's requirement.
2013-07-18 19:33:05 -07:00
Wei Zhou 462c72a902 CLOUDSTACK-2875: change runlevel to disable auto-start cloud-passwd-srvr 2013-07-18 13:11:07 +02:00
Jayapal 50b5ba6452 CLOUDSTACK-2433 Enable rps and rfs in virtual router 2013-07-17 18:07:46 +05:30
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
Bharat Kumar 664d479f8f Cloudstack-3313 Cannot deploy vm in ipv6 network
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 10:07:57 +05:30
Sheng Yang 54e9fe4485 CLOUDSTACK-3540: Fix edithosts.sh to prevent removing active dhcp entries
IP match must terminated by comma.
2013-07-15 18:01:31 -07:00
Sheng Yang fd06009d50 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:07:36 -07:00
Jayapal 34582d672f CLOUDSTACK-3533 Fixed dhcphosts.txt for two entries and also dhcp_relase for ipv6 2013-07-15 20:02:56 +05:30
Jayapal ffbc30ddbb 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:47:24 +05:30
Jayapal acd9390901 CLOUDSTACK-3424 Fixed dhcphosts entry and also dhcp_relase for ipv6 2013-07-15 18:14:53 +05:30
Sheng Yang 2ea61e7f22 CLOUDSTACK-3436: Fix inconsistent ip routing table between redundant virtual routers 2013-07-10 15:54:14 -07:00
Jayapal c7f26583a2 CLOUDSTACK-3404 fixed vm deploy in ipv6 network, dhcp_release is performed only in ipv4 2013-07-09 13:12:06 +05:30
Jayapal 5a57e82eaf CLOUDSTACK-3312 Updated dhcp_release to listen on eth0 in edithosts.sh 2013-07-04 16:36:21 +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
Bharat Kumar d92a01336b Cloudstack-2938 [Multiple_IP_Ranges] Password Service does not work in case of multiple subnets in a vlan
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-20 10:37:24 +05:30
Alena Prokharchyk d66e9c7b51 CLOUDSTACK-2843: Provideded an ability to turn off the synchronization being done on the CS agent side,
for number of commands participating in Vm deployment process, as parallel deployment is supported on the hypervisor side.
The behavior is controlled by global config varirables:

"execute.in.sequence.hypervisor.commands" (false by default) sets/resets the synchronization for commands:
=========================
StartCommand
StopCommand
CreateCommand
CopyVolumeCommand

"execute.in.sequence.network.element.commands" (false by default) sets/resets the synchronization for commands:
==========================
DhcpEntryCommand
SavePasswordCommand
UserDataCommand
VmDataCommand

As a part of the fix, increased the global lock timeout to 30 mins in several VR scripts:
===========================
edithosts.sh
savepassword.sh
userdata.sh

to support situations when multiple concurrent calls to the script are being made.
2013-06-19 10:12:13 -07:00
Wei Zhou f61d61db94 CLOUDSTACK-2875: allow port 8080 on virtual router so that vm can get password from virtual router 2013-06-06 23:05:12 +02:00
Bharat Kumar 48913679e8 CLOUDSTACK-2648 [Multiple_IP_Ranges] Reboot or start/stop router vm deletes the ip alises created on VR in case of multiple subnets
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-03 19:22:27 +05:30