CiscoDevNet / pathman-sr

Pathman SR is an open-source app to compute paths and deploy routes in Segment Routing-enabled network.
Other
96 stars 33 forks source link

The path has been refused by controller and has not been deployed. #25

Open scuteebai opened 2 years ago

scuteebai commented 2 years ago

Guys, I meet with the follow problem and have on idea how to figure it out ,anyone can help ?

5631 2022-08-12 08:54:19.405 UTC root:post INFO: {"response": [{"list": [], "option": "list_all", "success": true}]} 5631 2022-08-12 08:56:29.139 UTC root:initialize INFO: Init 2 done - debug saved 5631 2022-08-12 08:56:29.139 UTC root:rest_interface_parser INFO: Commands Relieved: {u'path': [u'PE1', u'PE2', u'PE3'], u'option': u'create', u'name': u'PE1 -> PE3'} 5631 2022-08-12 08:56:29.140 UTC root:get_loop_list INFO: Path: [u'PE1', u'PE2', u'PE3'] 5631 2022-08-12 08:56:29.140 UTC root:get_loop_list INFO: Loop list: [u'2.2.2.2', u'3.3.3.3'] 5631 2022-08-12 08:56:29.140 UTC root:get_sid_list INFO: Path: [u'PE1', u'PE2', u'PE3'] 5631 2022-08-12 08:56:29.140 UTC root:get_sid_list INFO: SID list: [18002, 18003] 5631 2022-08-12 08:56:29.158 UTC root:createSRtunnel INFO: Create SR Tunnel response: {u'output': {u'failure': u'failed', u'error': [{u'error-object': {u'ignore': False, u'processing-rule': False, u'type': 3, u'value': 2}}]}} 5631 2022-08-12 08:56:31.160 UTC root:post INFO: {"response": [{"cause": {"failure": "failed", "error": [{"error-object": {"ignore": false, "processing-rule": false, "type": 3, "value": 2}}]}, "option": "create", "success": false}]} 5631 2022-08-12 08:56:31.176 UTC root:initialize INFO: Init 2 done - debug saved 5631 2022-08-12 08:56:31.176 UTC root:rest_interface_parser INFO: Commands Relieved: {u'option': u'list_all'} 5631 2022-08-12 08:56:31.185 UTC root:get_url INFO: Url get Status: 200 5631 2022-08-12 08:56:31.186 UTC root:listAllLsp INFO: list: [], formatted: [] 5631 2022-08-12 08:56:31.186 UTC root:post INFO: {"response": [{"list": [], "option": "list_all", "success": true}]}

My runtime : Router is cisco xrv9000 version 7.5.2 Odl version is nitrogen

abbedsedk commented 1 year ago

Hi

welcome in github, people need to be mentioned to be able receive notification, here the author is @nikmon2

Search for "PCEP Protocol" you'll find this page https://www.iana.org/assignments/pcep/pcep.xhtml#pcep-error-object

Go to "Object Error" Section

Error-Type 3 = Unknown Object

Error-value 2 = Unrecognized object Type

ODL (v7) Nitrogen is expecting old Internet Draft "sid-type" Pathman-sr (master) is also expecting old Internet Draft "sid-type" IOSXR (v7) is giving new RFC8664 "nai-type"

What solution do you have:

either 1) Upgrade ODL to v13 (tested) or possibly newer release (not tested) and use lastest updated fork Pathman-sr https://github.com/abbedsedk/pathman-sr/tree/New-API-reply-204 with IOSXR (v7) or later.

or 2) If you need to stay on ODL Nitrogen use updated Pathman-sr https://github.com/abbedsedk/pathman-sr/tree/RFC8664-Nai-Type and it might be worth trying to change IANA code point: configure IANA code point to "false" old Internet Draft (5) instead of "true" new RFC8664 (36) <- these IANA code point number are seen in wireshark https://docs.opendaylight.org/projects/bgpcep/en/stable-fluorine/pcep/pcep-user-guide-active-stateful-pce.html#iana-code-points The oldest ODL with thise setting is (v9) Fluorine. So upgrade of ODL required in the end. I am not sure IOSXR v7 can handle the old IANA code point. This need to be tested. also you will need to reverse back change made of the stateful yang package name in Pathman-sr in this https://github.com/abbedsedk/pathman-sr/tree/stateful07-update odl-pcep-ietf-stateful07 updated to odl-pcep-ietf-stateful specifically odl-pcep-ietf-stateful reverse back odl-pcep-ietf-stateful07 in pathman-sr.py

Since IOSXR v6.x are not supported anymore, downgrading IOSXR is not an option.

I recommend 1) upgrading ODL to a least v13 Aluminium with updated Pathman-sr

Cheers