Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-555

Nmap scan of port 1830 causes exception

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1176

    Description

      This is a third of CONTROLLER-530 which I was told by Devin Avery to split.

      Steps to recreate:

      1. Starting with a fresh Fedora 20 Cloud VM on an OpenStack deployment with an IP I can reach
        sudo yum update -y
        sudo yum install -y java-1.7.0-openjdk unzip wget which
        wget -P /home/fedora 'https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.2-SNAPSHOT-osgipackage.zip'
        unzip distributions-base-0.1.2-SNAPSHOT-osgipackage.zip
        cd /home/fedora/opendaylight
        ./run.sh
      1. From another machine, in my case a second fresh Fedora 20 VM on an OpenStack deployment:
        sudo yum update -y
        sudo yum install -y nmap
        nmap -Pn -p 1830 172.18.14.10 # IP of first VM

      That nmap scan of port 1830 results in the following exception on the first VM (running ODL):

      osgi> 2014-06-09 21:46:41.370 UTC [pool-4-thread-3] WARN o.o.c.netconf.ssh.threads.Handshaker - Session 3 SocketThread error
      java.net.SocketException: Connection reset
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) ~[na:1.7.0_55]
      at java.net.SocketOutputStream.write(SocketOutputStream.java:147) ~[na:1.7.0_55]
      at ch.ethz.ssh2.transport.ClientServerHello.exchange(ClientServerHello.java:82) ~[na:na]
      at ch.ethz.ssh2.transport.ClientServerHello.serverHello(ClientServerHello.java:73) ~[na:na]
      at ch.ethz.ssh2.transport.TransportManager.serverInit(TransportManager.java:614) ~[na:na]
      at ch.ethz.ssh2.ServerConnection.connect(ServerConnection.java:136) ~[na:na]
      at ch.ethz.ssh2.ServerConnection.connect(ServerConnection.java:94) ~[na:na]
      at org.opendaylight.controller.netconf.ssh.threads.Handshaker.run(Handshaker.java:106) ~[na:na]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_55]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
      at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]

      osgi>

      Here's the nmap output from the scan:

      [fedora@dfarrell-opendaylight-bug1124-2 ~]$ nmap -Pn -p 1830 172.18.14.10

      Starting Nmap 6.45 ( http://nmap.org ) at 2014-06-09 21:46 UTC
      Nmap scan report for 172.18.14.10
      Host is up (0.0011s latency).
      PORT STATE SERVICE
      1830/tcp open unknown

      Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds

      I filed this under controller/netconf because the log message and a line of the stack trace come from controller/opendaylight/netconf/netconf-ssh/src/main/java/org/opendaylight/controller/netconf/ssh/threads/Handshaker.java. I'm not confident about this classification. If it should be moved, please let me know and forgive my ignorance.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            dfarrell07 Daniel Farrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: