venkata swamybabu budumuru created CLOUDSTACK-4153:
------------------------------------------------------
Summary: [Dedicated VLANS] [Multiple PhysicalNetworks] This
feature is not working as expected in case of multiple physical networks.
Key: CLOUDSTACK-4153
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4153
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Network Controller
Affects Versions: 4.2.0
Environment: commit id # 7fced6460f13468369550c968670c7d0b9837949
Reporter: venkata swamybabu budumuru
Priority: Critical
Fix For: 4.2.0
Steps to reproduce;
1. Have latest CloudStack setup with at least 1 advanced zone with 2 KVM host
cluster.
2. create at least 2 physical networks and define same guest VLAN ranges for
both the physical networks.
mysql> select * from physical_network;
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
| id | uuid | name |
data_center_id | vnet | speed | domain_id | broadcast_domain_range | state
| created | removed |
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
| 200 | 7a4e5b94-f682-4093-a8a6-5a0889ceb14e | Sandbox-pnet |
1 | 906-913 | NULL | NULL | ZONE | Enabled | 2013-08-07
05:31:42 | NULL |
| 202 | 677601a3-c3af-49d7-bf47-e8a7717a20df | PhysicalNetwork2 |
1 | 906-913 | NULL | NULL | ZONE | Enabled | 2013-08-07
12:13:06 | NULL |
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
3. Created dedicated VLAN range in physical network (202) for account
dom1/dom1Acc1
mysql> select * from physical_network;
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
| id | uuid | name |
data_center_id | vnet | speed | domain_id | broadcast_domain_range | state
| created | removed |
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
| 200 | 7a4e5b94-f682-4093-a8a6-5a0889ceb14e | Sandbox-pnet |
1 | 906-913 | NULL | NULL | ZONE | Enabled | 2013-08-07
05:31:42 | NULL |
| 201 | 36f3b773-5931-4ab4-ba0e-15f3df2201e3 | test-network |
2 | NULL | NULL | NULL | POD | Enabled | 2013-08-07
05:56:14 | NULL |
| 202 | 677601a3-c3af-49d7-bf47-e8a7717a20df | PhysicalNetwork2 |
1 | 906-913 | NULL | NULL | ZONE | Enabled | 2013-08-07
12:13:06 | NULL |
+-----+--------------------------------------+------------------+----------------+---------+-------+-----------+------------------------+---------+---------------------+---------+
4. As a different account dom2/dom2Acc1, try to deploy a VM in physical network
(202).
Observations:
(i) As per the above steps executed, dom2Acc2 in physical network - 202 doesn't
have any vlans for dom2Acc1 but, it still took one of the VLAN that was
dedicated for dom1ACC1
mysql> select * from op_dc_vnet_alloc;
+----+------+---------------------+----------------+--------------------------------------+------------+---------------------+---------------------+
| id | vnet | physical_network_id | data_center_id | reservation_id
| account_id | taken | account_vnet_map_id |
+----+------+---------------------+----------------+--------------------------------------+------------+---------------------+---------------------+
| 1 | 908 | 200 | 1 | NULL
| NULL | NULL | 1 |
| 2 | 907 | 200 | 1 |
9e1dcb67-86e1-4978-894e-27fd664f20c3 | 3 | 2013-08-07 14:03:52 |
1 |
| 3 | 909 | 200 | 1 | NULL
| NULL | NULL | 1 |
| 4 | 906 | 200 | 1 | NULL
| NULL | NULL | 1 |
| 5 | 910 | 200 | 1 |
2b7f954f-4ab8-45b4-9810-dd113c01ef64 | 3 | 2013-08-07 12:59:53 |
1 |
| 6 | 911 | 200 | 1 |
972bc9b5-5cee-4614-9bc5-402ee8b64e4d | 3 | 2013-08-07 13:35:04 |
1 |
| 7 | 912 | 200 | 1 |
5db7a181-24bb-4a7b-91dd-aacf986fff53 | 3 | 2013-08-07 11:20:48 |
1 |
| 8 | 913 | 200 | 1 | NULL
| NULL | NULL | 1 |
| 9 | 908 | 202 | 1 |
e9cf9d2b-86f2-4e66-813d-c31166a3d7c8 | 3 | 2013-08-07 14:04:27 |
NULL |
| 10 | 907 | 202 | 1 | NULL
| NULL | NULL | NULL |
| 11 | 909 | 202 | 1 |
259dc5c7-e461-4f93-9144-0477aace39a7 | 5 | 2013-08-07 13:49:25 |
NULL |
| 12 | 906 | 202 | 1 | NULL
| NULL | NULL | NULL |
| 13 | 910 | 202 | 1 | NULL
| NULL | NULL | NULL |
| 14 | 911 | 202 | 1 |
4f66aed8-3afc-4a5b-89c7-f1f94b20108a | 3 | 2013-08-07 13:46:00 |
NULL |
| 15 | 912 | 202 | 1 | NULL
| NULL | NULL | NULL |
| 16 | 913 | 202 | 1 | NULL
| NULL | NULL | NULL |
+----+------+---------------------+----------------+--------------------------------------+------------+---------------------+---------------------+
mysql> select * from account;
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
| id | account_name | uuid | type | domain_id |
state | removed | cleanup_needed | network_domain | default_zone_id | default
|
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
| 1 | system | fdfa7f88-ff20-11e2-897e-069f2c0000aa | 1 | 1 |
enabled | NULL | 0 | NULL | NULL | 1
|
| 2 | admin | fdfdb14e-ff20-11e2-897e-069f2c0000aa | 1 | 1 |
enabled | NULL | 0 | NULL | NULL | 1
|
| 3 | dom1Acc1 | d6789e94-3a66-4680-ba69-91d72008e0d5 | 0 | 2 |
enabled | NULL | 0 | NULL | NULL | 0
|
| 4 | dom1Acc2 | 0074fdb9-4b20-48f1-93b6-109818329f96 | 0 | 1 |
enabled | NULL | 0 | NULL | NULL | 0
|
| 5 | dom2Acc1 | e5aa4cd5-9852-4e84-bf31-7117530455b0 | 0 | 3 |
enabled | NULL | 0 | NULL | NULL | 0
|
+----+--------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
Attaching all the required logs along with db dump to the bug.
--
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