85 Commits

Author SHA1 Message Date
openeuler-ci-bot
f75c64db22
!139 update open-iscsi.spec
From: @cossbow 
Reviewed-by: @volcanodragon 
Signed-off-by: @swf504
2024-02-21 09:48:40 +00:00
zhuchunyi
56143befd3 update sub version for modify .spec info
Last commit modify info but ver no not changed, this commit just
change version for update.
2024-02-21 14:27:41 +08:00
openeuler-ci-bot
978da269ab
!130 update open-iscsi.spec
From: @cossbow 
Reviewed-by: @wenchao-hao, @swf504 
Signed-off-by: @swf504
2024-02-19 06:10:48 +00:00
SuperSix173
57c8b69a53 update open-iscsi.spec
correct the spell error.
2024-02-02 14:51:06 +08:00
openeuler-ci-bot
2aa4815ed6
!124 iscsid: fixformatoverflowwarning.
From: @louhongxiang 
Reviewed-by: @wubo009 
Signed-off-by: @liuzhiqiang26
2023-06-25 06:44:00 +00:00
louhongxiang
e12b72440b iscsid: fixformatoverflowwarning.
This function can be called with NULL arguments, so check that before
passing to log_error.
2023-06-25 14:18:05 +08:00
openeuler-ci-bot
d5290666f9
!120 iscsid: stop connection for recovery if error is not timeout in iscsi_login_eh
From: @wenchao-hao 
Reviewed-by: @wubo009 
Signed-off-by: @wubo009
2023-01-17 09:33:38 +00:00
Wenchao Hao
021ba3614f iscsid: stop connection for recovery if error is not timeout in iscsi_login_eh
When iscsid is reopening a connection, and the reopen process has succeed
to call bind_conn and comes to iscsi_session_set_params() to set
parameters. If the iscsi target trigger another error event(such as
close the socket connection between initiator and target) at this time,
kernel would perform the error handler and set connection's state to
ISCSI_CONN_FAILED, and set kernel iscsi_cls_conn->flags'
ISCSI_CLS_CONN_BIT_CLEANUP bit. Which would make iscsid's
iscsi_session_set_params() failed with ENOTCONN, so iscsi_login_eh()
would be called by iscsid to handle this error.

Now iscsid see conn->state is ISCSI_CONN_STATE_XPT_WAIT and
session->r_stage is R_STAGE_SESSION_REOPEN, so it would call
session_conn_reopen() with do_stop set to 0, which would not trigger
kernel to call iscsi_if_stop_conn() to clear kernel data struct
iscsi_cls_conn->flags' ISCSI_CLS_CONN_BIT_CLEANUP bit.

The reopen would fall into an infinite cycle which looks like
following:

iscsi_conn_connect -> bind_conn(failed with ENOTCONN)

         ^                     |
         |                     |
         |                     v

    session_conn_reopwn(with do_stop set to 0)

The phenomenon is iscsid would always report log "can't bind conn x:0
to session x, retcode -107 (115)" and the session would not recovery.

Fix this issue by checking error type in iscsi_login_eh(), if the error
type is not timeout, make sure we would call session_conn_reopen() with
do_stop set to STOP_CONN_RECOVER.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2023-01-17 17:28:21 +08:00
openeuler-ci-bot
3d3a92976e
!116 iscsid: clear scanning thread's PR_SET_IO_FLUSHER flag
From: @wenchao-hao 
Reviewed-by: @wubo009 
Signed-off-by: @wubo009
2023-01-17 09:07:56 +00:00
Wenchao Hao
a9eca8e602 iscsid: clear scanning thread's PR_SET_IO_FLUSHER flag
commit 72949ef (iscsid: set PR_SET_IO_FLUSHER) set the iscsid's
PR_SET_IO_FLUSHER flag to avoid deadlock. While we do not need
to set this flag when scanning host.

If this flag is set for scanning thread, we may lost devices
reported by target because of memory allocation failure.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2023-01-17 17:05:00 +08:00
openeuler-ci-bot
74d43410e9
!110 Backport patches from mainline
From: @wenchao-hao 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-12-02 08:47:23 +00:00
Wenchao Hao
c3202a63a1 Backport bugfix patches from mainline
Reference:https://github.com/open-iscsi/open-iscsi/commit/fd0b3973
          https://github.com/open-iscsi/open-iscsi/commit/8c6d7bc2

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-12-02 10:51:53 +08:00
openeuler-ci-bot
f0ad801221
!100 Substitute self-developed patch with mainline patch
From: @wenchao-hao 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-09-27 11:40:40 +00:00
Wenchao Hao
ab5ffaf7d0 Substitute self-developed patch with mainline patch
Substitute self-developed patch with mainline patch to fix
nr_sessions do not work during iscsid restart.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-09-27 14:40:50 +08:00
openeuler-ci-bot
5e9487f719
!97 Remove unused fwparam_ibft.[ch] files in fwparam_ibft.
From: @wenchao-hao 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-06-23 11:29:04 +00:00
Wenchao Hao
a02307caf8 Remove unused fwparam_ibft.[ch] files in fwparam_ibft.
These files are apparently unused, so remove them.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-06-23 19:10:46 +08:00
openeuler-ci-bot
a6df9170e0
!95 [sync] PR-94: 高版本补丁分析合入
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-02-20 10:03:21 +00:00
Wu Bo
d53ca47385 Backport bugfix patches
Following patches are added:

0017-iscsi-sysfs-check-state-before-onlining-devs.patch
0018-iscsiadm-Call-log_init-first-to-fix-a-segmentation-f.patch
0019-Fix-issues-discovered-by-gcc12.patch
0020-Fix-more-issues-discovered-by-gcc12.patch
0021-actor-enhanced-print-error-log-when-init-a-initilize.patch
0022-initiator_common-make-set-operational-parameter-log-.patch

Signed-off-by: Wu Bo <wubo40@huawei.com>
(cherry picked from commit 36cc8318bb8cb23d09d8a68795f1e97ea0268ffc)
2022-02-18 15:19:00 +08:00
openeuler-ci-bot
720db26e2f
!90 Remove useless patch
Merge pull request !90 from Wenchao Hao/master
2022-02-09 07:17:33 +00:00
Wenchao Hao
03045f674c Remove useless patch
remove patch 0009-fix-iscsiadm-op-new-report-to-cannot-rename-error.patch

This patch get iscsid's pid from pidfile /var/run/iscsid.pid, and judge
if iscsid is alive according to that pid. While now iscsid.service would
not hold a pidfile, so this patch can not work as desired.

What's more, iscsiadm would try to connect to iscsid before send request
to iscsid, if iscsid is not alive, the connection would failed and
return error.

At wrost, if iscsid died after connect success, it would timeout after
1 second. And the patch
0009-fix-iscsiadm-op-new-report-to-cannot-rename-error.patch can not fix
this too.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-02-08 19:42:25 +08:00
openeuler-ci-bot
82e5df95c4
!87 Remove iscsi-init.service from iscsi and iscsid service file
Merge pull request !87 from Wenchao Hao/master
2022-02-08 11:12:06 +00:00
Wenchao Hao
10f483e312 Remove iscsi-init.service from iscsi and iscsid service file
iscsi-init.service is aimed to generate initiatorname.iscsi,
this name would be generated by spec file in openeulr, so we
excluded the iscsi-init.service.

This commit remove requires of iscsi-init in iscsi.service

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-02-08 18:43:35 +08:00
openeuler-ci-bot
2371290404
!84 Remove unnecessary tool iscsiuio
Merge pull request !84 from Wenchao Hao/master
2022-02-08 10:03:18 +00:00
Wenchao Hao
6648d72aeb Remove unnecessary tool iscsiuio
iscsiuio is used in conjunction with specific linux driver to
improve performance, such as QLogic NetXtreme II or QLogic CNIC driver.
It is not a necessary tool of open-iscsi.

What's more, iscsiuio used a package uio which is out of maintain now,
which would introduce CVEs unhandled. So I want to remove this tool
from open-iscsi.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-01-27 10:14:19 +08:00
openeuler-ci-bot
01d29f2384
!78 Remove password printing in session info display
Merge pull request !78 from Wenchao Hao/master
2022-01-26 02:05:33 +00:00
Wenchao Hao
b366eabcb3 Remove password printing in session info display
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2022-01-25 20:10:34 +08:00
openeuler-ci-bot
2dad512dde !76 Remove iscsid's dependence of iscsi-init.service
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-12-06 09:04:32 +00:00
Wenchao Hao
a68435f388 Remove iscsid.service of iscsi-init.service
iscsi-init.service is aimed to generate initiatorname.iscsi,
this name would be generated by spec file in openeulr, so we
excluded the iscsi-init.service.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-12-06 10:24:14 +08:00
openeuler-ci-bot
cc5e6b6d2a !74 Update to open-iscsi-2.1.5
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-11-23 11:21:02 +00:00
Wenchao Hao
55a4432e49 iscsi: Update open-iscsi version to 2.1.5-1
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-11-22 10:37:37 +08:00
openeuler-ci-bot
f858808ae4 !67 Update URL
From: @wenchao-hao
Reviewed-by: @wubo009
Signed-off-by: @wubo009
2021-10-21 03:25:12 +00:00
Wenchao Hao
f37e40e060 Update URL
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-10-21 10:53:57 +08:00
openeuler-ci-bot
758b44d104 !66 remove unnecessary build require.
From: @zhouwenpei
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-07-23 09:28:57 +00:00
zhouwenpei
2788800e58 remove unnecessary build require. 2021-07-23 16:12:34 +08:00
openeuler-ci-bot
86e273ba98 !52 Fix file residual files after open-iscsi removed
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-04-15 16:17:19 +08:00
Wenchao Hao
7d71425ccb Fix file residual files after open-iscsi removed
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-04-08 17:01:50 +08:00
openeuler-ci-bot
dfe445f128 !50 Fix iscsiadm segfault when exiting
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-03-02 14:03:56 +08:00
Wenchao Hao
80ff3ed667 Fix iscsiadm segfault when exiting
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-03-01 11:20:39 +08:00
openeuler-ci-bot
9449040514 !49 Fix iscsiadm op new report to can not rename error
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26,@wubo009
Signed-off-by: @wubo009
2021-02-24 15:45:00 +08:00
Wenchao Hao
177f8ee7e0 Fix iscsiadm op new report to can not rename error
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-02-22 22:43:21 +08:00
openeuler-ci-bot
67d2780d91 !39 Update open-iscsi version to 2.1.3-1
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26
Signed-off-by: @volcanodragon
2021-01-30 14:09:34 +08:00
Wenchao Hao
873d6590de iscsi: Update open-iscsi version to 2.1.3-1
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2021-01-29 16:15:36 +08:00
openeuler-ci-bot
8859ea24ff !34 iscsid: Change iscsid service PIDFile to /run/iscsid.ipd
From: @wenchao-hao
Reviewed-by: @wubo009
Signed-off-by: @liuzhiqiang26
2020-12-12 17:38:36 +08:00
Wenchao Hao
c30f286c34 iscsid: Change iscsid service PIDFile to /run/iscsid.ipd
The pid file has be changed from /var/run/iscsid.pid to
/run/iscsid.pid in code, here perform a sync.

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2020-12-12 17:16:06 +08:00
openeuler-ci-bot
032598196b !33 高版本补丁合入-epoch2
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26,@wubo009
Signed-off-by: @wubo009
2020-11-23 09:34:20 +08:00
Wenchao Hao
c9c0567638 Remove patched which should not apply
0027-use-openssl-for-random-data-generation.patch and
0028-drop-unused-get_random_bytes.patch can be considered as
feature patches which should not apply

0029-Preparing-for-version-2.1.2.patch should keepace with tar package

Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2020-11-20 16:29:02 +08:00
Wenchao Hao
e04742a163 backport patches from epoch2
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
2020-11-12 17:28:13 +08:00
openeuler-ci-bot
275d7b2a47 !29 高版本补丁合入-epoch1
From: @wenchao-hao
Reviewed-by: @liuzhiqiang26,@wubo009
Signed-off-by: @wubo009
2020-11-06 18:10:08 +08:00
wenchao-hao
862d109cb4 backport patches from epoch1 2020-10-31 17:29:53 +08:00
openeuler-ci-bot
f9fb9c33bd !27 backport patch for solving install problem
Merge pull request !27 from wguanghao/develop
2020-09-01 22:09:59 +08:00