Chandan Purushothama created CLOUDSTACK-2368:
------------------------------------------------
Summary: NTier: Restart VPC doesnt program the VPC Virtual Router
with the Private Gateway NIC
Key: CLOUDSTACK-2368
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2368
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
Priority: Critical
Fix For: 4.2.0
===============
Steps to Reproduce:
===============
1. Create a VPC
2. Create a Private Gateway on the VPC VR. Observe the NICs programmed on the
VPC VR.
3. Restart the VPC and observe that the private gateway is not programmed on
the new VPC VR.
===========
Observations:
===========
mysql> select id,public_ip_address,role,vpc_id from domain_router where
vpc_id=1;
+----+-------------------+----------------+--------+
| id | public_ip_address | role | vpc_id |
+----+-------------------+----------------+--------+
| 3 | 10.223.136.132 | VIRTUAL_ROUTER | 1 |
| 4 | 10.223.136.132 | VIRTUAL_ROUTER | 1 |
+----+-------------------+----------------+--------+
2 rows in set (0.00 sec)
mysql> select id,name,type,private_ip_address,created,removed from vm_instance
where id in (3,4);
+----+----------------+--------------+--------------------+---------------------+---------------------+
| id | name | type | private_ip_address | created
| removed |
+----+----------------+--------------+--------------------+---------------------+---------------------+
| 3 | r-3-NATONPRVGW | DomainRouter | 169.254.0.196 | 2013-05-07 18:18:48
| 2013-05-07 23:15:47 |
| 4 | r-4-NATONPRVGW | DomainRouter | 169.254.0.2 | 2013-05-07 23:15:47
| NULL |
+----+----------------+--------------+--------------------+---------------------+---------------------+
2 rows in set (0.00 sec)
mysql> select id,instance_id,ip4_address,state,vm_type,created,removed from
nics where instance_id in (3,4);
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
| id | instance_id | ip4_address | state | vm_type | created
| removed |
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
| 8 | 3 | NULL | Deallocating | DomainRouter | 2013-05-07
18:18:48 | 2013-05-07 23:15:44 |
| 9 | 3 | 10.223.136.132 | Deallocating | DomainRouter | 2013-05-07
18:18:48 | 2013-05-07 23:15:44 |
| 10 | 3 | 10.223.60.30 | Deallocating | DomainRouter | 2013-05-07
22:00:34 | 2013-05-07 23:01:41 |
| 11 | 3 | 10.223.60.30 | Deallocating | DomainRouter | 2013-05-07
23:02:32 | 2013-05-07 23:02:48 |
| 12 | 3 | 10.223.60.30 | Deallocating | DomainRouter | 2013-05-07
23:03:38 | 2013-05-07 23:06:09 |
| 13 | 3 | 10.223.60.30 | Deallocating | DomainRouter | 2013-05-07
23:07:15 | 2013-05-07 23:15:44 |
| 14 | 4 | 169.254.0.2 | Reserved | DomainRouter | 2013-05-07
23:15:47 | NULL |
| 15 | 4 | 10.223.136.132 | Reserved | DomainRouter | 2013-05-07
23:15:47 | NULL |
+----+-------------+----------------+--------------+--------------+---------------------+---------------------+
8 rows in set (0.00 sec)
mysql> select
id,ip4_address,netmask,gateway,vlan_tag,type,vpc_id,created,state,removed,source_nat
from vpc_gateways;
+----+--------------+-----------------+-------------+----------+---------+--------+---------------------+----------+---------------------+------------+
| id | ip4_address | netmask | gateway | vlan_tag | type |
vpc_id | created | state | removed | source_nat |
+----+--------------+-----------------+-------------+----------+---------+--------+---------------------+----------+---------------------+------------+
| 1 | 10.223.60.30 | 255.255.255.192 | 10.223.60.1 | 600 | Private |
1 | 2013-05-07 22:00:33 | Deleting | 2013-05-07 23:01:42 | 0 |
| 2 | 10.223.60.30 | 255.255.255.192 | 10.223.60.1 | 600 | Private |
1 | 2013-05-07 23:02:32 | Deleting | 2013-05-07 23:02:48 | 0 |
| 3 | 10.223.60.30 | 255.255.255.192 | 10.223.60.1 | 600 | Private |
1 | 2013-05-07 23:03:38 | Deleting | 2013-05-07 23:06:09 | 1 |
| 4 | 10.223.60.30 | 255.255.255.192 | 10.223.60.1 | 600 | Private |
1 | 2013-05-07 23:07:15 | Ready | NULL | 1 |
+----+--------------+-----------------+-------------+----------+---------+--------+---------------------+----------+---------------------+------------+
4 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