Sanjeev N created CLOUDSTACK-6731:
-------------------------------------

             Summary: [OVS] Adding a network with StretchedL2Subnet should not 
be allowed in a zone level vpc
                 Key: CLOUDSTACK-6731
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6731
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server, Network Controller
    Affects Versions: 4.4.0
         Environment: Latest build from 4.4 with commit 
e6961fd21bb6d793302c234d0f409f66dc498072
            Reporter: Sanjeev N
            Assignee: Murali Reddy
            Priority: Critical
             Fix For: 4.4.0


[OVS] Adding a network with StretchedL2Subnet should not be allowed in a zone 
level vpc

Steps to Reproduce:
=================
1.Bring up CS in advanced zone with Xen Cluster
2.Create physical networks with GRE isolation 
3.Create vpc with Connectivity Service and OVS as the service provider but 
without RegionLevel Support(Zone level VPC)
4.Create isolated network offering for vpc with VirtuanNetworking service and 
OVS as the service provider and with StretchedL2Subnet Capability
5.Create tier with above network offering inside the vpc created at step3

Expected Result:
==============
Since vpc is not region level adding a tier with stretchedL2subnet capability 
shall not be allowed.

Actual Result:
===========
Adding  tier with stretchedL2subnet capability to Zone level vpc was successful.

Following are the vpc offering, vpc and network details from cloud DB:
mysql> select * from vpc where id=4\G;
*************************** 1. row ***************************
                     id: 4
                   uuid: d68262ba-b2d6-442e-860c-66e936e9f54b
                   name: Vpc_Ovs
           display_text: Vpc_Ovs
                   cidr: 10.20.0.0/16
        vpc_offering_id: 7
                zone_id: 1
                  state: Enabled
              domain_id: 1
             account_id: 2
         network_domain: cloud.internal
                removed: NULL
                created: 2014-05-21 09:57:48
       restart_required: 0
                display: 1
uses_distributed_router: 0
       region_level_vpc: 0
1 row in set (0.00 sec)


mysql> select * from vpc_offerings where id=7\G;
*************************** 1. row ***************************
                         id: 7
                       uuid: 57f06be5-d6fa-4e52-8dde-b876030f8f36
                unique_name: Vpc_Ovs
                       name: Vpc_Ovs
               display_text: Vpc_Ovs
                      state: Enabled
                    default: 0
                    removed: NULL
                    created: 2014-05-21 09:57:02
        service_offering_id: NULL
supports_distributed_router: 0
  supports_region_level_vpc: 0
1 row in set (0.00 sec)
mysql> select * from networks where id=221\G;
*************************** 1. row ***************************
                   id: 221
                 name: test
                 uuid: 979f25a8-3881-44ae-9404-27ee2bb89af5
         display_text: test
         traffic_type: Guest
broadcast_domain_type: Vswitch
        broadcast_uri: NULL
              gateway: 10.20.2.1
                 cidr: 10.20.2.0/24
                 mode: Dhcp
  network_offering_id: 19
  physical_network_id: 200
       data_center_id: 1
            guru_name: OvsGuestNetworkGuru
                state: Allocated
              related: 221
            domain_id: 1
           account_id: 2
                 dns1: NULL
                 dns2: NULL
            guru_data: NULL
           set_fields: 0
             acl_type: Account
       network_domain: cloud.internal
       reservation_id: NULL
           guest_type: Isolated
     restart_required: 0
              created: 2014-05-21 10:03:45
              removed: NULL
    specify_ip_ranges: 0
               vpc_id: 4
          ip6_gateway: NULL
             ip6_cidr: NULL
         network_cidr: NULL
      display_network: 1
       network_acl_id: 2
          streched_l2: 1
1 row in set (0.00 sec)




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to