Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighty spring-boot netconf application #1791

Open
Prajwal-Patil31 opened this issue Mar 15, 2024 · 1 comment
Open

Lighty spring-boot netconf application #1791

Prajwal-Patil31 opened this issue Mar 15, 2024 · 1 comment

Comments

@Prajwal-Patil31
Copy link

Describe the bug
I am using lighty spring- boot application to add Netconf devices and to perform basic Netconf operations through the Spring Boot code. But the issue is whenever I am trying to add some devices other than the Toster device the status I get is connecting but when I am trying to connect to the Toster device the status is connected. How to resolve this issue. I want to connect to any Netconf device through this code how to perform it.

Branch
lighty.io branch [15.1.0]

To Reproduce
Steps to reproduce the behavior:

  1. git checkout https://...
  2. cd lighty
  3. mvn clean install
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Added

Environment (please complete the following information):

  • OS: linux

  • Java Version 11
    TosterStatus
    TosterDevice
    StimulatorDevice
    RestConfSpring-boot
    Login

  • Maven version 3.9.5

Additional context
log output

2024-03-14 15:39:39.106 WARN 136285 --- [ntLoopGroup-3-7] io.netty.bootstrap.Bootstrap : Unknown channel option 'SO_BACKLOG' for channel '[id: 0x088ab75c]'
2024-03-14 15:39:39.109 INFO 136285 --- [ntLoopGroup-7-7] io.netty.handler.logging.LoggingHandler : [id: 0x088ab75c] REGISTERED
2024-03-14 15:39:39.109 INFO 136285 --- [ntLoopGroup-7-7] io.netty.handler.logging.LoggingHandler : [id: 0x088ab75c] CONNECT: /127.0.0.1:17830
2024-03-14 15:39:39.113 INFO 136285 --- [ntLoopGroup-7-7] io.netty.handler.logging.LoggingHandler : [id: 0x088ab75c] CLOSE
2024-03-14 15:39:39.114 INFO 136285 --- [ntLoopGroup-7-7] io.netty.handler.logging.LoggingHandler : [id: 0x088ab75c] UNREGISTERED
2024-03-14 15:40:01.897 WARN 136285 --- [ntLoopGroup-3-8] io.netty.channel.ChannelInitializer : Failed to initialize a channel. Closing: [id: 0xdffa34d2]

io.netty.channel.ChannelPipelineException: org.opendaylight.netconf.nettyutil.ReconnectPromise$1 is not a @sharable handler, so can't be added or removed multiple times.
at io.netty.channel.DefaultChannelPipeline.checkMultiplicity(DefaultChannelPipeline.java:600) ~[netty-transport-4.1.69.Final.jar!/:4.1.69.Final]
at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:202) ~[netty-transport-4.1.69.Final.jar!/:4.1.69.Final]
at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:381) ~[netty-transport-4.1.69.Final.jar!/:4.1.69.Final]
at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:370) ~[netty-transport-4.1.69.Final.jar!/:4.1.69.Final]
at org.opendaylight.netconf.nettyutil.ReconnectPromise.lambda$lockedConnect$0(ReconnectPromise.java:114) ~[netconf-netty-util-2.0.9.jar!/:na]
at org.opendaylight.netconf.nettyutil.AbstractNetconfDispatcher$3.initChannel(AbstractNetconfDispatcher.java:202) ~[netconf-netty-util-2.0.9.jar!/:na]
at org.opendaylight.netconf.nettyutil.AbstractNetconfDispatcher$3.initChannel(AbstractNetconfDispatcher.java:199) ~[netconf-netty-util-2.0.9.jar!/:na]
2024-03-14 15:40:01.898 WARN 136285 --- [ntLoopGroup-3-8] io.netty.bootstrap.Bootstrap : Unknown channel option 'SO_BACKLOG' for channel '[id: 0x8e1e6ecb]'
2024-03-14 15:40:01.899 INFO 136285 --- [ntLoopGroup-7-8] io.netty.handler.logging.LoggingHandler : [id: 0x8e1e6ecb] REGISTERED
2024-03-14 15:40:01.899 INFO 136285 --- [ntLoopGroup-7-8] io.netty.handler.logging.LoggingHandler : [id: 0x8e1e6ecb] CONNECT: /127.0.0.1:17830
2024-03-14 15:40:01.900 INFO 136285 --- [ntLoopGroup-7-8] io.netty.handler.logging.LoggingHandler : [id: 0x8e1e6ecb] CLOSE
2024-03-14 15:40:01.901 INFO 136285 --- [ntLoopGroup-7-8] io.netty.handler.logging.LoggingHandler : [id: 0x8e1e6ecb] UNREGISTERED

Thank you for creating your report! We will get back to you, as soon as possible. Please note, that our support on GitHub is based on a non-guaranteed best effort. As soon as we are able, we will get back to you.

If you are in a hurry and have an inquiry regarding commercial support, please via this contact form: https://pantheon.tech/contact-us

@ihrasko
Copy link
Collaborator

ihrasko commented Mar 15, 2024

Thanks, added to the developer queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants