Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-75768

[test_id:3126] Check the machine type directly from the VM instead of observing the domain XML

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • CNV v4.23.0
    • None
    • CNV Virtualization
    • None
    • Product / Portfolio Work
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      The machine type can be observed directly from the Fedora guest VM with dmidecode tool.

      Example:

      [root@testvmi-txhzt fedora]# dmidecode -t system | grep 440
      Version: RHEL 7.6.0 PC (i440FX + PIIX, 1996) 

      The test would need to use Fedora instead of Guestless VM, but I think it worth it.

      -                       vmi := libvmifact.NewGuestless()
      -                       vmi = libvmops.RunVMIAndExpectLaunch(vmi, libvmops.StartupTimeoutSecondsTiny)
      +                       vmi := libvmifact.NewFedora()
      +                       vmi = libvmops.RunVMIAndExpectLaunch(vmi, libvmops.StartupTimeoutSecondsMedium)
      +                       Expect(console.LoginToFedora(vmi)).To(Succeed())
       

              ibezukh Igor Bezukh
              ibezukh Igor Bezukh
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: