]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: copy systemd-device-to-id.sh on all osd nodes before running it v3.2.23
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 12 Aug 2019 08:01:43 +0000 (10:01 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 12 Aug 2019 19:57:29 +0000 (21:57 +0200)
commit81906344ee0fe7604d09a175906a79e781a45d11
treea52441c20135a8767804c027ae6ddef7ef70ddc2
parent5b29144bbd51ebd0bf3388296456abaf5651d1ab
osd: copy systemd-device-to-id.sh on all osd nodes before running it

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: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-osd/tasks/start_osds.yml