Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

miclando's profile - activity

2015-06-26 11:49:14 -0700 received badge  Student (source)
2015-02-16 00:14:41 -0700 received badge  Enthusiast
2015-02-15 01:54:34 -0700 answered a question New module/bundle not working ?

i managed to solve the issue by installing the following features :
feature:install odl-nsf-all
feature:install odl-adsal-compatibility

i suggest you check if this features are installed on your ODL.

i found the missing features according to this http://support.real-status.com/support/articles/1000137631-opendaylight-helium-support

2015-02-15 00:13:32 -0700 commented question New module/bundle not working ?

i am having the same problem. did you find a fix for it?

2015-02-03 03:21:40 -0700 answered a question Adding CORS support for my Plugin

after a long search a found the answer. in case you want to enable cors support on Hydrogen release: enable the CORS on the ODL web container (Tomcat) : 1. Copy the following jar to your plugin dir in the ODL org.opendaylight.controller.filter-valve-1.4.2-SNAPSHOT.jar donload link: https://nexus.opendaylight.org/service/local/repositories/opendaylight.snapshot/content/org/opendaylight/controller/filter-valve/1.4.2-SNAPSHOT/filter-valve-1.4.2-20141001.225558-591.jar

  1. Go to ./configuration/tomcat-server.xml
  2. In the file add the following marked line:

    <Engine name="Catalina" defaultHost="localhost">
        <Host name="localhost" appBase="" unpackWARs="false" autoDeploy="false" deployOnStartup="false" createDirs="false">
        <Realm className="org.opendaylight.controller.security.ControllerCustomRealm" />
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                        prefix="web_access_log_" suffix=".txt" resolveHosts="false"
                        rotatable="true" fileDateFormat="yyyy-MM"
                        pattern="%{yyyy-MM-dd HH:mm:ss.SSS z}t - [%a] - %r"/>
    
        <!--add this line!-->
        <Valve className="org.opendaylight.controller.filtervalve.cors.FilterValve" configurationFile="configuration/cors-config.xml"/>
    
      </Host>
    </Engine>
    
  3. Create cors-config.xml file in configuration dir under ODL. The file contains filter definitions for tomcat. here you can define your path and add the CORS filters to it as was done for restconf api.
<Host>
  <!-- Filters are allowed here, only serving as a template -->
  <filter-template>
    <filter-name>CorsFilter</filter-name>
    <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
    <init-param>
      <param-name>cors.allowed.origins</param-name>
      <param-value>*</param-value>
    </init-param>
    <init-param>
      <param-name>cors.allowed.methods</param-name>
      <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
    </init-param>
    <init-param>
      <param-name>cors.allowed.headers</param-name>
      <param-value>Content-Type,X-Requested-With,accept,authorization,
        origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers
      </param-value>
    </init-param>
    <init-param>
      <param-name>cors.exposed.headers</param-name>
      <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
    </init-param>
    <init-param>
      <param-name>cors.support.credentials</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>cors.preflight.maxage</param-name>
      <param-value>10</param-value>
    </init-param>
  </filter-template>

  <Context path="/restconf">
    <filter>
      <filter-name>CorsFilter</filter-name>
      <!-- init params can be added/overriden if template is used> -->
    </filter>
    <!-- references to templates without <filter> declaration are not allowed -->
    <filter-mapping>
      <filter-name>CorsFilter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
  </Context>




</Host>
2015-02-03 01:22:01 -0700 received badge  Popular Question (source)
2015-02-03 01:22:01 -0700 received badge  Notable Question (source)
2015-02-03 01:22:01 -0700 received badge  Famous Question (source)
2015-01-25 02:47:31 -0700 answered a question How to include a jar on Karaf.

in karaf,
when you want to include your own jar you need to place it under the deploy folder. here is the karaf folder description:
https://wiki.opendaylight.org/view/KarafDistributionFolderandFile_Guide.

2015-01-21 01:25:30 -0700 asked a question Adding CORS support for my Plugin

hi, i have a plugin i developed using AD sal.
the plugin exposes a number of rest API's.
these api's are accessed from a web application deployed on another domain.
because of this my access are cross domain.
currently i am using jsonp for this sort of access.
what i am trying to do is to enable CORS support on my opendaylight hydrogen.
from what i managed to uncover. i need to to add my apis to cors-config.xml.
but that didn't work.
i also tried defining the filter in the plugin web xml but again with no success has anyone manged to get this to work?

2014-12-16 02:52:27 -0700 received badge  Famous Question (source)
2014-12-10 23:13:29 -0700 answered a question Karaf client failes to connect to a server under linux

in the end the issue was caused because i used the zip release of opendaylight helium.

on the opendaylight download page there are two versions. one compressed as a zip and the other as tar.gz. from what i found there are system differences between them, the zip is for windows and the tar for Linux.

when i deployed the tar version on Linux the issue did not reproduce.

2014-12-10 23:13:20 -0700 commented answer Karaf client failes to connect to a server under linux

@dfarrell07 that is all most what i did.

2014-12-10 06:33:23 -0700 received badge  Notable Question (source)
2014-12-09 22:35:44 -0700 received badge  Editor (source)
2014-12-09 22:32:29 -0700 commented answer Karaf client failes to connect to a server under linux

thanks for the reply. i tried ./client log:get and it does work. so i am left with the same problem i am unable to get an interactive session. do you have any suggestions? ps i updated the question with the results of ./client -v

2014-12-09 12:02:41 -0700 received badge  Popular Question (source)
2014-12-09 05:56:56 -0700 asked a question Karaf client failes to connect to a server under linux

I am trying to access an OpenDaylight server running on Linux in a background process. I'm using ODL 0.2.1 (Helium SR1).

From what I understand, if you are trying to connect from the same machine all you need to do is run ./client to establish a connection to the Karaf shell.

However, I'm seeing this:

[root@d20-srv-81-32 bin]# ./client
Logging in as karaf
258 [pool-2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at /0.0.0.0:8101 presented unverified key:
[root@d20-srv-81-32 bin]#

Connecting via SSH works:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@localhost

Has any one else encountered this issue?

more info ./client -v result

[root@d20-srv-81-32 bin]# ./client -v
23 [main] INFO org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider
207 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Session created...
Logging in as karaf
215 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Server version string: SSH-2.0-SSHD-CORE-0.12.0
216 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Received SSH_MSG_KEXINIT
227 [pool-2-thread-1] INFO org.apache.sshd.client.kex.DHG1 - Send SSH_MSG_KEXDH_INIT
234 [pool-2-thread-2] INFO org.apache.sshd.client.kex.DHG1 - Received SSH_MSG_KEXDH_REPLY
241 [pool-2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at /0.0.0.0:8101 presented unverified key:
241 [pool-2-thread-2] INFO org.apache.sshd.client.session.ClientSessionImpl - Received SSH_MSG_NEWKEYS
245 [pool-2-thread-2] INFO org.apache.sshd.client.session.ClientSessionImpl - Send SSH_MSG_SERVICE_REQUEST for ssh-userauth
248 [main] INFO org.apache.sshd.client.auth.UserAuthAgent - Send SSH_MSG_USERAUTH_REQUEST for publickey
256 [pool-2-thread-5] INFO org.apache.sshd.client.auth.UserAuthAgent - Received SSH_MSG_USERAUTH_SUCCESS
306 [main] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_OPEN on channel 101
307 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send agent forwarding request
308 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST pty-req
308 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST env
309 [pool-2-thread-2] INFO org.apache.sshd.client.channel.ChannelShell - Send SSH_MSG_CHANNEL_REQUEST shell

[root@d20-srv-81-32 bin]#