tmt icon indicating copy to clipboard operation
tmt copied to clipboard

Expose actual guest HW description in guest topology

Open happz opened this issue 2 years ago • 3 comments

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

happz avatar Dec 31 '23 20:12 happz

/packit build

happz avatar Jan 02 '24 10:01 happz

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 ?

qcheng-redhat avatar May 30 '24 06:05 qcheng-redhat

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 ?

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.

happz avatar May 30 '24 07:05 happz