Problem with DPSS and OnePK 1.0.0

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Gildas Le Peron on 25-11-2013 11:17:31 AM
Hello,
I recently update a ISR 2921 with system 15.3.3M to use OnePK 1.0.0.
I tried to start all tutorials. All works fine except DatapathTuturial.

I added on 2921 config :
onep
 datapath transport gre sender-id 23423 interface GigabitEthernet0/0
 transport type tcp
!

I changed following lines in dpss.conf :
LOCAL_IP 11.11.11.4        # my ip
GROUP_NAME onepk      # sandbox group I used with 0.7.0
USER_NAME mls              # id i used with 0.70 (belong to onepk's group)
TRANSPORT raw
ONEP_SENDER_ID 1     # also tried with 23423

So I start dpss_mp with that config file
When I start ./DatapathTutorial, the following lines appear in dpss_mp :
src/main/rpc_client/onep_dpss_main_rpc_client.c:156: onep_dpss_connect_to_client_rpc_server: connect failed, errno=13 (Permission denied)

I tried with many protocols and also tried to change user-id (I do not understand what is it used for?). I never saw any packet and made router crash quite often.

Do you have any idea what I m missing here?
Thanks in advanced,
Best regards,

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Gildas Le Peron on 25-11-2013 11:28:50 AM
To be more specific:
It almost work when I have
 * on cisco 2921 :
datapath transport gre sender-id 23423 interface GigabitEthernet 0/0
!with space between GigabitEthernet and 0/0

* in dpss.conf :
ONEP_SENDER_ID 1    # not 23423

In that case
=> when i start DatapathTutorial dpss_mp still display  :
src/main/rpc_client/onep_dpss_main_rpc_client.c:156:
onep_dpss_connect_to_client_rpc_server: connect failed, errno=13
(Permission denied)
=> and when i start a flow the callback is called : It display packet info table header then exit the program.
Thanks,

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Joseph Clarke on 25-11-2013 11:33:57 AM
The username and group are to sandbox the process once it starts.  They must exist on the Linux host.  Next, dpss_mp must be run as root.  What I recommend is:

sudo bash
/opt/cisco/onep/c64/sdk-c64-1.0.0.84/c/bin/dpss_mp -f -d all

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Gildas Le Peron on 26-11-2013 04:22:45 AM
Hi,
I m always starting dpss_mp with sudo and I m using the same user ang group I was using with v 0.7.0. So I can t understand why it doesnt work correctly.
Anyway, after some test, I realize that the "permission denied" was hiding the real problem, the line :
1printf(
2      "| %-3lu |  %c  | %-15s : %-5d | %-15s : %-5d | %-4s | %-25s |\n\n",
3      fid, ipv, src_ip, src_port, dest_ip, dest_port,
4      l4_protocol, l4_state);
from
1dpss_display_pak_info_callback
I change that line. And now I still have the "permission denied" but everything is working....  All variables are almost correctly set (I have the src ip in dest ip and dest ip in src ip) and I get all packets I asked for.

Best regards,

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Gildas Le Peron on 26-11-2013 04:33:03 AM
I made a mistake src ip and dest ip are right

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Joseph Clarke on 26-11-2013 10:33:22 AM
So you don't have a problem with this currently?

Subject: RE: Problem with DPSS and OnePK 1.0.0
Replied by: Gildas Le Peron on 27-11-2013 02:39:10 AM
It works,
Thanks
Regards

Attachments

    Outcomes