Chandan Purushothama created CLOUDSTACK-116: -----------------------------------------------
Summary: Guest Network created in a Sub Domain which doesn't have a network domain suffix , is assigned the network domain suffix of the zone instead of that of the Parent domain of the Sub domain Key: CLOUDSTACK-116 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-116 Project: CloudStack Issue Type: Bug Components: Management Server Affects Versions: pre-4.0.0 Reporter: Chandan Purushothama Fix For: 4.0.0 ================ Steps to Reproduce: ================ 1. Create an Advanced Zone Setup (any configuration) . Provide network domain suffix information to the deployed Zone. 2. Create a Domain by the name CHILD under ROOT domain. Provide network domain suffix information to the CHILD domain. 3. Create a Domain by the name GRANDCHILD under CHILD domain. Do not provide any network domain suffix information to the GRANDCHILD domain. 4. Verify that the Domain Tree Structure is ROOT -> CHILD -> GRANDCHILD 5. Create an Account A in the CHILD domain. Do not provide any network domain suffix information to the Account A. 6. Create an Account B in the GRANDCHILD domain. Do not provide any network domain suffix information to the Account B. 7. Create an Isolated Guest Network using DefaultNetworkOfferingwithSourceNATService in Account A. 8. Create an Isolated Guest Network using DefaultNetworkOfferingwithSourceNATService in Account B. 9. Observe the network domain suffix information of the Isolated Guest Networks created in Step 7 and 8. =========== Observations: =========== mysql> select id,name,traffic_type,network_offering_id,state,domain_id,account_id,network_domain from networks where state="Implemented"; +-----+----------------------+--------------+---------------------+-------------+-----------+------------+---------------------+ | id | name | traffic_type | network_offering_id | state | domain_id | account_id | network_domain | +-----+----------------------+--------------+---------------------+-------------+-----------+------------+---------------------+ | 205 | TestNetwork-admin | Guest | 8 | Implemented | 1 | 2 | asf.lab.vmops.com | | 206 | TestNetwork-atoms | Guest | 8 | Implemented | 1 | 3 | atoms.lab.vmops.com | | 207 | TestNetwork-protons | Guest | 8 | Implemented | 2 | 4 | child.lab.vmops.com | | 208 | TestNetwork-neutrons | Guest | 8 | Implemented | 3 | 5 | asf.lab.vmops.com | +-----+----------------------+--------------+---------------------+-------------+-----------+------------+---------------------+ 4 rows in set (0.00 sec) mysql> select * from domain; +----+--------+------------+--------------------------------------+-------+--------------------+-------+-------------+----------------+---------+--------+---------------------+--------+ | id | parent | name | uuid | owner | path | level | child_count | next_child_seq | removed | state | network_domain | type | +----+--------+------------+--------------------------------------+-------+--------------------+-------+-------------+----------------+---------+--------+---------------------+--------+ | 1 | NULL | ROOT | 7e3aea93-fb11-45a6-b3a1-dc2f9aa914dd | 2 | / | 0 | 1 | 2 | NULL | Active | NULL | Normal | | 2 | 1 | CHILD | e2cc8e71-0277-4a02-9685-63424afb67ae | 2 | /CHILD/ | 1 | 1 | 2 | NULL | Active | child.lab.vmops.com | Normal | | 3 | 2 | GRANDCHILD | 87b11254-3071-48c8-bfc4-bf2604ffecbf | 2 | /CHILD/GRANDCHILD/ | 2 | 0 | 1 | NULL | Active | NULL | Normal | +----+--------+------------+--------------------------------------+-------+--------------------+-------+-------------+----------------+---------+--------+---------------------+--------+ 3 rows in set (0.00 sec) mysql> select id,name,domain from data_center; +----+----------+-------------------+ | id | name | domain | +----+----------+-------------------+ | 1 | ZONE-ASF | asf.lab.vmops.com | +----+----------+-------------------+ 1 row 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