RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1310586 - openhpi-subagent failed connect to agentx and causes core dump
Summary: openhpi-subagent failed connect to agentx and causes core dump
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openhpi-subagent
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rafael Fonseca
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-22 10:10 UTC by Radka Brychtova
Modified: 2017-06-29 14:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-29 14:49:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Crash report from abrt - hpi-subagent (31.99 KB, text/plain)
2016-02-22 10:10 UTC, Radka Brychtova
no flags Details

Description Radka Brychtova 2016-02-22 10:10:24 UTC
Created attachment 1129208 [details]
Crash report from abrt - hpi-subagent

Description of problem:
Hpisubagent have problem with connection to agetx and causes core dump

Version-Release number of selected component (if applicable):
pkg_arch:       x86_64
pkg_epoch:      0
pkg_fingerprint: 199E 2F91 FD43 1D51
pkg_name:       openhpi-subagent
pkg_release:    10.el6
pkg_vendor:     Red Hat, Inc.
pkg_version:    2.3.4

How reproducible:
100%

Steps to Reproduce:
1. Failing in test running with abrt check -  /CoreOS/openhpi-subagent/Sanity/initscript in starting openhpi-subagent
2. core dump is visible in abrt output
3.

Actual results:
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: Starting $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: Created directory: /var/lib/net-snmp/mib_indexes
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: Sending EVENTS during startup.
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: /etc/snmp/hpiSubagent.conf: line 8: Warning: Unknown token: check_hpi_interval.
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: Max Event rows 1024.
:Feb 22 04:38:48 ibm-x3650m4-01-vm-06 hpiSubagent[8268]: Warning: Failed to connect to the agentx master agent ([NIL]): 
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8270]: Stopping $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8384]: Starting $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8384]: Sending EVENTS during startup.
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8384]: /etc/snmp/hpiSubagent.conf: line 8: Warning: Unknown token: check_hpi_interval.
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8384]: Max Event rows 1024.
:Feb 22 04:38:49 ibm-x3650m4-01-vm-06 hpiSubagent[8384]: Warning: Failed to connect to the agentx master agent ([NIL]): 
:Feb 22 04:38:50 ibm-x3650m4-01-vm-06 hpiSubagent[8385]: Stopping $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 hpiSubagent[8569]: Starting $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 hpiSubagent[8569]: Sending EVENTS during startup.
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 hpiSubagent[8569]: /etc/snmp/hpiSubagent.conf: line 8: Warning: Unknown token: check_hpi_interval.
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 hpiSubagent[8569]: Max Event rows 1024.
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 hpiSubagent[8569]: Warning: Failed to connect to the agentx master agent ([NIL]): 
:Feb 22 04:38:51 ibm-x3650m4-01-vm-06 abrt[8596]: Saved core dump of pid 8579 (/usr/bin/hpiSubagent) to /var/spool/abrt/ccpp-2016-02-22-04:38:51-8579 (3457024 bytes)

Expected results:


Additional info:
Added abrt output

Comment 1 Petr Sklenar 2016-02-22 10:11:30 UTC
there is another strange stuff with thousands of lines on stdout, its not much user friendly
 
[0 root@qeos-39 test]# service openhpid start
Starting openhpid:                                         [  OK  ]
[0 root@qeos-39 test]# service openhpi-subagent start
Starting openhpi-subagent: No log handling enabled - turning on stderr logging
registered debug token hpiSubagent, 1
Starting $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
Sending EVENTS during startup.
/etc/snmp/hpiSubagent.conf: line 8: Warning: Unknown token: check_hpi_interval.
Max Event rows 1024.
Warning: Failed to connect to the agentx master agent ([NIL]): 
hpiSubagent: Hpi Version 131841 Implemented.
hpiSubagent: saHpiSessionOpen returns with SessionId 1
hpiSubagent: subcsribe_all_sessions() SUCCEEDED!!!!!!!
hpiSubagent: saHpiDiscover Success!
hpiSubagent: init_saHpiAdministration, called
hpiSubagent: initialize_scalar_saHpiDiscover, called
hpiSubagent: init_saHpiDomainInfoTable
hpiSubagent: initialize_table_saHpiDomainInfoActiveEntries, called
hpiSubagent: init_saHpiDomainAlarmTable, called
hpiSubagent: initialize_table_saHpiDomainAlarmActiveEntries, called
hpiSubagent: init_saHpiDomainReferenceTable, called

### and thousands more lines on stdout

Comment 3 Rafael Fonseca 2016-02-23 14:54:40 UTC
Petr,

can you confirm whether openhpid is actually running? Check the output of

# systemctl status openhpid

I get the same error if I try to start openhpi-subagent without having the openhpid daemon properly initialized.

If systemctl reports that openhpid is Inactive or Dead, try running it yourself

# /usr/sbin/openhpid -n -v -c /etc/openhpi/openhpi.conf

then running the subagent

# /usr/sbin/hpiSubagent

and let me know the outcome, please.

Comment 4 Petr Sklenar 2016-04-05 10:59:16 UTC
(In reply to Rafael Fonseca from comment #3)
Hi,
my comment was about additional output on STDOUT  which is strange; not sure if it worths fixing on rhel68:

[0 root@qeos-7 test]# service openhpid restart
Stopping openhpid:                                         [  OK  ]
Starting openhpid:            
                             [  OK  ]
[0 root@qeos-7 test]# service openhpid status
openhpid (pid  2001) is running...

[0 root@qeos-7 test]# ps aux | grep openhpid
root      2154  0.0  0.1 303268  3268 ?        Sl   06:51   0:00 /usr/sbin/openhpid -c /etc/openhpi/openhpi.conf
root      2425  0.0  0.0 103316   880 pts/0    S+   06:58   0:00 grep openhpid


[0 root@qeos-7 test]# service openhpi-subagent start
Starting openhpi-subagent: No log handling enabled - turning on stderr logging
registered debug token hpiSubagent, 1
Starting $Id: hpiSubagent.c 5417 2005-11-14 16:18:37Z ddearauj $
Created directory: /var/lib/net-snmp/mib_indexes
Sending EVENTS during startup.
/etc/snmp/hpiSubagent.conf: line 8: Warning: Unknown token: check_hpi_interval.
Max Event rows 1024.
Warning: Failed to connect to the agentx master agent ([NIL]): 
hpiSubagent: Hpi Version 131841 Implemented.
hpiSubagent: saHpiSessionOpen returns with SessionId


# then each few sec there is additional output on stdout with:
hpiSubagent: do_alarm: Entry
hpiSubagent: event_log_info_update called
hpiSubagent: SA_ERR_HPI_CAPABILITY: event_log_info_update Failed: rv = -1020
hpiSubagent: SA_ERR_HPI_CAPABILITY: event_log_info_update Failed: rv = -1020
hpiSubagent: SA_ERR_HPI_CAPABILITY: event_log_info_update Failed: rv = -1020
hpiSubagent: do_alarm: Exit


Note You need to log in before you can comment on or make changes to this bug.