tmt
tmt copied to clipboard
How could we provision a server with nvme disk
I tried this way, but it seems it did not work.
$ TMT_SHOW_TRACEBACK=full tmt run --until provision -a provision -h beaker -i RHEL-10.1-updates-20250507.3 --hardware 'disk[1].driver=nvme' -dddvvv
/var/tmp/tmt/run-030
/plans/examples/example-plan
Workdir '/var/tmp/tmt/run-030/plans/examples/example-plan/provision' created.
Read file '/var/tmp/tmt/run-030/plans/examples/example-plan/provision/step.yaml'.
Step data not found.
Read file '/var/tmp/tmt/run-030/plans/examples/example-plan/provision/guests.yaml'.
Provisioned guests not found.
ProvisionPlugin.delegate(step=provision, data=None, raw_data={'name': 'default-0', 'how': 'beaker', 'image': 'RHEL-10.1-updates-20250507.3', 'hardware': ('disk[1].driver=nvme',), 'debug': 3, 'verbose': 3})
Using the 'ProvisionBeaker' plugin for the 'beaker' method.
ProvisionPlugin.delegate(step=provision, data=ProvisionBeakerData(name='default-0', how='beaker', order=50, when=[], summary=None, role=None, hardware=Hardware(constraint=And(), spec={'disk': [{}, {'driver': '= nvme'}]}), _OPTIONLESS_FIELDS=('primary_address', 'topology_address', 'facts'), primary_address=None, topology_address=None, become=False, facts=GuestFacts(in_sync=False, arch=None, distro=None, kernel_release=None, package_manager=None, has_selinux=None, has_systemd=None, is_superuser=None, is_ostree=None, is_toolbox=None, toolbox_container_name=None, is_container=None, capabilities={}, os_release_content={}, lsb_release_content={}), port=None, user='root', key=[], password=None, ssh_option=[], whiteboard=None, arch='x86_64', image='RHEL-10.1-updates-20250507.3', job_id=None, provision_timeout=3600, provision_tick=60, api_session_refresh_tick=3600, kickstart={}, beaker_job_owner=None, public_key=[], beaker_job_group=None), raw_data=None)
Using the 'ProvisionBeaker' plugin for the 'beaker' method.
status: todo
Write file '/var/tmp/tmt/run-030/plans/examples/example-plan/provision/step.yaml'.
Write file '/var/tmp/tmt/run-030/plans/examples/example-plan/provision/guests.yaml'.
discover
how: fmf
directory: /home/zguo/latest-sts-upstream/sts
filter: tag:example
summary: 1 test selected
provision
workdir: /var/tmp/tmt/run-030/plans/examples/example-plan/provision
queued provision.provision task #1: default-0
provision.provision task #1: default-0
how: beaker
order: 50
hardware:
disk:
- {}
- driver: = nvme
image: RHEL-10.1-updates-20250507.3
Config path '/hardware' not found in '/home/zguo/.config/tmt'.
Transformed hardware:
and:
- and: []
- key_value:
_key: BOOTDISK
_op: ==
_value: nvme
whiteboard: tmt-030-XBzygsfE
guest: has been requested
Interrupt not detected, leaving safe block.
job id: J:11034423
wait: waiting for condition 'get_new_state' with timeout 1:00:00, deadline in 3600.0 seconds, checking every 60.00 seconds
status: New wait: 'get_new_state' still pending, 3598.42 seconds left, current tick 60.00 seconds
It finally reserved a system without nvme device.
Currently the following disk properties are defined in the specification:
- https://tmt.readthedocs.io/en/stable/spec/hardware.html#disk
Seems like searching for nvme needs to be added. How does the corresponding Beaker xml look like? @guoguojenna, do you have an example Beaker job?
Currently the following
diskproperties are defined in the specification:* https://tmt.readthedocs.io/en/stable/spec/hardware.html#diskSeems like searching for
nvmeneeds to be added. How does the corresponding Beaker xml look like? @guoguojenna, do you have an example Beaker job?
Trying to get such a beaker xml.