[ https://issues.apache.org/jira/browse/CLOUDSTACK-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jayapal Reddy resolved CLOUDSTACK-3832. --------------------------------------- Resolution: Not A Problem > NTier: User is being allowed to add two Private Gateways to a VPC from the > same network with different VLANs > ------------------------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-3832 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3832 > 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: Chandan Purushothama > Assignee: Jayapal Reddy > Priority: Critical > Fix For: 4.2.0 > > > When I tried to create multiple Private Gateways to a VPC, I mistakenly gave > the IPs from the the same network with different VLANs. Instead of returning > an error, the IPs got assigned to the VPC VR. > root@r-8-JULY24th:~# ifconfig eth2 > eth2 Link encap:Ethernet HWaddr 06:3e:78:00:00:22 > inet addr:10.223.60.31 Bcast:10.223.60.63 Mask:255.255.255.192 > inet6 addr: fe80::43e:78ff:fe00:22/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:309 errors:0 dropped:0 overruns:0 frame:0 > TX packets:87 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:19440 (18.9 KiB) TX bytes:3894 (3.8 KiB) > root@r-8-JULY24th:~# ifconfig eth4 > eth4 Link encap:Ethernet HWaddr 06:62:ac:00:00:24 > inet addr:10.223.60.2 Bcast:10.223.60.63 Mask:255.255.255.192 > inet6 addr: fe80::462:acff:fe00:24/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:21 errors:0 dropped:0 overruns:0 frame:0 > TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:1458 (1.4 KiB) TX bytes:402 (402.0 B) > root@r-8-JULY24th:~# > mysql> select * from vpc_gateways where vpc_id=1; > +----+--------------------------------------+--------------+-----------------+-------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+----------------+ > | id | uuid | ip4_address | netmask > | gateway | vlan_tag | type | network_id | vpc_id | zone_id | created > | account_id | domain_id | state | removed | source_nat | > network_acl_id | > +----+--------------------------------------+--------------+-----------------+-------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+----------------+ > | 1 | 93fe911c-55d3-4258-9bff-230a5da75c2f | 10.223.60.31 | 255.255.255.192 > | 10.223.60.1 | 600 | Private | 207 | 1 | 1 | > 2013-07-25 21:36:17 | 3 | 1 | Ready | NULL | 0 | > 3 | > | 3 | aa67e396-77f0-41b4-b442-9dc796f5931e | 10.223.60.2 | 255.255.255.192 > | 10.223.60.1 | 601 | Private | 210 | 1 | 1 | > 2013-07-25 23:40:39 | 3 | 1 | Ready | NULL | 0 | > 1 | > +----+--------------------------------------+--------------+-----------------+-------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+----------------+ > 2 rows in set (0.00 sec) -- 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