Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12372

iscsi-starter.service must be disabled in EDPM node for iscsid container.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • rhos-18.0.4
    • rhos-18.0.2
    • edpm-ansible
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • No Docs Impact
    • ?
    • ?
    • None
    • Hide
      .`iscsi-starter.service` disabled on EDPM nodes after a reboot

      Before this update, the `iscsi.service` started after a reboot of EDPM nodes that run an instance with an iSCSI-backed volume, even though `iscsi.service` was not enabled in `edpm-ansible`. This issue occurred because the `iscsi-starter.service` was enabled in the EDPM node's image. With this update, the `iscsi-starter.service` is disabled on EDPM nodes to prevent the issue.
      Show
      .`iscsi-starter.service` disabled on EDPM nodes after a reboot Before this update, the `iscsi.service` started after a reboot of EDPM nodes that run an instance with an iSCSI-backed volume, even though `iscsi.service` was not enabled in `edpm-ansible`. This issue occurred because the `iscsi-starter.service` was enabled in the EDPM node's image. With this update, the `iscsi-starter.service` is disabled on EDPM nodes to prevent the issue.
    • Bug Fix
    • Done
    • Critical

      iscsi-starter.service must be disabled in EDPM node for iscsid container.

      iscsi-starter.service is installed in EDPM node's image.

      Its unit file is:

      $ cat usr/lib/systemd/system/iscsi-starter.service 
      [Unit]
      DefaultDependencies=no
      Before=sysinit.target iscsi.service
      RequiresMountsFor=/var/lib/iscsi/nodes
      ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes
      
      [Service]
      Type=oneshot
      RemainAfterExit=true
      ExecStart=/usr/bin/systemctl start --no-block --job-mode=fail iscsi.service
      
      [Install]
      WantedBy=sysinit.target
      

      And this unit is enabled. Due to that iscsi.service is started even though we disable iscsi.service in edpm-ansible.

      We have to disable iscsi-starter.service as mandatory like we do for iscsi.service.

          - name: Stop iscsi-starter.service
            ansible.builtin.systemd:
              name: iscsi-starter.service
              state: stopped
              enabled: false
            when:
              - ansible_facts.services["iscsi-starter.service"] is defined
              - ansible_facts.services["iscsi-starter.service"]["status"] != "not-found"
              - ansible_facts.services["iscsi-starter.service"]["status"] == "enabled"
      

      ref. https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/roles/edpm_iscsid/tasks/install.yml

      The issue happens after the first reboot folloing the configuration by edpm-ansible.
      This issue will happen all environments which uses iscsid container.

              rhn-support-knoha Keigo Noha
              rhn-support-knoha Keigo Noha
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: