127 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Sheng Yang
b6eff028b8 Don't bring up eth2 for booting process of redundant router 2012-05-01 16:21:24 -07:00
Sheng Yang
1a29422c08 CS-14421: Fix default interfaces file
I can't see why we set eth0 to dhcp by default. It would result in eth0 want to
get a DHCP address from outside. We should always assign ip through
cloud-early-config for it.

But one point is, the priority of cloud-early-config and networking script is
the same.  So even networking got some ip from outside, cloud-early-config
should able to override it(if cloud-early-config runs after networking) or
networking script won't get dhcp (if cloud-early-config runs before networking),
so I am not quite understand why router would get DHCP address in fact. Maybe
there are other issues.
2012-04-27 14:35:56 -07:00
frank
c1620cbfd0 Bug 14347 - Security: Extra files on Secondary Storage VM's Apache root
status 14347: resolved fixed
2012-03-16 17:06:34 -07:00
Sheng Yang
8071f51678 bug 14215: Fix SSVM on Xen kernel panic due to "too many env var"
Just add different delimitor for VM and extract them from cmdline later.

status 14215: resolved fixed
2012-03-16 14:47:42 -07:00
Sheng Yang
280fb3e72b bug 13821: Shutdown interface with ip 0.0.0.0
status 13821: resolved fixed

Reviewed-by: Frank
2012-02-16 14:42:46 -08:00
frank
890bfffe2f Bug 6849 - Randomize systemvm passwords (edit)
status 6849: resolved fixed
2012-02-03 17:28:58 -08:00
Edison Su
6e194859de bug 12132: hide apache info in SSVM
status 12132: resolved fixed
2012-01-16 11:38:51 -08:00
Edison Su
6df2cd07d2 bug 12130: add "Options -Indexes" in the root directory
status 12130: resolved fixed
2012-01-11 18:18:16 -08:00
frank
f72940e041 Bug 12777 - Add storage network configuration into CloudStack
most finish
2012-01-06 11:06:18 -08:00
Sheng Yang
14d6c85176 bug 12727: Add arping to update the vSwitch cache
We need to broadcast all our public IP address's ARP, not only the gateway one.

status 12727: resolved fixed
2011-12-22 17:24:57 -08:00
Naredula Janardhana Reddy
4ae44b4f5f bug 11191: rp_filter changes: correcting display error 2011-11-07 22:29:37 +05:30
Naredula Janardhana Reddy
dc804d4ba4 bug 11191: rp_filter changes.
The following are summary of changes:
   1) when network.disable.rpfilter is set to true, then rp_filter will be disadbled(set to 0) on all the public interfaces and also default setting of the system.
   2) when network.disable.rpfilter is set to false, then rp_filter will be enabled(set to 1) on all the public interfaces and also default setting of the system.
   3) here public public interface means , eth2 ... ethN. default setting means (/proc/sys/net/ipv4/conf/default/rp_filter).
   4) Default setting change will have impact on non-public interface. Due to  these, rp_filter is always enabled on Non-public interfaces(eth0,eth1 and lo).
   5) when  a new public interface is created, new interface will take rp_filter value from the default setting.
2011-11-07 22:28:25 +05:30
Naredula Janardhana Reddy
aab59d0bab bug 11191: rp_filter changes.
The following are summary of changes:
1) when network.disable.rpfilter is set to true, then rp_filter will be disadbled(set to 0) on all the public interfaces and also default setting of the system.
2) when network.disable.rpfilter is set to false, then rp_filter will be enabled(set to 1) on all the public interfaces and also default setting of the system.
2) here public public interface means , eth2 ... ethN. default setting means (/proc/sys/net/ipv4/conf/default/rp_filter).
3) Default setting change will have impact on non-public interface.if there is no specific setting for other interfaces in /etc/sysctl.conf or otherexplict setting , they will follow this default settings. currently non-public interface like eth0 ,eth1 does not have any specific setting in sysctl.conf, due to this there rp_filters will be changed when ever network.disable.rpfilter setting is changed.
4) default setting is required to changes beacuse when a new public interface is created, new interface will take rp_filter value from the default setting.
2011-11-07 22:27:42 +05:30
Edison Su
121850bcb5 bug 11598: secstorage.vm.mtu.size, by default it's 1500. After change this configuration, need to restart mgt server, and restart secondary storage to take effect.
status 11598: resolved fixed
2011-10-26 14:48:56 -07:00
Kelven Yang
dce4e74b58 bug 11585: using pre-allocated NIC approach to support additional public interfaces for VMware 2011-10-11 15:40:31 -07:00
frank
ae2c5d9a6e Bug 11539 - SSVM stop script doesn't work
status 11539: resolved fixed
reviewed-by: edison

Conflicts:

	console-proxy/scripts/run.sh
2011-09-22 17:52:42 -07:00
Sheng Yang
fe838c5528 bug 11233: Update switch's cache using ping
We would ping the gateway after transit to MASTER, this should speed up the
update of switch's cache.
2011-09-14 16:26:54 -07:00
Sheng Yang
532de07176 bug 11307: Copy missing scipt to the proper location 2011-09-14 16:26:22 -07:00
Sheng Yang
319c529879 Remove keepalived start up delay 2011-09-14 16:26:15 -07:00
Sheng Yang
ba2fc97865 bug 11351: Add monitor process for keepalived
Then when the process dead, we can know it and prevent two MASTER case happened.
2011-09-14 16:25:17 -07:00
Sheng Yang
014e19546c bug 11351: move redundant router scripts to ramdisk
Then it can exempt from storage failure.
2011-09-14 16:25:10 -07:00
Sheng Yang
d3b0f04877 bug 11351: Add checkrouter.sh.templ
Also modify ipassoc.sh to use checkrouter.sh
2011-09-14 16:25:03 -07:00
Sheng Yang
b007e24e59 bug 11351: Add parameters for binary file/log file 2011-09-14 16:24:50 -07:00
Sheng Yang
4bbfa2513e bug 11307: Add PRIORITY bump up script for redundant virtual routers 2011-09-14 16:18:55 -07:00
Abhinandan Prateek
5a19056aa2 bug 10824: clearing up older entries in resolv.conf and dnsmasq-resolv.conf before adding so that duplicate entries do not end up in these files.
status 10842: resolved fixed
2011-09-07 05:11:33 +05:30
Naredula Janardhana Reddy
470ffcb652 bug 11191:
Added global config to enable/disable rp_filter for domR.
   previous commit: d966906374d4a0cb8fa57326a1f7625c871f64fd

   Test Case-1 :
      1) Set network.disable.rpfilter  global config to true
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 0 , and rest other interfaces should have value of 1
   Test Case-2 :
      1) set network.disable.rpfilter global config to false
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 1 , and rest other interfaces should also have value of 1
2011-08-24 13:32:07 +05:30