Created attachment 606463 [details] vdsm logs Description of problem: When requesting discoverSendTargets, vdsm performs /usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets -I default -p 10.35.16.27:3260 -n node.startup -v manual --op=update this fails every time with: FAILED: <err> = 'iscsiadm: Cannot modify node.startup. Invalid param name.\n'; <rc> = 7 This does not interrupt the process, and it continues on to discover. manually running the command also produces the same result: [root@cougar04 ~]# /usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets -I default -p 10.35.16.27:3260 --op=new New discovery record for [10.35.16.27,3260] added. [root@cougar04 ~]# /usr/bin/sudo -n /sbin/iscsiadm -m discoverydb -t sendtargets -I default -p 10.35.16.27:3260 -n node.startup -v manual --op=update iscsiadm: Cannot modify node.startup. Invalid param name. [root@cougar04 ~]# echo $? 7 [root@cougar04 ~]# ls -ltr /var/lib/iscsi/nodes/ total 12 drw-------. 2 root root 4096 Aug 21 14:00 iqn.2008-05.com.xtremio:001b21b545c0 drw-------. 2 root root 4096 Aug 22 14:38 iqn.1986-03.com.sun:02:gadi-rhevm2012081395810878617 drw-------. 2 root root 4096 Aug 22 14:41 iqn.1986-03.com.sun:02:gadi-rhevm201208139582110787 contents of /var/lib/iscsi/send_targets: [root@cougar04 10.35.16.27,3260]# for i in `ls /var/lib/iscsi/send_targets/`; do cat /var/lib/iscsi/send_targets/$i/*; done # BEGIN RECORD 2.0-872.41.el6 discovery.startup = manual discovery.type = sendtargets discovery.sendtargets.address = 10.35.16.27 discovery.sendtargets.port = 3260 discovery.sendtargets.auth.authmethod = None discovery.sendtargets.timeo.login_timeout = 15 discovery.sendtargets.use_discoveryd = No discovery.sendtargets.discoveryd_poll_inval = 30 discovery.sendtargets.reopen_max = 5 discovery.sendtargets.timeo.auth_timeout = 45 discovery.sendtargets.timeo.active_timeout = 30 discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768 # END RECORD Version-Release number of selected component (if applicable): vdsm-4.9.6-29.0.el6_3.x86_64 How reproducible: 100% Steps to Reproduce: 1. Perform discoverSendTargets on a host. check logs
This is mostly a logging issue as we ignore the error and the default value is manual anyway, but fix seems very simple. Need to change iscsi.py line 158 to: iscsiadm.node_update(iface.name, portalStr, targetName, "node.startup", "manual")
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
The problem is still present in vdsm-4.10.2-22.0.el6ev.x86_64 , RHEL 6.4 hypervisor with latest updates (2013-06-13).
Iscsiadm operational mode must be 'node' while updating 'node.startup' setting and not 'discoverydb' as it is today.