Alena Prokharchyk created CLOUDSTACK-3119:
---------------------------------------------
Summary: Shared network removal doesn't cleanup corresponding IP
ranges
Key: CLOUDSTACK-3119
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3119
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Reporter: Alena Prokharchyk
Priority: Critical
Fix For: 4.2.0
Steps to reproduce:
1) Create Shared network from the UI; define ip4 range.
2) Delete the network from the UI.
Bug: the network was marked as removed, but ip range remained intact:
mysql> select id, name, removed from networks where id=208;
+-----+----------------+---------------------+
| id | name | removed |
+-----+----------------+---------------------+
| 208 | shared account | 2013-06-21 16:37:48 |
+-----+----------------+---------------------+
1 row in set (0.00 sec)
mysql> select *From vlan where network_id=208;
+----+--------------------------------------+---------+--------------+--------------+-------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
| id | uuid | vlan_id | vlan_gateway |
vlan_netmask | description | vlan_type | data_center_id |
network_id | physical_network_id | ip6_gateway | ip6_cidr | ip6_range |
+----+--------------------------------------+---------+--------------+--------------+-------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
| 2 | 9dbd8fd9-8899-4d66-af8e-51c5f0b35905 | 22 | 172.22.0.1 |
255.255.0.0 | 172.22.0.10-172.22.0.19 | DirectAttached | 1 |
208 | 200 | NULL | NULL | NULL |
+----+--------------------------------------+---------+--------------+--------------+-------------------------+----------------+----------------+------------+---------------------+-------------+----------+-----------+
1 row in set (0.00 sec)
Next time someone wants to create the network with the same range, the
creation will fail due to ip duplicates
--
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