Description of problem:
Ceph installation fails when using NVME disk
The ceph-ansible fails to find the path to the NVME partition. It does not form the NVME partition path correctly. It is missing the "p1" suffix.
failed: [osd-node-1] (item=/dev/nvme0n1) => {"changed": false, "cmd": ["ceph-disk", "activate", "/dev/nvme0n11"], "delta": "0:00:00.060679", "end": "2018-01-31 11:04:07.468680", "failed": true, "item": "/dev/nvme0n1", "msg": "non-zero return code", "rc": 1, "start": "2018-01-31 11:04:07.408001", "stderr": "ceph-disk: Error: /dev/nvme0n11 does not exist", "std
err_lines": ["ceph-disk: Error: /dev/nvme0n11 does not exist"], "stdout": "", "stdout_lines": []}
The task failing, belongs to this role: ceph-osd/tasks/activate_osds.yml.
The task name is: "- name: activate osd(s) when device is a disk"
The customer patched the installer in order to work, but It is a workaround.
This is how we changed the regexp of the Ansible task:
- name: activate osd(s) when device is a disk
#command: ceph-disk activate regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') 1
command: ceph-disk activate " item p1"
with_items:
- "unique "
changed_when: false
register: activate_osd_disk
when:
- not osd_auto_discovery
- not dmcrypt
Version-Release number of selected component (if applicable):
Red Hat Ceph Storage 3.0
How reproducible:
Always at the customer site.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:2375
Description of problem: Ceph installation fails when using NVME disk The ceph-ansible fails to find the path to the NVME partition. It does not form the NVME partition path correctly. It is missing the "p1" suffix. failed: [osd-node-1] (item=/dev/nvme0n1) => {"changed": false, "cmd": ["ceph-disk", "activate", "/dev/nvme0n11"], "delta": "0:00:00.060679", "end": "2018-01-31 11:04:07.468680", "failed": true, "item": "/dev/nvme0n1", "msg": "non-zero return code", "rc": 1, "start": "2018-01-31 11:04:07.408001", "stderr": "ceph-disk: Error: /dev/nvme0n11 does not exist", "std err_lines": ["ceph-disk: Error: /dev/nvme0n11 does not exist"], "stdout": "", "stdout_lines": []} The task failing, belongs to this role: ceph-osd/tasks/activate_osds.yml. The task name is: "- name: activate osd(s) when device is a disk" The customer patched the installer in order to work, but It is a workaround. This is how we changed the regexp of the Ansible task: - name: activate osd(s) when device is a disk #command: ceph-disk activate regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') 1 command: ceph-disk activate " item p1" with_items: - "unique " changed_when: false register: activate_osd_disk when: - not osd_auto_discovery - not dmcrypt Version-Release number of selected component (if applicable): Red Hat Ceph Storage 3.0 How reproducible: Always at the customer site.