152 Commits

Author SHA1 Message Date
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
Abhinandan Prateek
a9bfee1e22 CLOUDSTACK-2434: fixed var name 2013-06-03 16:11:09 +05:30
Abhinandan Prateek
7d51ebba9e CLOUDSTACK-2434: bad syntax 2013-06-03 16:05:19 +05:30
Abhinandan Prateek
7b0da06238 CLOUDSTACK-2434: bad syntax 2013-06-03 15:35:17 +05:30
Abhinandan Prateek
723a455731 CLOUDSTACK-2434: Enabling irqbalance only on router having mutiple virtual processors 2013-06-03 13:46:43 +05:30
Anthony Xu
7b8ae4d511 virt-what does't report correct hypervisor on some new platform, use /proc/xen for XS 2013-05-29 17:05:03 -07:00
Sheng Yang
07715b91af CLOUDSTACK-2639: Add flag for booting complete
Don't execute any command before VR complete booting up process.
2013-05-23 18:46:43 -07:00
Jayapal
e31553aff8 CLOUDSTACK-2308 fixed adding route in vware for mgmt subnet
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-22 12:21:30 +05:30
Chiradeep Vittal
076c32db9a CLOUDSTACK-2492: enable time sync on vmware if ntp is not installed 2013-05-15 15:00:31 -07:00
Nitin Mehta
c11dbad9c9 merge master 2013-05-11 15:28:43 +05:30
Edison Su
1c89bc78fd regression, need to modify iptables rules in rules.v4 2013-04-24 14:52:44 -07:00
Jayapal
39f772eee8 CLOUDSTACK-2161 updated cloud-early-config to copy iptables-* to rules.v4
In iptables-persistent, iptables-restore is loading config from the /etc/iptables/rule.v4

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-24 15:25:15 +05:30
Jayapal
59bee8d1b4 CLOUDSTACK-2118 added delay for interface to come up in cloud-early-config In cloud-early-config ifup is taking some time to setup the interface ip So in setup_interface waiting for some time for interface to come up
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 17:43:36 +05:30
Marcus Sorensen
9670553ea8 In system vm, wait for interface to be available before configuring gateway.
Previous patch to this only did so for system vms with a $3 interface, usually
eth2. System VMs that only provide DNS wouldn't get a gateway, for example.

BUG-ID: CLOUDSTACK-1565
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1365617851 -0600
2013-04-10 12:17:31 -06:00
Marcus Sorensen
be55c5b3a5 VPC - new system vm doesn't bring up eth0 reliably, and we don't set eth0 to
auto start like we should.  cloud-early-config sets 'auto lo $1', but we don't
pass $1 in vpc router scenario like we do in others for some reason. eth0 is
always link local in vpc router, so setting it to that.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1365546368 -0600
2013-04-09 16:26:08 -06:00
Marcus Sorensen
8eb3ebbe1a Summary: CLOUDSTACK-1565 - Waits for ip to come up before setting default route
Submitted-by: Jayapal Reddy <jayapalreddy.uradi@citrix.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1364226284 -0600
2013-03-25 09:46:47 -06:00
Rohit Yadav
c9082c9126 CLOUDSTACK-1643: Don't force load aesni_intel module, fix as per Chiradeep
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-03-14 11:52:06 +05:30
Rohit Yadav
b5f367e75a CLOUDSTACK-1643: Check and enable Intel AES NI if available for VR
This is an encryption optimization for VPN/SSL, with upto 10x advertised speed.
The patch check for the aesni_intel module if aes is available on the cpu, this
will be true for HVMs.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-03-12 16:34:50 +05:30
Sheng Yang
e35ce6587a CLOUDSTACK-1461: Don't set dns server for non-default ipv6 network
The non-default parameter can be used by ipv4 as well in the future.
2013-03-08 17:43:23 -08:00
Marcus Sorensen
9ad54a082c Summary: KVM - use virtio socket to communicate config to system vms
Detail: This gets rid of the patchdisk method of passing cmdline and
authorized_keys to KVM system VMs. It instead passes them to a virtio socket,
which the KVM guest reads from the character device /dev/vport0p1 during
cloud-early-config. Tested to work on CentOS 6.3 and Ubuntu 12.04. Should
work with even older versions of libvirt.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1362691685 -0700
2013-03-07 14:28:05 -07:00
Sheng Yang
a1b33cadf5 CLOUDSTACK-1332: Enable IPv6 dns in VR 2013-02-25 19:12:15 -08:00
anthony
e936257674 CLOUDSTACK-1199: add external DNS to dnsmasq configuration file 2013-02-08 16:30:32 -08:00
Sheng Yang
dfc9dc19f8 IPv6: Add IPv6 address to router in /etc/hosts 2013-01-29 22:08:32 -08:00
Sheng Yang
8f66d266b3 IPv6: Enable VR's ability to provide DHCPv6 service 2013-01-26 23:14:42 -08:00
Sheng Yang
6169c1d724 IPv6: Enable IPv6 address for router 2013-01-26 23:14:21 -08:00
Marcus Sorensen
e37a82375c Summary: Fix rp_filter for VPC router
Detail: VPC router was being treated like normal VR, which was an issue because
normally the VR has an eth0,1,2 which are isolated, linklocal, and public
networks respectively. rp_filter is turned on for eth0,1 and off for 2
(hardcoded). VPC however comes up with eth0,1 as public, linklocal, and no other
interfaces until new isolated networks are added, so the process doesn't work.
This change turns on rp_filter as new isolated networks are added to the VR.

BUG-ID: CLOUDSTACK-938
Bugfix-for: 4.0.2
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358451991 -0700
2013-01-17 12:51:38 -07:00
Sheng Yang
5eba489198 Redundant Router: Restart vpn related services when redundant router fail-over 2012-12-21 15:22:03 -08:00
ilya musayev
8ff8673f73 Fixed ARP issue that affected VmWare with Adavanced Network Zone that use Multiple vSwitches 2012-12-07 16:24:24 -06:00
Marcus Sorensen
b8af4278d0 Summary: VPC router needs /etc/hosts entry
Detail: This adjusts cloud-early-config to properly set the host entry for a
   vpc router. We were previously using the hostname command prior to the actual
   hostname being set, now we use the NAME variable passed to us.

BUG-ID: CLOUDSTACK-502
Bugfix-for: 4.0.1
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1353083661 -0700
2012-11-16 09:34:21 -07:00
Wido den Hollander
e477e1b78d CLOUDSTACK-448: Detect when running inside Xen HVM
This was reported by Jason Bausewein <jason.bausewein@tier3.com>
2012-11-09 14:05:27 +01:00
Marcus Sorensen
761b4f60a1 Summary: Fix virtual router trying to resolve own host name (v2)
Detail: Make change in 95df86e1e030ab955ac09f145df37f3aef606c05 be specific
to VPC.

BUG-ID : NONE
Reviewed-by: Marcus Sorensen
Reported-by: Marcus Sorensen
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1351695701 -0600
2012-10-31 09:01:41 -06:00
marcus
95df86e1e0 Summary: Fix virtual router trying to resolve own host name
Detail: Several virtual router configuration commands, such as iptables
commands, run slowly due to attempting to do a name lookup on the virtual
router's hostname and having to time out. This is seen in the agent logs when
a virtual router command is run, as "unable to resolve host r-410-VM" or
similar. This can make for very slow router configuration, especially as the
number of network rules grows. This change simply sets the router's name to
the localhost IP in /etc/hosts

BUG-ID : NONE
Reviewed-by: Marcus Sorensen
Reported-by: Marcus Sorensen
Signed-off-by: Marcus Sorensen <shadowsor@gmail.com> 1351659441 -0600
2012-10-30 22:57:21 -06:00
Sheng Yang
5ff1c52e40 CS-16441: Clear /tmp for file locks when starting up 2012-10-03 17:19:47 -07:00
Anthony Xu
b59c3c8885 VPC : password server, start password server when guest network is created 2012-09-26 17:42:42 -07:00
Anthony Xu
946295b114 open port 3922 on correct eth device 2012-09-26 17:42:42 -07:00
Marcus Sorensen
38457ee8ac CLOUDSTACK-131: KVM fails to copy authorized_keys to system vm now that iso is not
mounted

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-20 11:06:53 -07:00
Chip Childers
763311c006 License header updates, and modification to root pom for exclusions. 2012-09-13 16:55:48 -04:00
anthony
ba0522461d VPC : configure apache2 for each guest network 2012-09-07 18:10:42 -07:00
anthony
5756a2a73b VPC : clean up rt_table when stop domr 2012-09-07 17:48:23 -07:00
anthony
6c96e638be VPC : static route, add route table in cloud-early-config 2012-09-07 17:46:40 -07:00
Rohit Yadav
fd4a1a39c1 Bug CS-15970: Fixes Redundant router status when host is XenServer 2012-08-28 12:07:33 +05:30
anthony
d51e3443cb VPC : add nic hot plug script 2012-06-15 14:32:10 -07:00
anthony
768463d113 VPC : add new dnsmasq.conf for VPC domr 2012-06-15 14:30:39 -07:00
anthony
d49210e42b VPC : add new type vpcrouter in cloud-early-config 2012-06-15 14:30:31 -07:00
anthony
fb7fc6fd91 VPC : revert change in cloud-early-config 2012-06-15 14:30:15 -07:00
anthony
95faedc09f VPC : bug fix 2012-06-15 14:29:47 -07:00
anthony
edbf4a0ba7 VPC : many debug fix 2012-06-15 14:26:41 -07:00
anthony
c442d6d7ab add guestnw.sh
add acl.sh
merge setup_dhcpsvr and setup_route
2012-06-15 14:18:47 -07:00
anthony
396fa72ee3 1. move control network to eth0 on domr
2. if it is basic mode, use guest NIC as Control NIC
2012-06-15 14:18:38 -07:00
Sheng Yang
985757ffe6 CS-14421: Clean /etc/network/interfaces when sysytemvm reboot
In order to make sure next time, booting process would use cloud-early-config's
setup, rather than networking scripts to bring up interfaces.

Reviewed-by: Kelven Yang
2012-05-31 17:57:55 -07:00