From 668afdc37abd5d209da730e84625cd2e225864c1 Mon Sep 17 00:00:00 2001
From: Emilien Macchi <emilien@redhat.com>
Date: Thu, 6 Sep 2018 16:00:30 -0400
Subject: [PATCH] iscsi: workaround to let podman read /dev/null

We currently hit this bug: https://github.com/containers/libpod/issues/1412
In order to move forward, let's bind-mount /dev/null into the container
until the bug is fixed. Note, it doesn't hurt docker deployment as we
already mounted /dev.

Related-Bug: #1791167
Change-Id: I0e885c248bb08c04fb9b7efa9e075e692879b450
---
 docker/services/iscsid.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docker/services/iscsid.yaml b/docker/services/iscsid.yaml
index a44965b3a5..403a4338db 100644
--- a/docker/services/iscsid.yaml
+++ b/docker/services/iscsid.yaml
@@ -102,6 +102,9 @@ outputs:
                   - /sys:/sys
                   - /lib/modules:/lib/modules:ro
                   - /etc/iscsi:/var/lib/kolla/config_files/src-iscsid:ro
+                  # TODO(emilien) Workaround until this is solved:
+                  # https://github.com/containers/libpod/issues/1412
+                  - /dev/null:/dev/null
             environment:
               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
       host_prep_tasks: