Gateway_less_FWD: Allocation pool per vrouter should be unique
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.1 |
Fix Committed
|
High
|
Atul Moghe | |||
Trunk |
Fix Committed
|
High
|
Atul Moghe |
Bug Description
Allocation pool per vrouter should be unique. Right now, same allocation pool set can be assigned to multiple vrouters, which is incorrect and config should not be allowed.
Steps
----
1. Create a flat-subnet IPAM (say 10.204.218.0/24), create a vrouter specific allocation pool (10.204.
2. Configure subnet and allocation pool on one virtual-router
3. Now, try configuring the same subnet and allocation pool on another virtual-router. This config is getting accepted, though allocation pool is same across 2 virtual-routers. This is incorrect.
Build Info
---------
4.1.0.0-27 Mitaka
Please see the log below:
>>> pprint(
{'_display_name': u'ip_fabric_ipam',
'_id_perms': permissions = owner = admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 451975616898185
'_ipam_
'_ipam_subnets': subnets = [subnet = ip_prefix = 10.204.218.0, ip_prefix_len = 24, default_gateway = 10.204.218.1, dns_server_address = 10.204.218.2, subnet_uuid = 7ba01c7c-
'_network_
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = bd96af28cd1e4bd
'_server_conn': <vnc_api.
'_type': 'network-ipam',
'_uuid': u'3eb96649-
'fq_name': [u'default-domain', u'admin', u'ip_fabric_ipam'],
'name': u'ip_fabric_ipam',
'parent_type': u'project',
'parent_uuid': u'bd96af28-
>>>
>>> pprint(
{'allocation_
'subnet': [ip_prefix = 10.204.218.240, ip_prefix_len = 24]}
>>>
>>> nodec23_
>>> vnc_lib.
u'{"virtual-
>>>
>>> nodek11_
>>> vnc_lib.
u'{"virtual-
>>>
>>>
>>> pprint(
{'_display_name': u'nodek11',
'_id_perms': permissions = owner = cloud-admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 147059414490787
'_original_
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = cloud-admin, owner_access = 7, global_access = 0, share = [],
'_server_conn': <vnc_api.
'_type': 'virtual-router',
'_uuid': u'cc15ffd5-
'_virtual_
'_virtual_
'fq_name': [u'default-
'name': u'nodek11',
'network_
'parent_type': u'global-
'parent_uuid': u'52bed2b0-
>>> pprint(
{'_display_name': u'nodec23',
'_id_perms': permissions = owner = cloud-admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 527602809570383
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = cloud-admin, owner_access = 7, global_access = 0, share = [],
'_server_conn': <vnc_api.
'_type': 'virtual-router',
'_uuid': u'49383799-
'_virtual_
'_virtual_
'fq_name': [u'default-
'name': u'nodec23',
'network_
'parent_type': u'global-
'parent_uuid': u'52bed2b0-
>>>
tags: |
added: config removed: vrouter |
information type: | Proprietary → Public |
---------
Compute 1
---------
>>> pprint( vars(nodek11_ vr)) 51328, uuid_lslong = 135809012852287 05470, enable = True, created = 2017-10- 27T07:53: 32.191127, last_modified = 2017-10- 30T08:48: 23.794468, description = None, user_visible = True, creator = None, field_list_ updates' : {}, field_map_ updates' : {}, field_updates' : set([]), ref_updates' : set([]), vnc_api. VncApi object at 0x7fa47e1a8710>, 2008-4060- bc79-0dc3a3b3f6 be', router_ dpdk_enabled' : False, router_ ip_address' : u'10.204.216.231', global- system- config' , u'nodek11'], ipam_refs' : [{'attr': allocation_pools = [start = 10.204.218.240, end = 10.204.218.255, vrouter_ specific_ pool = True], subnet = [ip_prefix = 10.204.218.240, ip_prefix_len = 28],
'to' : [u'default-domain',
u'admin' ,
u'ip_ fabric_ ipam'],
'uuid' : u'3eb96649- fb8b-4be6- a341-0d52a3cc5c f9'}], system- config' , d2cf-4353- 9fd4-2f1c091975 8b'}
{'_display_name': u'nodek11',
'_id_perms': permissions = owner = cloud-admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 147059414490787
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = cloud-admin, owner_access = 7, global_access = 0, share = [],
'_server_conn': <vnc_api.
'_type': 'virtual-router',
'_uuid': u'cc15ffd5-
'_virtual_
'_virtual_
'fq_name': [u'default-
'name': u'nodek11',
'network_
'parent_type': u'global-
'parent_uuid': u'52bed2b0-
--------- vars(nodec23_ vr)) 0334, uuid_lslong = 115336875931665 11730, enable = True, created = 2017-10- 27T07:53: 32.873300, last_modified = 2017-10- 30T08:48: 03.503336, description = None, user_visible = True, creator = None, field_list_ updates' : {}, field_map_ updates' : {}, field_updates' : set([]), ref_updates' : set([]), vnc_api. VncApi object at 0x7fa47e1a8710>, 7568-4f3e- a00f-e3c205051e 72', router_ dpdk_enabled' : False, router_ ip_address' : u'10.204.217.8', global- system- config' , u'nodec23'], ipam_refs' : [{'attr': allocation_pools = [start = 10.204.218.240, end = 10.204.218.255, vrouter_ specific_ pool = True], subnet = [ip_prefix = 10.204.218.240, ip_prefix_len = 28],
'to' : [u'default-domain',
u'admin' ,
u'ip_ fabric_ ipam'],
'uuid' : u'3eb96649- fb8b-4be6- a341-0d52a3cc5c f9'}], system- config' , d2cf-4353- 9fd4-2f1c091975 8b'}
Compute 2
---------
>>> pprint(
{'_display_name': u'nodec23',
'_id_perms': permissions = owner = cloud-admin, owner_access = 7, group = admin, group_access = 7, other_access = 7, uuid = uuid_mslong = 527602809570383
'_pending_
'_pending_
'_pending_
'_pending_
'_perms2': owner = cloud-admin, owner_access = 7, global_access = 0, share = [],
'_server_conn': <vnc_api.
'_type': 'virtual-router',
'_uuid': u'49383799-
'_virtual_
'_virtual_
'fq_name': [u'default-
'name': u'nodec23',
'network_
'parent_type': u'global-
'parent_uuid': u'52bed2b0-
>>>