<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34419</bug_id>
          
          <creation_ts>2018-01-03 17:48:53 +0300</creation_ts>
          <short_desc>Не выполняется вход (login) в target при запуске службы через systemd</short_desc>
          <delta_ts>2024-10-20 11:54:58 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>open-iscsi</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitriy Shadrinov">shadrinov</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>evg</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>168310</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitriy Shadrinov">shadrinov</who>
    <bug_when>2018-01-03 17:48:53 +0300</bug_when>
    <thetext>Предлагаю добавить в unit-файл /lib/systemd/system/iscsid.service строку
ExecStartPost=/sbin/iscsiadm -m node --loginall=automatic

[Service]
Type=forking
PIDFile=/var/run/iscsid.pid
ExecStart=/sbin/iscsid
+ExecStartPost=/sbin/iscsiadm -m node --loginall=automatic
ExecStop=/sbin/iscsiadm -k 0 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178505</commentid>
    <comment_count>1</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2019-02-13 07:47:22 +0300</bug_when>
    <thetext>ping?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178513</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitriy Shadrinov">shadrinov</who>
    <bug_when>2019-02-13 11:39:29 +0300</bug_when>
    <thetext>Все ещё актуально</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178540</commentid>
    <comment_count>3</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2019-02-13 21:09:42 +0300</bug_when>
    <thetext>У меня такое добавление &quot;в лоб&quot; не позволило iscsid.service запуститься. Как я понял, потому что IP поднимается NetworkManager-ом только после логина живого человека.

Вообще, в соседних дистрах логин в таргеты кладу в отедельный iscsi.service примерно такого содержания:
=8&lt;============================================================
[Unit]
Description=Login and scanning of iSCSI devices
Documentation=man:iscsiadm(8) man:iscsid(8)
Before=remote-fs.target
After=network.target network-online.target iscsid.service
ConditionPathExists=/etc/iscsi/initiatorname.iscsi

[Service]
Type=oneshot
ExecStart=-/sbin/iscsiadm -m node --loginall=automatic
ExecStop=/sbin/iscsiadm -m node --logoutall=automatic
ExecStop=/sbin/iscsiadm -m node --logoutall=manual
SuccessExitStatus=21
RemainAfterExit=true

[Install]
WantedBy=remote-fs.target
=8&lt;============================================================

попробую с ним.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253212</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2024-10-20 11:54:58 +0300</bug_when>
    <thetext>в iscsid.service стартует демон.
в iscsi.service - &quot;iscsiadm -m node --loginall=automatic -W&quot;
Все есть в пакете.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>