396 Commits

Author SHA1 Message Date
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
82a7e49fad Summary: Add TCP to DNS firewall settings for virtual routers
Detail: TCP is occasionally used for certain DNS query types

BUG-ID: CLOUDSTACK-535
Bugfix-for: 4.0.1
Reported-by: Tamas Monos
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1353946670 -0700
2012-11-26 09:21:32 -07:00
Rohit Yadav
ac1920ee9d CLOUDSTACK-500: Fix race condition between password server and iptables-persistent
Fixes order of service startup. Fixes file redirectors.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-23 15:43:11 +05:30
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
Rohit Yadav
dbe88c1ed3 CLOUDSTACK-417: Handle passwd-srvr securely on VR, port 8080
By default do not enable port 8080 in iptables-router. Since, the socat
server which serves the password is in an infinite loop, any incorrect
attempt is returned bad_request and passwd-srvr won't break.

When /etc/init.d/cloud-passwd-srvr is started:
  - It finds and removes any old rules on port 8080, eth0
  - It applies iptables rule that accepts only traffic from private cidr.

When cloud-passwd-srvr is stopped:
  - It removes iptables rules on port 8080, eth0

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-10-26 21:37:32 +05:30
Sheng Yang
5ff1c52e40 CS-16441: Clear /tmp for file locks when starting up 2012-10-03 17:19:47 -07:00
Alex Huang
25e8deb679 Applied review #7342 2012-10-01 17:34:56 -07:00
Anthony Xu
12d12ac54c CS-16409 : dhcp request doesn't have target ip, remove ip in the iptable rule 2012-10-01 10:27:42 -07:00
Anthony Xu
87e6278725 CS-16049 : VPC, VR provides metadata and user data through port 80, this port should be only open for targeting to this VR ip 2012-10-01 10:27:42 -07:00
Chip Childers
f212177146 CLOUDSTACK-159 - Added license header 2012-10-01 12:23:57 -04:00
Chip Childers
5f7a8a0436 CLOUDSTACK-162 - Added license header 2012-10-01 12:21:41 -04:00
Anthony Xu
a892f08280 fix licnese header for vpc_passwd_server 2012-09-28 10:18:01 -07:00
Anthony Xu
e44d306dd9 VPC : password reset fix 2012-09-26 17:42:42 -07:00
Anthony Xu
1946a9a583 VPC : password reset,
add console redirect
2012-09-26 17:42:42 -07:00
Anthony Xu
ddffdc9db7 CS-16393
one typo fix
    make passwd service exitable
2012-09-26 17:42:42 -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
Sheng Yang
0c6dcb4772 CS-15094: Fix multiply vlan of redundang router
This fix would work because:
1. When booting up the router, there is possible that no ip information have
been set for the interface(CS would do it after confirm router is up), so the
interface isn't associate with any ip, then ifconfig cannot work. We have to use
ifup, this is especially true for the first router become master.

2. After booting up phase, the ip would be associated with interfaces, then we
can use ifconfig to bring them up.
2012-09-26 16:28:33 -07:00
Sheng Yang
435e4f6868 CS-16400: Fix LB service using port 8080
Also added license header for passwd_server_ip

Ported from:

commit 1072ec7ae36911ed794c182a1146025a0e969ea9
Author: Sheng Yang <sheng.yang@citrix.com>
Date:   Wed Sep 12 11:15:33 2012 -0700

    CS-16318: Update the fix with some tweak

    1. The old fix run cloud-passwd-srvr twice because cloud-passwd-srvr is
still in the list of enabled_svcs

    2. The lock should be applied on serve_password.sh, which controlled the
accessing to the password. Applied on the MASTER/BACKUP switch is useless, two
instance of serve_password.sh would still able to access the password file at
the same time.

    3. Password service is a part of redundant router state transition process
now, so if the service failed to start, then the transition failed.

    4. Restart password service should be put before restart dnsmasq, which
would sent out DHCP offer to the user vms. If user VMs got the DHCP offer first
but failed to get password, there would be an issue.

    Reviewed-by: Anthony Xu

commit fa94da114099da357df7daa1aad3c327868393ca
Author: Jayapal Reddy <jayapalreddy.uradi@citrix.com>
Date:   Wed Sep 12 17:57:03 2012 +0530

    Bug:CS-16318 Starting password server on the both IPs in RRVM
    Reviewed-by: Abhi

Conflicts:

	patches/systemvm/debian/config/opt/cloud/bin/passwd_server
2012-09-26 16:28:33 -07:00
Chiradeep Vittal
32feb9525c CLOUDSTACK-171 cleanroom version of ipsec.conf 2012-09-25 15:58:33 -07:00
Chiradeep Vittal
969f0651ae CLOUDSTACK-171 according to http://markmail.org/thread/hipzcgtc7qx2o7iz delete first 2012-09-25 15:57:06 -07:00
Edison Su
c9a0cca604 remove the last vhd-util 2012-09-25 14:17:18 -07:00
Chip Childers
e2730c91d9 Adding license headers and licensing details for patches folder. 2012-09-25 14:26:52 -04:00
Chiradeep Vittal
97a1ed2ecb CLOUDSTACK-143 vcpu hotplug is used whenever the number of vcpus are increased or decreased while the vm is online. so far this is never done in CloudStack for system vms. Also, no evidence that this file is copied to /etc/udev/rules.d where it would be needed
CLOUDSTACK-144 xe-linux-distribution.init is used to communicate the distribution information to the xe toolset in dom0. No evidence that this file is copied to /etc/init.d where it would be needed. The right way to do it would be to install the xe-guest-utilities deb package from the xs-tools ISO distributed by Citrix XenServer
2012-09-21 17:31:38 -07:00
Chiradeep Vittal
1ba030729d CLOUDSTACK-142 remove unneeded file 2012-09-21 15:37:41 -07:00
Chiradeep Vittal
6fe019e3cc CLOUDSTACK-148 logrotate.conf configuration was developed for CloudStack. Deleted comment and blank lines to show origin in a clearer fashion 2012-09-21 15:23:37 -07:00
Chiradeep Vittal
df6fd4e644 CLOUDSTACK-168 remove unneeded file 2012-09-21 14:51:27 -07:00
Chiradeep Vittal
9a40415771 CLOUDSTACK-175 reduce config file to bare minimum by eliminating commented lines and whitespace 2012-09-21 14:47:32 -07:00
Chiradeep Vittal
8899180d7d CLOUDSTACK-170 remove unneeded secrets file 2012-09-21 14:44:49 -07:00
Chiradeep Vittal
f27168291a CLOUDSTACK-170 remove unneeded file 2012-09-21 14:39:41 -07:00
Chiradeep Vittal
feb77f3137 CLOUDSTACK-171 reduce config file to bare minimum by eliminating commented lines and whitespace 2012-09-21 14:35:08 -07:00
Chiradeep Vittal
3158e2fa16 CLOUDSTACK-174 remove unused file 2012-09-21 11:55:17 -07:00
Sheng Yang
bbc78bab5d CLOUDSTACK-159: Clean the configuration file
Now it's all written by myself.
2012-09-21 11:47:58 -07:00
Anthony Xu
44e8938120 CLOUDSTACK-106: this issue seems be coverred by other issue somehow, when other issue is fixed, this issue shows up 2012-09-21 10:24:58 -07:00
Marcus Sorensen
bf30dbc241 VPC - enable passwd server service
There is currently no vpcrouter type defined in patchsystemvm.sh, which
controls our init scripts in the system vms. This patch allows the
services that would normally start on a router to start also on the VPC
router, in particular the password server was missing.

Signed-off-by: Edison Su <sudison@gmail.com>
2012-09-20 15:44:51 -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
868bad8445 Adding license headers to CS authored ip tables config files 2012-09-14 13:19:17 -04:00
Chip Childers
d1eb762b1e Adding license header 2012-09-14 13:19:17 -04: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
Anthony Xu
4a0e645e28 CS-16254:
passwd_server listen on every interface, but only guest interface is enabled for that port
2012-09-07 17:10:54 -07:00
Anthony Xu
3cfe01d07c VPC : by default , outgoing traffic is allowed out, once egress rules are added, only traffic specified in those are allowed out, others are blocked 2012-09-07 17:03:12 -07:00
Edison Su
3db9736a07 CLOUDSTACK-29
remove iptables/xe-guest/xt
2012-09-06 11:05:09 -07:00
Edison Su
ea9121bc8f KVM initial VPC support
Implements
SetupGuestNetworkCommand,SetNetworkACLCommand,SetSourceNatCommand,IpAssocVpcCommand,SetPortForwardingRulesVpcCommand.
Passes basic functionality, though I'm sure there may be some honing to
do.

Also fixes a few minor things found along the way:
 vpc_guestnw.sh wasn't successfully setting up apache due to default
listen IP of 10.1.1.1
 vpc_guestnw.sh was referencing a 'logger_it' function, replaced with
'logger -t cloud'
 system vms were running with OS type "Debian GNU/Linux 5.0(32-bit)",
which was not found in the KVMGuestOsMapper
 the Xen implementation of SetupGuestNetworkCommand had apparently
copied its catch message from UnPlug Nic, fixed string

Send-by: Marcus Sorensen
RB: https://reviews.apache.org/r/6883
2012-09-04 11:45:59 -07:00
Gavin Lee
39a676c496 Correct license header mainly for patches folder
Signed-off-by: Chip Childers <chip.childers@gmail.com>
I've assumed that Gavin's commit is appropriate, based
on an assumption that we will keep these files in the source
tree.  If https://issues.apache.org/jira/browse/LEGAL-146
results in a different opionion from the members, then we
will end up having to do something more drastic anyway.
2012-08-31 10:50:46 -04:00