Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: 6 months 2 days ago #2752

I am getting this error every hour on my new two node nosan HALIZARD cluster:
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 service_execute: Returning exit status [ 0 ]
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 DRBD Running on this host: version: 8.4.10 (api:1/proto:86-101) srcversion: CE41F2FAB70AE3534BF40A6 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----- ns:32070292 nr:0 dw:27011732 dr:13114308 
 l:7301 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 validate_drbd_resources_loaded: Checking DRBD has loaded with resources. Checking [ 5 ] > [ 2 ]
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 validate_drbd_resources_loaded: Resources loaded
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha-NOTICE-/etc/iscsi-ha/init/iscsi-ha.mon: Scanning for Volume Group -> iscsi-sr: 204125aa-ad1c-d4fc-b6b2-e45573fb9706
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha-NOTICE-/etc/iscsi-ha/init/iscsi-ha.mon: Volume Group for iSCSI-SR found OK: 204125aa-ad1c-d4fc-b6b2-e45573fb9706
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 check_drbd_resource_state: DRBD Resource: iscsi1 in Primary mode
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 DRBD Resource: iscsi1 in Connected state
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 DRBD Resource: iscsi1 in [UpToDate/UpToDate] disk state
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscs-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: /etc/iscsi-ha/iscsi-ha.sh: line 233: unset: `UpToDate/UpToDate': not a valid identifier
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 service_execute: Execute [ status ] on [ tgtd ]
Sep 19 09:34:03 IT1XCP-NG-SLAVE1 iscsi-ha: 29036 service_execute: systemctl mode being used

However, if I am checking "/etc/iscsi-ha/iscsi-ha.sh: line 233:" I could not find `UpToDate/UpToDate'

any Idea how to solve this problem?

Please Log in or Create an account to join the conversation.

iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: 6 months 15 hours ago #2759

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 731
That is off. The error occurs when trying to unset the variable "D_STATE" which is definitely set since the line immediately above the error is logging out the value of D_STATE.

It could be that the parent process (iscsi-ha.mon) has lost scope into its child process.

Can you try restarting the service to see whether the error goes away?

service iscsi-ha restart

Please Log in or Create an account to join the conversation.

iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: 6 months 1 hour ago #2760

service iscsi-ha restart

No, it does not change anything. The error repeats every 10 seconds, not every hour.
On my old Xenserver 6.5 pool I see only a different error message related to ha-lizard.mon:
[root@IT1XENMASTER1 ~]# tail -f /var/log/user.log |grep ERROR
Sep 21 13:14:31 IT1XENMASTER1 ha-lizard-ERROR-/etc/ha-lizard/init/ha-lizard.mon: /etc/ha-lizard/ha-lizard.func: line 150                                                    1: / 2: syntax error: operand expected (error token is "/ 2")
Sep 21 13:19:47 IT1XENMASTER1 ha-lizard-ERROR-/etc/ha-lizard/init/ha-lizard.mon: /etc/ha-lizard/ha-lizard.func: line 150                                                    1: / 2: syntax error: operand expected (error token is "/ 2")
Sep 21 13:23:33 IT1XENMASTER1 ha-lizard-ERROR-/etc/ha-lizard/init/ha-lizard.mon: /etc/ha-lizard/ha-lizard.func: line 150                                                    1: / 2: syntax error: operand expected (error token is "/ 2")
Sep 21 13:26:04 IT1XENMASTER1 ha-lizard-ERROR-/etc/ha-lizard/init/ha-lizard.mon: /etc/ha-lizard/ha-lizard.func: line 150                                                    1: / 2: syntax error: operand expected (error token is "/ 2")

Please Log in or Create an account to join the conversation.

Last edit: by ajmind. Reason: Log added and modified text

iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: 5 months 3 weeks ago #2761

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 731
Thanks for testing. After further thought, this appears to be a bug. In the code we are unsetting the variable D_STATE incorrectly.

We should be unsetting the variable definition. Instead the code is unsetting the expanded variable which is throwing the error.

You can verify this by changing line 233 from "unset $D_STATE" to "unset D_STATE" (simply remove the $), then restart.

Once you've confirmed, I can release a new RPM. Thanks for reporting this.

Please Log in or Create an account to join the conversation.

iscsi-ha-ERROR-/etc/iscsi-ha/init/iscsi-ha.mon: 5 months 3 weeks ago #2762

I can confirm that the change work as expected:

File: c/iscsi-ha/iscsi-ha.sh: line 233:
#               unset $D_STATE bug changed on 21.09.2022 into:
                unset D_STATE

In the same file on line 213 you will find also another unset statement, which seems to be also wrong:
        unset $CONNECTION

Please Log in or Create an account to join the conversation.

  • Page:
  • 1