Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix failures for unexpected virt-host-validate qemu #1759

Closed
wants to merge 1 commit into from

Conversation

martinpitt
Copy link
Member

For a few months now, the RHEL downstream gating tests for cockpit-machines have all failed like this:

  File "/source/test/machineslib.py", line 38, in waitPageInit
    virtualization_enabled = "PASS" in self.machine.execute("virt-host-validate qemu | grep 'Checking for hardware virtualization'")
subprocess.CalledProcessError

The actual output shows

QEMU: Checking if device '/dev/kvm' exists: FAIL

and no "hardware virtualization" at all, which makes the grep fail. Treat an absent line as "fail".


This has repeatedly failed the RHEL 9 gating tests, let's finally fix this.

For a few months now, the RHEL downstream gating tests for
cockpit-machines have all failed like this:

```
  File "/source/test/machineslib.py", line 38, in waitPageInit
    virtualization_enabled = "PASS" in self.machine.execute("virt-host-validate qemu | grep 'Checking for hardware virtualization'")
subprocess.CalledProcessError
```

The actual output shows

> QEMU: Checking if device '/dev/kvm' exists: FAIL

and no "hardware virtualization" at all, which makes the grep fail.
Treat an absent line as "fail".
Copy link

We were not able to find or create Copr project packit/cockpit-project-cockpit-machines-1759 specified in the config with the following error:

Cannot create a new Copr project (owner=packit project=cockpit-project-cockpit-machines-1759 chroots=['fedora-40-x86_64', 'fedora-rawhide-x86_64', 'fedora-39-x86_64']): Copr: 'packit/cockpit-project-cockpit-machines-1759' already exists. Copr HTTP response is 400 BAD REQUEST.

Unless the HTTP status code above is >= 500, please check your configuration for:

  1. typos in owner and project name (groups need to be prefixed with @)
  2. whether the project name doesn't contain not allowed characters (only letters, digits, underscores, dashes and dots must be used)
  3. whether the project itself exists (Packit creates projects only in its own namespace)
  4. whether Packit is allowed to build in your Copr project
  5. whether your Copr project/group is not private

@martinpitt
Copy link
Member Author

I'll try a new PR, this COPR failure is annoying.

@martinpitt martinpitt closed this Aug 8, 2024
@martinpitt martinpitt deleted the kvm-check branch August 8, 2024 11:28
@martinpitt
Copy link
Member Author

#1760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant