Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1765 OpenHPI Daemon get stuck if running for couple of days

closed-works-for-me
9
2012-12-21
2012-09-12
preeti sharma
No

Following steps I did:

• I downloaded OpenHPI-3.0.0. Compiled it using below commands:

./configure --prefix=/usr --sysconfdir=/etc --with-varpath=/var/lib/openhpi --enable-ipmi=yes --enable-ilo2_ribcl=yes --enable-oa_soap=yes --enable-debuggable=yes --enable-debug-msgs=yes --enable-cpp_wrappers=yes

make

• I as well downloaded openssl-0.9.8x. Compiled it using below commands (no code change done):

./config shared zlib-dynamic enable-camellia -fPIC -g
make depend
make

Created directory lib in openssl-0.9.8x with below content:
[root@xp4dncc3 openssl-0.9.8x]# ls -l lib
total 7012
lrwxrwxrwx 1 root root 18 Aug 27 12:12 libcrypto.so -> libcrypto.so.0.9.8
-rwxr-xr-x 1 root root 5669613 Aug 26 05:27 libcrypto.so.0.9.8
lrwxrwxrwx 1 root root 15 Aug 27 12:12 libssl.so -> libssl.so.0.9.8
-rwxr-xr-x 1 root root 1488131 Aug 26 05:27 libssl.so.0.9.8

• I had un-tarred OpenHPI-3.0.0 and openssl-0.9.8 in directory /root/preeti/ORIG/
• Only change I did- I had Modified OpenHPI-3.0.0 configuration file to point to openssl-0.9.8x (attached with this mail - to track the changes search openssl-0.9.8x in attachment)
• I am running Daemon using this command:
./openhpid -n -v -c openhpi.conf

(attaching openhpi.conf with the mail)

[root@xp4dncc3 lib-0.9.8x]# pwd
/root/preeti/ORIG/openhpi-3.0.0/lib-0.9.8x

[root@xp4dncc3 lib-0.9.8x]# ls —l
total 17540
lrwxrwxrwx 1 root root 15 Aug 26 05:51 liboa_soap.so -> liboa_soap.so.3
-rwxr-xr-x 1 root root 12588317 Aug 26 05:43 liboa_soap.so.3
-rwxr-xr-x 1 root root 382544 Aug 26 05:44 libopenhpimarshal.so.3
-rwxr-xr-x 1 root root 682411 Aug 26 05:45 libopenhpi.so.3
-rwxr-xr-x 1 root root 520965 Aug 26 05:44 libopenhpi_ssl.so.3
-rwxr-xr-x 1 root root 158444 Aug 26 05:44 libopenhpitransport.so.3
-rwxr-xr-x 1 root root 1451480 Aug 26 05:45 libopenhpiutils.so.3
-rw-r—r—1 root root 4006 Sep 10 14:36 openhpi.conf
-rwxr-xr-x 1 root root 2112715 Aug 26 05:43 openhpid

[root@xp4dncc3 lib-0.9.8x]# echo $LD_LIBRARY_PATH
/root/reeti/ORIG/openhpi-3.0.0/lib-0.9.8x:/root/reeti/ORIG/openssl-0.9.8x
• After running for almost one and half day Daemon got stuck. I discovered it by running client program hpievents . OpenHPI Daemon initially had 6 threads. I tried running hpievents twice each time utility program got stuck and added up a new thread to Daemon now Daemon has total 8 threads running.

[root@xp4dncc3 clients]# ./hpievents
/root/preeti/ORIG/openhpi-3.0.0/clients/.libs/lt-hpievents - This program came with OpenHPI 3.0.0
SAF HPI Version B.03.02

(lt-hpievents:24690): baselib-CRITICAL **: conf.c:487: Client configuration file '/etc/openhpi/openhpiclient.conf' could not be opened
************** timeout:[0] ****************

[root@xp4dncc3 lib-0.9.8x]# ps -eafL|grep openhpi|grep -v grep|wc -l
8

• Gdb attach shows Daemon threads are stuck in lock wait (gdb log is attached with this mail)

Discussion

1 2 3 4 > >> (Page 1 of 4)
  • preeti sharma
    preeti sharma
    2012-09-12

    openhpi.conf file

     
    Attachments
  • preeti sharma
    preeti sharma
    2012-09-12

    openhpi configure file

     
    Attachments
  • preeti sharma
    preeti sharma
    2012-09-12

    gdb log with information of threads stuck in wait lock

     
    Attachments
  • dr_mohan
    dr_mohan
    2012-09-12

    • labels: --> HP c-Class Plugin
     
  • dr_mohan
    dr_mohan
    2012-09-12

    • assigned_to: nobody --> hemanthreddy
     
  • preeti sharma
    preeti sharma
    2012-09-12

    • priority: 5 --> 9
     
  • dr_mohan
    dr_mohan
    2012-09-12

    • assigned_to: hemanthreddy --> nobody
    • priority: 9 --> 5
     
  • dr_mohan
    dr_mohan
    2012-09-12

    Preeti,

    Could you please provide the OA version of the target. If you have hpitree output please upload that file. We will take the OA version from there.

    Thanks
    Mohan

     
  • preeti sharma
    preeti sharma
    2012-09-12

     
    Attachments
  • preeti sharma
    preeti sharma
    2012-09-12

    Hi Mohan,
    I have uploaded hpitree log.

    Regards,
    Preeti

     
1 2 3 4 > >> (Page 1 of 4)