tripleo-validations/validations/512e.yaml

22 lines
645 B
YAML

---
- hosts: undercloud
vars:
metadata:
name: Advanced Format 512e Support
description: >
Detect whether the undercloud disks use Advanced Format. If they do,
the overcloud images may fail to upload to Glance.
groups:
- prep
- pre-deployment
tasks:
- include_tasks: tasks/deprecation.yaml
- name: List the available drives
register: drive_list
command: "ls /sys/class/block/"
changed_when: False
- name: Detect whether the drive uses Advanced Format
advanced_format: drive={{ item }}
when: item is match("^sd.$")
with_items: "{{ drive_list.stdout_lines }}"