[libvirt] [jenkins-ci PATCH] guests: Force use of nodebug kernel on Rawhide

Andrea Bolognani abologna at redhat.com
Tue Apr 17 12:55:13 UTC 2018


The nodebug kernel provides much better performance than the
standard Rawhide kernel, so we want to use it; however, it can
sometimes lag behind a bit, which might cause it to be replaced
with the regular one when performing a system update.

To work around the issue, perform the update in two steps: first
with all repositories enabled but excluding the kernel packages,
then only the kernel packages but with all repositories except
fedora-rawhide-kernel-nodebug disabled.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/tasks/base.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index 616db0a..70d5abc 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -104,6 +104,24 @@
     state: latest
   when:
     - package_format == 'rpm'
+    - not ( os_name == 'Fedora' and
+            os_version == 'Rawhide' )
+
+- name: Update installed packages
+  command: dnf update --refresh --exclude 'kernel*' -y
+  args:
+    warn: no
+  when:
+    - os_name == 'Fedora'
+    - os_version == 'Rawhide'
+
+- name: Update installed packages
+  command: dnf update --disablerepo='*' --enablerepo=fedora-rawhide-kernel-nodebug 'kernel*' -y
+  args:
+    warn: no
+  when:
+    - os_name == 'Fedora'
+    - os_version == 'Rawhide'
 
 - name: Update installed packages
   apt:
-- 
2.14.3




More information about the libvir-list mailing list