Skip to content

Commit 5c7e56b

Browse files
authored
Merge pull request #770 from stackhpc/fix-growroot
Fix Growroot Playbook
2 parents da7e837 + 3e25167 commit 5c7e56b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

etc/kayobe/ansible/growroot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
vars:
7878
pv: "{{ pvs.stdout | from_json }}"
7979
disk_tmp: "{{ pv.report[0].pv[0].pv_name[:-1] }}"
80-
disk: "{{ disk_tmp[:-1] if disk_tmp[-1] == 'p' else disk_tmp }}"
80+
disk: "{{ disk_tmp[:-1] if disk_tmp[-1] == 'p' and disk_tmp[:4] == 'nvme' else disk_tmp }}"
8181
part_num: "{{ pv.report[0].pv[0].pv_name[-1] }}"
8282
become: true
8383
failed_when: "growpart.rc != 0 and 'NOCHANGE' not in growpart.stdout"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue with the growroot playbook where disks such as 'sdp' would
5+
become 'sd' due to the removal of the trailing 'p' when dealing with nvme
6+
devices.

0 commit comments

Comments
 (0)