ClusterLabs / ClusterLabs/resource-agents

iSCSILogicalUnit - Unable to set credential in acl for LIO-T

Open
#685 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
519
Forks
608
Avg merge
6d 1h
Merged PRs (30d)
7

Description

Actually it is not possible to set credentials for an ACL in the lio-t implementation.
Proposed solution:
ocf_run targetcli /iscsi/${OCF_RESKEY_iqn}/tpg1/acls/${initiator} set attribute userid=${userid} password=${password} || exit $OCF_ERR_GENERIC

in iSCSILogicalUnit_start() after reading ${userid} and ${password}.
This solution could be acceptable?
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate iSCSILogicalUnit_start() and inspect where userid and password are read. Review the targetcli ACL path described in the issue and verify the behavior of the proposed command for LIO-T. Done means credentials can be set for the ACL and the command returns the generic OCF error on failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
infrastructure, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.