External segment update complains with router id issue

Bug #1486782 reported by AJAY KALAMBUR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy
Incomplete
Undecided
Ivar Lazzaro

Bug Description

GBP APIC Opflex plugin
I created an external segment and tried to update it. The update failed
Scenario 2: 2 step process

gbp external-segment-delete TestL3-Out
Deleted external_segment: TestL3-Out
akalambu@akalambu-VM:~/gbpdev0612/rally$ gbp external-segment-create TestL3-Out
Created a new external_segment:
+--------------------------+--------------------------------------+
| Field | Value |
+--------------------------+--------------------------------------+
| cidr | 20.20.1.0/24 |
| description | |
| external_policies | |
| external_routes | |
| id | 8f279438-d437-42da-b4bb-dd11ccc28b7f |
| ip_version | 4 |
| l3_policies | |
| name | TestL3-Out |
| port_address_translation | False |
| shared | False |
| subnet_id | |
| tenant_id | 2cb7d4e22050437890a64734d25824be |
+--------------------------+--------------------------------------+
akalambu@akalambu-VM:~/gbpdev0612/rally$ gbp external-segment-update TestL3-Out --external-route destination=0.0.0.0/0,nexthop=20.20.1.2

Traceback:
2015-08-19 11:12:01.514 17158 TRACE gbpservice.neutron.services.grouppolicy.policy_driver_manager ApicResponseNotOk: APIC responded with HTTP status 400: Bad Request, Request: '/mo/uni/tn-l3_test.json, data={"fvTenant": {"attributes": {"rn": "tn-l3_test"}, "children": [{"l3extOut": {"attributes": {"rn": "out-TestL3-Out"}, "children": [{"l3extLNodeP": {"attributes": {"rn": "lnodep-os-lnode"}, "children": [{"l3extRsNodeL3OutAtt": {"attributes": {"rn": "rsnodeL3OutAtt-[topology/pod-1/node-102]"}, "children": [{"ipRouteP": {"attributes": {"rn": "rt-[0.0.0.0/0]"}, "children": [{"ipNexthopP": {"attributes": {"rn": "nh-[20.20.1.2]"}, "children": []}}]}}]}}]}}]}}]}}', APIC error code 1: Invalid Configuration : Router ID 0.0.0.0 is not Allowed.
2015-08-19 11:12:01.514 17158 TRACE gbpservice.neutron.services.grouppolicy.policy_driver_manager
2015-08-19 11:12:01.515 17158 ERROR neutron.api.v2.resource [req-85c95b30-3d12-4a46-a7ff-5d8aa2105914 None] update failed
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 87, in resource
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource result = method(request=request, **args)
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 538, in update
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/neutron/common/log.py", line 34, in wrapper
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource return method(*args, **kwargs)
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/gbpservice/neutron/services/grouppolicy/plugin.py", line 1228, in update_external_segment
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource policy_context)
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/gbpservice/neutron/services/grouppolicy/policy_driver_manager.py", line 328, in update_external_segment_postcommit
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource context)
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/gbpservice/neutron/services/grouppolicy/policy_driver_manager.py", line 134, in _call_on_drivers
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource method=method_name
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource GroupPolicyDriverError: update_external_segment_postcommit failed.
2015-08-19 11:12:01.515 17158 TRACE neutron.api.v2.resource
2015-08-19 11:12:01.517 17158 INFO neutron.wsgi [req-85c95b30-3d12-4a46-a7ff-5d8aa2105914 None] 172.29.172.181 - - [19/Aug/2015 11:12:01] "PUT /v2.0/grouppolicy/external_segments/8f279438-d437-42da-b4bb-dd11ccc28b7f.json HTTP/1.1" 500 332 0.137263

My neutron.conf

[apic_external_network:TestL3-Out]
switch=102
cidr_exposed=20.20.1.0/24
gateway_ip=20.20.1.2
port=1/1
router_id=20.20.0.1

Tags: ccs-seen
Changed in group-based-policy:
assignee: nobody → Ivar Lazzaro (mmaleckk)
Revision history for this message
Ivar Lazzaro (mmaleckk) wrote :

Can you try to run the update after associating the ES to a L3P? Does it still reproduce?

Changed in group-based-policy:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.