openhpi2 / Open-HPI-base

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
0 stars 1 forks source link

increased memory consumption during failures #2557

Closed openhpi2 closed 8 years ago

openhpi2 commented 10 years ago

Reported in the mailing list rpm -qf /usr/sbin/openhpid openhpi-3.2.1-1.x86_64

:/root-# uname -a Linux 2.6.32-358.23.2.el6.x86_64 #1 SMP Sat Sep 14 05:32:37 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux   The process runs like this: /usr/sbin/openhpid -c /etc/openhpi/openhpi-0.conf -p 60450 -f /var/run/openhpid-0.pid     cat /etc/openhpi/openhpi-0.conf # OPENHPI_VARPATH = "/var/lib/openhpi" # (ProLiantDL380) handler libilo2_ribcl {         entity_root     = "{RACK,0}{RACK_MOUNTED_SERVER,0}"         ilo2_ribcl_hostname     = ""     # iLO2 RIBCL IP address         ilo2_ribcl_portstr      = "443"         # iLO2 RIBCL SSL server port         ilo2_ribcl_username     = ""        # iLO2 username         ilo2_ribcl_password     = "some pass here"      # iLO2 password }   The issue is that openhpid grows when  ""  is not reachable. So it grows in rainy day scenario. Here some are the logs from /var/log/messages. They repeat so I do not want to paste everything.   Sep 28 02:11:56 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:11:56 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:11:56 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:11:56 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:11:56 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:08 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:12:08 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:09 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:12:09 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:12:09 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:12:09 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:12:09 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:12:09 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:12:20 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:12:20 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:22 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:12:22 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:12:22 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:12:22 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:12:22 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:12:22 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:12:32 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:12:32 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:34 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:12:34 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:12:34 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:12:34 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:12:34 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:12:34 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:12:44 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:12:44 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:46 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:12:46 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:12:46 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:12:46 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:12:46 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:12:46 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:12:56 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:12:56 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:12:58 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:12:58 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:12:58 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:12:58 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:12:58 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:12:58 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:13:08 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:13:08 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:13:10 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:13:10 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:13:10 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:13:10 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:13:10 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:13:10 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Sep 28 02:13:20 openhpid: transport: strmsock.cpp:538: bind failed. Sep 28 02:13:20 openhpid: openhpid: server.cpp:152: Error creating server socket. Exiting. Sep 28 02:13:22 openhpid: ssl: oh_ssl.c:493: BIO_do_connect() failed Sep 28 02:13:22 openhpid: ssl: oh_ssl.c:495: SSL error: No route to host Sep 28 02:13:22 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:87: ilo2_ribcl_ssl_send_command(): oh_ssl_connect returned NULL. Sep 28 02:13:22 openhpid: ilo2_ribcl: ilo2_ribcl_ssl.c:234: ilo2_ribcl_ssl_send_command(): write of xml header to socket failed. Sep 28 02:13:22 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:335: ilo2_ribcl_do_discovery():could not detect iLO type. Sep 28 02:13:22 openhpid: ilo2_ribcl: ilo2_ribcl_discover.c:161: ilo2_ribcl_discover_resources(): discovery failed. Reported by: dr_mohan
openhpi2 commented 10 years ago

Original comment by: dr_mohan

openhpi2 commented 10 years ago

Fixed with checkin #7594

Original comment by: dr_mohan