inconsistency of 'open-iscsi' service betwenn trusty and xenial

Asked by Edward Xiao

1. these commands worked well with open-iscsi on ubuntu-trusty:

/:/etc/init# /etc/init.d/open-iscsi restart
/:/etc/init# iscsiadm -m discovery -t sendtargets -p {portal_ip}

2. But when I failed to re-run these commands on ubuntu-xenial:

/:/etc/init# iscsiadm -m discovery -t sendtargets -p {portal_ip}
iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to {portal_ip} rejected: initiator failed authorization

iscsiadm: Could not perform SendTargets discovery: iSCSI login failed due to authorization failure
/:/etc/init# /etc/init.d/open-iscsi restart
[ ok ] Restarting open-iscsi (via systemctl): open-iscsi.service.
/:/etc/init# iscsiadm -m discovery -t sendtargets -p {portal_ip}
iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to {portal_ip} rejected: initiator failed authorization

iscsiadm: Could not perform SendTargets discovery: iSCSI login failed due to authorization failure
/:/etc/init# iscsiadm -m discovery -t sendtargets -p {portal_ip}
iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to {portal_ip} rejected: initiator failed authorization

iscsiadm: Could not perform SendTargets discovery: iSCSI login failed due to authorization failure

3. So I try to use "service" to restart "iscsid" on xenial and it was worked.

/:/etc/init# service iscsid restart
/:/etc/init# iscsiadm -m discovery -t sendtargets -p {portal_ip}
{portal_ip}:3260,1041 iqn.1992-08.com.netapp:stflon0201
{portal_ip}:3260,1042 iqn.1992-08.com.netapp:stflon0201

Conclusion:
And open-iscsi is installed by "apt-get" and I knew these was twoo packages on different distrs. And trusty didn't have "iscsid" service. Did I miss anything? What is a compatible way to setup iscsi disks?

I found these are two services: open-iscsi and iscsid

On trusty, open-iscsi is 'Starts and stops the iSCSI initiator services and logs into default targets'. But open-iscsi is 'Login to default iSCSI targets at boot and log out of all iSCSI targets at shutdown' on xenial. However, iscsid is 'The iSCSI initiator daemon takes care of monitoring iSCSI connections to targets. It is also the daemon providing the interface for the iscisadm tool to talk to when administering iSCSI connections.' on xenial.

Could we set same service name to maintain open-iscsi functionality?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu open-iscsi Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask Edward Xiao for more information if necessary.

To post a message you must log in.