• Guillaume Abrioux's avatar
    osd: copy systemd-device-to-id.sh on all osd nodes before running it · 81906344
    Guillaume Abrioux authored
    Otherwise it will fail when running rolling_update.yml playbook because
    of `serial: 1` usage.
    The task which copies the script is run against the current node being
    played only whereas the task which runs the script is run against all
    nodes in a loop, it ends up with the typical error:
    
    ```
    2019-08-08 17:47:05,115 p=14905 u=ubuntu |  failed: [magna023 -> magna030] (item=magna030) => {
        "changed": true,
        "cmd": [
            "/usr/bin/env",
            "bash",
            "/tmp/systemd-device-to-id.sh"
        ],
        "delta": "0:00:00.004339",
        "end": "2019-08-08 17:46:59.059670",
        "invocation": {
            "module_args": {
                "_raw_params": "/usr/bin/env bash /tmp/systemd-device-to-id.sh",
                "_uses_shell": false,
                "argv": null,
                "chdir": null,
                "creates": null,
                "executable": null,
                "removes": null,
                "stdin": null,
                "warn": true
            }
        },
        "item": "magna030",
        "msg": "non-zero return code",
        "rc": 127,
        "start": "2019-08-08 17:46:59.055331",
        "stderr": "bash: /tmp/systemd-device-to-id.sh: No such file or directory",
        "stderr_lines": [
            "bash: /tmp/systemd-device-to-id.sh: No such file or directory"
        ],
        "stdout": "",
        "stdout_lines": []
    }
    ```
    
    Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1739209
    
    Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
    81906344