Expose actual guest HW description in guest topology
Related to https://github.com/teemtee/tmt/issues/2402. The patch
bootstraps hardware field in the guest topology content, and populates
it it very basic content. Extending it with more info, e.g. disk or
system, will be task for future patches.
Pull Request Checklist
- [x] implement the feature
- [x] write the documentation
- [ ] extend the test coverage - filed https://github.com/teemtee/tmt/issues/2585 for more
- [x] update the specification
- [x] mention the version
- [ ] include a release note
/packit build
In tmt-test-topology-Get-guest-data-default-0.yaml, I get something like this :
guest:
name: default-0
role:
hostname: 127.0.0.1
hardware:
arch: == x86_64
memory: == 8192000 kB
disk[0].size: == 50 GB
Why == is included? Is it by design ?
In tmt-test-topology-Get-guest-data-default-0.yaml, I get something like this :
guest: name: default-0 role: hostname: 127.0.0.1 hardware: arch: == x86_64 memory: == 8192000 kB disk[0].size: == 50 GBWhy
==is included? Is it by design ?
It is included by default. The value of each requirement consists of the actual value, x86_64, and an optional operator, like = or !=. When the operator is missing, = is the default. arch: x86_64 and arch: = x86_64 are equivalent.
One thing that's wrong though, it should be =, not ==, that I need to fix.