[libvirt] [jenkins-ci PATCH] guests: Force use of nodebug kernel on Rawhide
Daniel P. Berrangé
berrange at redhat.com
Tue Apr 17 13:02:22 UTC 2018
On Tue, Apr 17, 2018 at 02:55:13PM +0200, Andrea Bolognani wrote:
> 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:
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list