RESTCONF Does Not Prompt for Login

asked 2015-07-19 12:03:04 -0800

runamuck gravatar image

updated 2015-07-19 13:08:11 -0800

I have an ODL controller in the Google cloud with a local (RFC-1918) 10.x.x.x address, as well as a Public NAT address 31.x.x.x

I built and started the SFC project:

git clone https://git.opendaylight.org/gerrit/p/sfc.git --branch master 
cd sfc  
mvn clean install -Dmaven.test.skip=true
cd sfc/sfc-karaf/target/assembly
./bin/karaf

When I log into the controller web page using the Internet address, I do not get a login prompt.

http://31.x.x.x/restconf/

When I log into the SFC GUI, I also do not get a login prompt, it just drops me into the SFC UI.

http://31.x.x.x:8181/sfc/index.html

I then get a ton of USERAUTH failures:

INFO    | Received SSH_MSG_USERAUTH_FAILURE | Apache Mina SSHD :: Core

Logging into

http://admin:admin@31.x.x.x/sfc/index.html

does not fix the issue.

On servers that DO prompt for username and password, the GUI connects to the SFC services.

How can I fix this issue?

java.lang.IllegalStateException: Authentication failed
    at org.opendaylight.controller.netconf.nettyutil.handler.ssh.client.AsyncSshHandler$3.operationComplete(AsyncSshHandler.java:115)
    at org.opendaylight.controller.netconf.nettyutil.handler.ssh.client.AsyncSshHandler$3.operationComplete(AsyncSshHandler.java:108)
    at org.apache.sshd.common.future.DefaultSshFuture.notifyListener(DefaultSshFuture.java:269)
    at org.apache.sshd.common.future.DefaultSshFuture.notifyListeners(DefaultSshFuture.java:254)
    at org.apache.sshd.common.future.DefaultSshFuture.setValue(DefaultSshFuture.java:173)
    at org.apache.sshd.client.future.DefaultAuthFuture.setAuthed(DefaultAuthFuture.java:68)
    at org.apache.sshd.client.session.ClientUserAuthServiceNew.tryNext(ClientUserAuthServiceNew.java:206)
    at org.apache.sshd.client.session.ClientUserAuthServiceNew.processUserAuth(ClientUserAuthServiceNew.java:178)
    at org.apache.sshd.client.session.ClientUserAuthServiceNew.process(ClientUserAuthServiceNew.java:131)
    at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:80)
    at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:431)
    at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)
    at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)
    at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)
    at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)
    at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
    at org.apache.sshd.common.io.mina.MinaService.messageReceived(MinaService.java:105)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
    at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java ...
(more)
edit retag flag offensive close merge delete