Fix kolla-ceph tests
The journal label should be generated using the OSD device path, not the journal's.
This commit is contained in:
parent
1999110bbc
commit
8cfcb3f404
@ -42,7 +42,7 @@
|
||||
state: present
|
||||
vars:
|
||||
part_label: "KOLLA_CEPH_OSD_BOOTSTRAP_{{ (osd_id | hash('md5'))[:9] }}_J"
|
||||
osd_id: "{{ journal_tempfile.path | basename }}{{ ansible_hostname }}"
|
||||
osd_id: "{{ osd_tempfile.path | basename }}{{ ansible_hostname }}"
|
||||
|
||||
- block:
|
||||
- name: Import parted role
|
||||
@ -99,7 +99,7 @@
|
||||
Name of journal partition is not correct. Expected {{ expected }},
|
||||
actual {{ disk_journal_info.partitions.0.name }}.
|
||||
vars:
|
||||
expected: "{{ 'KOLLA_CEPH_OSD_BOOTSTRAP_' ~ (( journal_tempfile.path | basename ~ ansible_hostname) | hash('md5'))[:9] ~ '_J' }}"
|
||||
expected: "{{ 'KOLLA_CEPH_OSD_BOOTSTRAP_' ~ (( osd_tempfile.path | basename ~ ansible_hostname) | hash('md5'))[:9] ~ '_J' }}"
|
||||
|
||||
always:
|
||||
- name: Remove the fake OSD file
|
||||
|
@ -41,7 +41,7 @@
|
||||
state: present
|
||||
vars:
|
||||
part_label: "KOLLA_CEPH_DATA_{{ (osd_id | hash('md5'))[:9] }}_J"
|
||||
osd_id: "{{ (journal_tempfile.path | basename ~ ansible_hostname) }}"
|
||||
osd_id: "{{ (osd_tempfile.path | basename ~ ansible_hostname) }}"
|
||||
|
||||
- block:
|
||||
- name: Import parted role
|
||||
@ -98,7 +98,7 @@
|
||||
Name of journal partition is not correct. Expected {{ expected }},
|
||||
actual {{ disk_journal_info.partitions.0.name }}.
|
||||
vars:
|
||||
expected: "{{ 'KOLLA_CEPH_DATA_' ~ ((journal_tempfile.path | basename ~ ansible_hostname)| hash('md5'))[:9] ~ '_J' }}"
|
||||
expected: "{{ 'KOLLA_CEPH_DATA_' ~ ((osd_tempfile.path | basename ~ ansible_hostname)| hash('md5'))[:9] ~ '_J' }}"
|
||||
|
||||
always:
|
||||
- name: Remove the fake OSD file
|
||||
|
@ -74,7 +74,7 @@
|
||||
Name of journal partition is not correct. Expected {{ expected }},
|
||||
actual {{ disk_journal_info.partitions.0.name }}.
|
||||
vars:
|
||||
expected: "{{ 'KOLLA_CEPH_OSD_BOOTSTRAP_' ~ ((journal_tempfile.path | basename ~ ansible_hostname)| hash('md5'))[:9] ~ '_J' }}"
|
||||
expected: "{{ 'KOLLA_CEPH_OSD_BOOTSTRAP_' ~ ((osd_tempfile.path | basename ~ ansible_hostname)| hash('md5'))[:9] ~ '_J' }}"
|
||||
|
||||
always:
|
||||
- name: Remove the fake OSD file
|
||||
|
Loading…
Reference in New Issue
Block a user