Cloudstack Source code
Go to file
Sheng Yang 1ca493e4fa bug 14042: Don't set dhcp:router option on DHCP server for non-default network on CentOS/RHEL
The routing table with two nics may be messed up, due to we sent same
router(gateway) information from different DHCP server, in order to specify
default gateway. E.g.

Network A: 192.168.1.0/24, gw 192.168.1.1
Network B: 192.168.2.0/24, gw 192.168.2.1

User VM: Nic 1 connect to network A, get ip 192.168.1.10; nic 2 connect to
network B, get ip 192.168.2.10.

Set network A as the default network of user VM.

Currently we would send this information to user VM through DHCP offer:
In network A: dhcp-option:router 192.168.1.1
In network B: dhcp-option:router 192.168.1.1

So both NIC in the guest VM would receive 192.168.1.1 as router(gateway).

But, in CentOS 5.6, dhclient-scripts try to tell if the gateway is reachable
for current subnet.

So when we try to enable nic 2(eth1) of user VM, dhclient would receive:
IP: 192.168.2.10
Mask: 255.255.255.0
Router: 192.168.1.1

Then it would found that the specified gateway(router) is not within its own
subnet(192.168.2.0/24). But since we send out this ip(192.168.1.1) as the
gateway for it, dhclient thought that it should got someway to access the
network through this IP. So it would execute:

ip route add 192.168.1.1 dev eth1
ip route replace default via 192.168.1.1 dev eth1

But it can never reach 192.168.1.1(which is in the eth0's subnet and the
gateway of eth0) by go through eth1 interface. So it is messed up.

We've tested Windows 2008 R2, CentOS 5.3, CentOS 5.6 and Ubuntu 10.04. Windows
and Ubuntu are fine with above policy.

To solve this, we send different dhcp:router option according to the guest OS
type now.

We may need expand this list later, but for now we only know that CentOS and
RHEL would behavior in this way.

status 14042: resolved fixed
2012-03-21 10:38:18 -07:00
agent bug 14168: add re-try to mgt server, in case mgt server is down. status 14168: resolved fixed 2012-03-14 10:50:48 -07:00
agent-simulator integrity checker loaded as parted of extended components.xml 2012-02-20 18:22:17 +05:30
api bug 14388: don't return console proxy / ssvm service offerings 2012-03-19 14:50:09 -07:00
build change ant build version to 3.0.1 2012-03-19 13:34:34 -07:00
client cloudstack 3.0 UI - more labels translated. 2012-03-21 09:50:13 -07:00
cloud-cli add apikey/securitykey in cloud-cli 2011-08-19 11:23:30 -07:00
console bug 11319: console proxy and console viewer keyboard framework refactoring 2011-12-14 15:46:51 -08:00
console-proxy fix copying template 2012-03-15 14:43:03 -07:00
console-viewer fixed eclipse path 2011-02-23 14:39:25 -08:00
core bug 14409: VMware, create network_stats iptables rule while creating router 2012-03-21 17:25:38 +05:30
daemonize remove wscript_build from daemonize/ 2010-12-04 23:03:24 -08:00
debian Bug 13990 - Ubuntu packages install the wrong files 2012-02-24 10:35:09 -08:00
deps bug 13609: libvirt-java doesn't handle error 72, rebuild the jar 2012-02-15 17:49:28 -08:00
docs Update documentation source files. 2012-03-15 23:46:11 -07:00
ovm Bug 14149 - OVM Typo and wrong mountpoint 2012-03-19 17:38:35 -07:00
patches bug 14042: Don't set dhcp:router option on DHCP server for non-default network on CentOS/RHEL 2012-03-21 10:38:18 -07:00
python Bug 14379 - port 8096 should be closed and disabled by default on CS 2012-03-19 16:35:53 -07:00
scripts Change KVM's delimiter from "," to "%" 2012-03-13 15:59:09 -07:00
server bug 14042: Don't set dhcp:router option on DHCP server for non-default network on CentOS/RHEL 2012-03-21 10:38:18 -07:00
setup bug 14290: in 3.0 upgrade insert CentOS 5.6 template with ID 5 2012-03-21 17:25:38 +05:30
test Code format fixes 2012-02-10 15:10:21 -08:00
tools Demo files for the confluence tutorial on testing with python 2012-03-21 13:45:44 +05:30
ui bug 14351: Show VM name in PF, instead of UUID 2012-03-21 10:26:48 -07:00
usage Changed isElastic to isSystem for the publicIpAddress assigned during the vm deployment in EIP enabled network 2012-02-21 15:39:49 -08:00
utils Bug 13127: API error text refer to database ids instead of uuids 2012-03-15 16:27:52 -07:00
vmware-base bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony 2012-02-17 15:02:32 -08:00
.gitignore Update gitignore 2011-12-23 12:57:34 -05:00
INSTALL.txt Update INSTALL.txt 2011-12-19 13:38:56 -08:00
README.html Update README to point to new information resources. 2011-06-14 18:53:45 -07:00
README.md adding a markdown readme for github 2011-12-01 13:02:38 -05:00
build.xml updating copyright licenses, including build-usage.xml 2011-08-31 16:22:51 -04:00
cloud.spec bug 14358: removing cloud-daemonize, cloud-console-proxy 2012-03-17 14:24:43 -04:00
configure-info.in Source code committed 2010-08-11 09:13:29 -07:00
version-info.in more file changes 2010-09-09 13:27:20 -07:00
waf Source code committed 2010-08-11 09:13:29 -07:00
waf.bat Source code committed 2010-08-11 09:13:29 -07:00
wscript make build number attach to release number 0 in rpm package name. 2011-11-28 14:46:35 -08:00
wscript_build Bug 12932 - 3.0 beta 2 packages for EL 5.x have missing dependencies 2012-01-06 14:40:25 -08:00
wscript_configure don't check pthread before building, it is making no sense 2011-12-19 10:59:30 -08:00

README.md

CloudStack

CloudStack is a massively scalable free/libre open source Infrastructure as a Service cloud platform.

Visit us at cloudstack.org or join #cloudstack on irc.freenode.net

Binary Downloads

Downloads are available from: http://cloudstack.org/download.html

Supported Hypervisors

  • XenServer
  • KVM
  • VMware ESX/ESXi (via vCenter)
  • Oracle VM
  • XCP

Mailing lists

Announcement Mailing List Development Mailing List Users Mailing list Commits mailing list