[SNMP-13] Unable to make SNMP-get request because "No implementation of RPC available Created: 07/Jun/16  Updated: 19/Oct/17

Status: Open
Project: snmp
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: RichardHill Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf-0-4-2-Beryllium-SR2-SNMP.log    
External issue ID: 6018

 Description   

After installing SNMP feature then making an RESTCONF request via SNMP request to a node with a running SNMP client you will recieve a error

HTTP 501 ERROR
"No implementation of RPC AbsoluteSchemaPath

{path=[(urn:opendaylight:snmp?revision=2014-09-22)snmp-get]}

available"

  1. Tested
    distribution-karaf-0.4.2-Beryllium-SR2
  1. Steps
    I installed the snmp feature using the then made an RESTCONF request via SNMP request to 10.10.199.118 where an SNMP daemon is running.

HTTP GET
http://10.10.199.118:8181/restconf/operations/snmp:snmp-get

PAYLOAD
{
"input":

{ "ip-address": "10.10.199.118", "oid": "1.3.6.1.2.1.1.1.0", "get-type": "GET-NEXT", "community": "209ijvfwer0df92jd" }

}

The request can be replicated using:
curl -H "Content-Type: application/json" -X POST -d '{"input": { "ip-address": "10.10.199.118","oid": "1.3.6.1.2.1.1.1.0","get-type": "GET-NEXT","community":"209ijvfwer0df92jd"}}' http://10.10.199.118:8181/restconf/operations/snmp:snmp-get

  1. Expected Result
    HTTP 200 response
  1. Actual Result
    HTTP STATUS 501
    Error sending request - : No implementation of RPC AbsoluteSchemaPath {path=[(urn:opendaylight:snmp?revision=2014-09-22)snmp-get]}

    available



 Comments   
Comment by RichardHill [ 07/Jun/16 ]

Attachment karaf-0-4-2-Beryllium-SR2-SNMP.log has been added with description: karaf log recorded during test

Comment by RichardHill [ 08/Jun/16 ]

Further analysis of the log showed that the ConfigPusher was delayed pushing snmp and may have not been available during tests

    1. EXAMPLE ##

0.4.2.Beryllium-SR2 | Pushing configuration snapshot snmp-impl.xml(odl-snmp-plugin,odl-snmp-plugin)
2016-06-03 11:30:51,313 | WARN | ction-102-104'}} | DeadlockMonitor | 118 - org.opendaylight.controller.config-manager - 0.4.2.Beryllium-SR2 | ModuleIdentifier

{factoryName='snmp-impl', instanceName='snmp-impl'} did not finish after 9977 ms
2016-06-03 11:30:56,313 | WARN | ction-102-104'}} | DeadlockMonitor | 118 - org.opendaylight.controller.config-manager - 0.4.2.Beryllium-SR2 | ModuleIdentifier{factoryName='snmp-impl', instanceName='snmp-impl'}

did not finish after 14977 ms
2016-06-03 11:31:01,313 | WARN | ction-102-104'}} | DeadlockMonitor | 118 - org.opendaylight.controller.config-manager - 0.4.2.Beryllium-SR2 | ModuleIdentifier

{factoryName='snmp-impl', instanceName='snmp-impl'} did not finish after 19977 ms
2016-06-03 11:31:06,313 | WARN | ction-102-104'}} | DeadlockMonitor | 118 - org.opendaylight.controller.config-manager - 0.4.2.Beryllium-SR2 | ModuleIdentifier{factoryName='snmp-impl', instanceName='snmp-impl'}

did not finish after 24977 ms
2016-06-03 11:31:09,827 | INFO | config-pusher | ConfigPusherImpl | 122 - org.opendaylight.controller.config-persister-impl - 0.4.2.Beryllium-SR2 | Successfully pushed configuration snapshot snmp-impl.xml(odl-snmp-plugin,odl-snmp-plugin)

Generated at Wed Feb 07 20:39:12 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.