Skip to content

Commit

Permalink
Define "block-device" key for guest topology HW exposition
Browse files Browse the repository at this point in the history
Adds a new key, `block-device`, that guest topology may use to inform
tests about which disk matches requested by HW requirements.

Related to #2402
  • Loading branch information
happz committed May 21, 2024
1 parent b782a60 commit 0ced792
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/hardware/disk.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ description: |
# String, disk driver requested.
- driver: "well-known disk driver"

The :ref:`/spec/plans/guest-topology` may include the following
fields in its description of the actual guest hardware:

.. code-block::

# String, path to the block device representing this disk.
block-device: "/dev/vda"

.. versionchanged:: 1.32
Added `driver` and `model-name` into specification.

.. versionchanged:: 1.33
Added ``block-device`` into specification.

example:
- |
# Require a disk big enough for testing
Expand All @@ -42,6 +53,19 @@ example:
- model-name: 'PERC H310'
- driver: '~ sas.*'

- |
# Guest topology exposing details about the actual disks
disk:
- size: 21474836480
model-name: PERC H310
driver: megaraid_sas
block-device: /dev/sda

- size: 21474836480
model-name: PERC H310
driver: megaraid_sas
block-device: /dev/sdb

link:
- implemented-by: /tmt/steps/provision/artemis.py
note: "``size`` only"
Expand Down

0 comments on commit 0ced792

Please sign in to comment.