[
https://issues.apache.org/jira/browse/CLOUDSTACK-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464081#comment-13464081
]
Chandan Purushothama commented on CLOUDSTACK-108:
-------------------------------------------------
VM deployed on two Isolated Networks of the Account that have different Guest
CIDRs.
mysql> select * from nics where instance_id=7 \G
*************************** 1. row ***************************
id: 16
uuid: 0c3b264c-5e61-49ce-822e-cd83f9ed00b1
instance_id: 7
mac_address: 02:00:03:7a:00:01
ip4_address: 10.2.1.186
netmask: 255.255.255.0
gateway: 10.2.1.1
ip_type: Ip4
broadcast_uri: vlan://2502
network_id: 206
mode: Dhcp
state: Reserved
strategy: Start
reserver_name: ExternalGuestNetworkGuru
reservation_id: 303a54eb-1c15-44ce-9316-e64b2d24b4cd
device_id: 0
update_time: 2012-09-26 12:05:41
isolation_uri: vlan://2502
ip6_address: NULL
default_nic: 1
vm_type: User
created: 2012-09-26 19:04:45
removed: NULL
*************************** 2. row ***************************
id: 17
uuid: a43a55dd-7d86-4d97-8ec1-14d1d20598a3
instance_id: 7
mac_address: 02:00:28:4f:00:03
ip4_address: 10.1.1.4
netmask: 255.255.255.0
gateway: 10.1.1.1
ip_type: Ip4
broadcast_uri: vlan://2511
network_id: 205
mode: Dhcp
state: Reserved
strategy: Start
reserver_name: ExternalGuestNetworkGuru
reservation_id: 303a54eb-1c15-44ce-9316-e64b2d24b4cd
device_id: 1
update_time: 2012-09-26 12:05:54
isolation_uri: vlan://2511
ip6_address: NULL
default_nic: 0
vm_type: User
created: 2012-09-26 19:04:45
removed: NULL
2 rows in set (0.00 sec)
mysql> select * from networks where id in (205,206)\G
*************************** 1. row ***************************
id: 205
name: TestNetwork-guest2-atoms
uuid: f3db526b-7a50-4696-941f-e016dd181496
display_text: TestNetwork-guest2-atoms
traffic_type: Guest
broadcast_domain_type: Vlan
broadcast_uri: vlan://2511
gateway: 10.1.1.1
cidr: 10.1.1.0/24
mode: Dhcp
network_offering_id: 14
physical_network_id: 201
data_center_id: 1
guru_name: ExternalGuestNetworkGuru
state: Implemented
related: 205
domain_id: 1
account_id: 3
dns1: NULL
dns2: NULL
guru_data: NULL
set_fields: 0
acl_type: Account
network_domain: atoms.lab.vmops.com
reservation_id: f078f8bb-8063-412f-91a7-3dce441e1759
guest_type: Isolated
restart_required: 0
created: 2012-09-26 18:57:15
removed: NULL
specify_ip_ranges: 0
vpc_id: NULL
*************************** 2. row ***************************
id: 206
name: TestNetwork-guest2-second-atoms
uuid: f5d1360b-0bc2-449f-b8db-89890bd813b5
display_text: TestNetwork-guest2-second-atoms
traffic_type: Guest
broadcast_domain_type: Vlan
broadcast_uri: vlan://2502
gateway: 10.2.1.1
cidr: 10.2.1.0/24
mode: Dhcp
network_offering_id: 14
physical_network_id: 201
data_center_id: 1
guru_name: ExternalGuestNetworkGuru
state: Implemented
related: 206
domain_id: 1
account_id: 3
dns1: NULL
dns2: NULL
guru_data: NULL
set_fields: 0
acl_type: Account
network_domain: atoms.lab.vmops.com
reservation_id: 303a54eb-1c15-44ce-9316-e64b2d24b4cd
guest_type: Isolated
restart_required: 0
created: 2012-09-26 19:02:19
removed: NULL
specify_ip_ranges: 0
vpc_id: NULL
2 rows in set (0.00 sec)
mysql> select * from ntwk_offering_service_map where network_offering_id = 14;
+----+---------------------+----------------+---------------+---------------------+
| id | network_offering_id | service | provider | created
|
+----+---------------------+----------------+---------------+---------------------+
| 57 | 14 | Dhcp | VirtualRouter | 2012-09-26
18:47:19 |
| 60 | 14 | Dns | VirtualRouter | 2012-09-26
18:47:19 |
| 61 | 14 | Firewall | VirtualRouter | 2012-09-26
18:47:19 |
| 58 | 14 | Lb | VirtualRouter | 2012-09-26
18:47:19 |
| 59 | 14 | PortForwarding | VirtualRouter | 2012-09-26
18:47:19 |
| 62 | 14 | SourceNat | VirtualRouter | 2012-09-26
18:47:19 |
| 55 | 14 | StaticNat | VirtualRouter | 2012-09-26
18:47:19 |
| 63 | 14 | UserData | VirtualRouter | 2012-09-26
18:47:19 |
| 56 | 14 | Vpn | VirtualRouter | 2012-09-26
18:47:19 |
+----+---------------------+----------------+---------------+---------------------+
9 rows in set (0.00 sec)
=======
Git Info:
=======
Git Revision: ae1c48204893941deba928281946d19a285b98cf
Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> VM should not be allowed to be deployed on two Isolated Networks of an
> Account that were created from DefaultNetworkOfferingwithSourceNATService.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-108
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-108
> Project: CloudStack
> Issue Type: Bug
> Components: Management Server
> Affects Versions: pre-4.0.0
> Reporter: Chandan Purushothama
> Assignee: Alena Prokharchyk
> Priority: Critical
> Fix For: pre-4.0.0
>
>
> ==================
> Steps to Reproduce:
> ==================
> 1. As a Regular User Account, Create two isolated guest networks using the
> "DefaultNetworkOfferingwithSourceNATService"
> 2. Deploy a VM on the two Isolated Networks.
> ============================================
> Observations on the User VM on Multiple Isolated Networks:
> ============================================
> [root@atoms-regnet-vm-2 ~]# ifconfig
> eth0 Link encap:Ethernet HWaddr 02:00:11:00:00:01
> inet addr:10.1.1.139 Bcast:10.1.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:9 errors:0 dropped:0 overruns:0 frame:0
> TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:1397 (1.3 KiB) TX bytes:1337 (1.3 KiB)
> eth1 Link encap:Ethernet HWaddr 02:00:3B:18:00:07
> inet addr:10.1.1.42 Bcast:10.1.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:724 (724.0 b) TX bytes:768 (768.0 b)
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:8 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
> [root@atoms-regnet-vm-2 ~]# ip route
> 10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.139
> 10.1.1.0/24 dev eth1 proto kernel scope link src 10.1.1.42
> 169.254.0.0/16 dev eth1 scope link
> default via 10.1.1.1 dev eth1
> [root@atoms-regnet-vm-2 ~]#
> ==========================================
> User VM was deployed on the two networks given below:
> ==========================================
> mysql> select * from networks where id in (204,209) \G
> *************************** 1. row ***************************
> id: 204
> name: TestNetwork-atoms
> uuid: 6ebeed0b-7de9-4d7c-a00e-03b6ec134bd9
> display_text: TestNetwork-atoms
> traffic_type: Guest
> broadcast_domain_type: Vlan
> broadcast_uri: vlan://2487
> gateway: 10.1.1.1
> cidr: 10.1.1.0/24
> mode: Dhcp
> network_offering_id: 8
> physical_network_id: 200
> data_center_id: 1
> guru_name: ExternalGuestNetworkGuru
> state: Implemented
> related: 204
> domain_id: 1
> account_id: 3
> dns1: 72.52.126.11
> dns2: 72.52.126.12
> guru_data: NULL
> set_fields: 0
> acl_type: Account
> network_domain: atoms.lab.vmops.com
> reservation_id: 19899f50-8ed0-4280-8299-64be67b7127e
> guest_type: Isolated
> restart_required: 0
> created: 2012-09-12 00:59:37
> removed: NULL
> specify_ip_ranges: 0
> vpc_id: NULL
> *************************** 2. row ***************************
> id: 209
> name: TestNetwork-mol-atoms
> uuid: f79a9fdc-082c-46d2-8c20-83cd1f166cc9
> display_text: TestNetwork-mol-atoms
> traffic_type: Guest
> broadcast_domain_type: Vlan
> broadcast_uri: vlan://2483
> gateway: 10.1.1.1
> cidr: 10.1.1.0/24
> mode: Dhcp
> network_offering_id: 8
> physical_network_id: 200
> data_center_id: 1
> guru_name: ExternalGuestNetworkGuru
> state: Implemented
> related: 209
> domain_id: 1
> account_id: 3
> dns1: NULL
> dns2: NULL
> guru_data: NULL
> set_fields: 0
> acl_type: Account
> network_domain: molecules.lab.vmops.com
> reservation_id: 7f336007-8936-4223-84a6-79e4fb115a9e
> guest_type: Isolated
> restart_required: 0
> created: 2012-09-14 22:10:31
> removed: NULL
> specify_ip_ranges: 0
> vpc_id: NULL
> 2 rows in set (0.00 sec)
> mysql>
> =========
> Git Info:
> =========
> Git Revision: 03df2fa9dd45c938f72cd1866044b09d1b0cc978
> 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