Chandan Purushothama created CLOUDSTACK-133:
-----------------------------------------------
Summary: Multiple DHCP Servers are being created on the shared
network on using multiple Network Ranges from the same shared network.
Key: CLOUDSTACK-133
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-133
Project: CloudStack
Issue Type: Bug
Components: Management Server
Affects Versions: pre-4.0.0
Reporter: Chandan Purushothama
Fix For: pre-4.0.0
================
Steps to Reproduce:
================
1. Create Two Shared Networks such that the networks' IP ranges are from the
same VLAN. One shared network's scope is "All" while the second shared
network's scope is specific for Domain '/ROOT/B'
mysql> select * from vlan where vlan_id=1371;
+----+--------------------------------------+---------+---------------+-----------------+-----------------------------+----------------+----------------+------------+---------------------+
| id | uuid | vlan_id | vlan_gateway |
vlan_netmask | description | vlan_type | data_center_id
| network_id | physical_network_id |
+----+--------------------------------------+---------+---------------+-----------------+-----------------------------+----------------+----------------+------------+---------------------+
| 2 | e08b604f-143f-4989-aafe-1d416b595d37 | 1371 | 10.223.137.65 |
255.255.255.192 | 10.223.137.66-10.223.137.70 | DirectAttached | 1
| 211 | 200 |
| 4 | 5d4337c4-6922-429d-abc0-b1116fb72a6f | 1371 | 10.223.137.65 |
255.255.255.192 | 10.223.137.71-10.223.137.75 | DirectAttached | 1
| 216 | 200 |
+----+--------------------------------------+---------+---------------+-----------------+-----------------------------+----------------+----------------+------------+---------------------+
2 rows in set (0.00 sec)
mysql> select * from networks where id in (211,216) \G
*************************** 1. row ***************************
id: 211
name: SharedNetwork-1371-All
uuid: fc74c161-8065-4636-9bb4-66815b53eb91
display_text: SharedNetwork-1371-All
traffic_type: Guest
broadcast_domain_type: Vlan
broadcast_uri: vlan://1371
gateway: 10.223.137.65
cidr: 10.223.137.64/26
mode: Dhcp
network_offering_id: 7
physical_network_id: 200
data_center_id: 1
guru_name: DirectNetworkGuru
state: Setup
related: 211
domain_id: 1
account_id: 1
dns1: NULL
dns2: NULL
guru_data: NULL
set_fields: 0
acl_type: Domain
network_domain: shdnetall.lab.vmops.com
reservation_id: NULL
guest_type: Shared
restart_required: 0
created: 2012-09-17 18:32:45
removed: NULL
specify_ip_ranges: 1
vpc_id: NULL
*************************** 2. row ***************************
id: 216
name: SharedNetwork-1371-DBonly
uuid: b6554f75-4cde-45e1-83ee-5ef1ecd6799b
display_text: SharedNetwork-1371-DBonly
traffic_type: Guest
broadcast_domain_type: Vlan
broadcast_uri: vlan://1371
gateway: 10.223.137.65
cidr: 10.223.137.64/26
mode: Dhcp
network_offering_id: 7
physical_network_id: 200
data_center_id: 1
guru_name: DirectNetworkGuru
state: Setup
related: 216
domain_id: 1
account_id: 1
dns1: NULL
dns2: NULL
guru_data: NULL
set_fields: 0
acl_type: Domain
network_domain: shared-db.lab.vmops.com
reservation_id: NULL
guest_type: Shared
restart_required: 0
created: 2012-09-18 00:09:11
removed: NULL
specify_ip_ranges: 1
vpc_id: NULL
2 rows in set (0.00 sec)
mysql> select * from domain_network_ref where network_id in (211,216);
+----+-----------+------------+------------------+
| id | domain_id | network_id | subdomain_access |
+----+-----------+------------+------------------+
| 1 | 1 | 211 | 1 |
| 3 | 6 | 216 | 1 |
+----+-----------+------------+------------------+
2. Login into an Account in /ROOT/B domain and deploy a VM in the shared
network that has "All" scope access. Observe the deployment of the DHCP Server
in the shared network.
3. Deploy another VM in the two shared networks. Since there is a DHCP Server
already present the shared network with "All" scope access, observe the
deployment of the DHCP Server in the shared network that has domain "/ROOT/B"
scope access only.
============
Observations:
============
mysql> select id,name,state,type from vm_instance where id in (19,26);
+----+----------+---------+--------------+
| id | name | state | type |
+----+----------+---------+--------------+
| 19 | r-19-ASF | Running | DomainRouter |
| 26 | r-26-ASF | Running | DomainRouter |
+----+----------+---------+--------------+
2 rows in set (0.00 sec)
mysql> select
id,instance_id,ip4_address,broadcast_uri,network_id,default_nic,vm_type,created,removed
from nics where instance_id in (19,26);
+----+-------------+---------------+---------------+------------+-------------+--------------+---------------------+---------+
| id | instance_id | ip4_address | broadcast_uri | network_id | default_nic |
vm_type | created | removed |
+----+-------------+---------------+---------------+------------+-------------+--------------+---------------------+---------+
| 41 | 19 | 10.223.137.66 | vlan://1371 | 211 | 1 |
DomainRouter | 2012-09-17 21:15:59 | NULL |
| 42 | 19 | 169.254.0.25 | NULL | 202 | 0 |
DomainRouter | 2012-09-17 21:15:59 | NULL |
| 58 | 26 | 10.223.137.71 | vlan://1371 | 216 | 1 |
DomainRouter | 2012-09-18 00:32:26 | NULL |
| 59 | 26 | 169.254.3.106 | NULL | 202 | 0 |
DomainRouter | 2012-09-18 00:32:26 | NULL |
+----+-------------+---------------+---------------+------------+-------------+--------------+---------------------+---------+
4 rows in set (0.00 sec)
=======
Git Info:
=======
Git Revision: 54f9af1695bc359b02e9fc906b3b335cc0bfec41
Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira