From nobody Fri Nov 1 04:29:17 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1647931954; cv=none; d=zohomail.com; s=zohoarc; b=AN50T7TeHYO3IfLy6dutENkzWQAl0zSno087j7gLiai51uF+mXTZWUJYX2OI36E79RoRCJH5B0KAzB4OxkvcY2LfEcDLnu+MCMgZdFhWr7D+C0ihHA3JgoxnnUBtZ4sVyn7lRV3jrQHh2SGeTpOW+G0jjPRx5Reb9Lzc2MglMgU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1647931954; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=E72xzlBlVEQL1jVXvBL1AmuYertVbqnFDmplEMlIxBQ=; b=SQhw3jtiMEd/OBuJZVwxG/UHbGXi2TkMsYkvuhv+epaBPnGDmqg8j6iO6RDHH0ADsinnaBtpz2C5tZ/5rtM8ZA/QHPCHFJTyNbabET+va4WDHW843H7+oVsmywzzTOe+9q/0gEH+ESw+qSEOLGD/Xvh5Z3sBJOCPMV6NeKoWqX8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1647931954539281.70599023511056; Mon, 21 Mar 2022 23:52:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-393-mKyEsVs4NgqVyyBmmw7rjw-1; Tue, 22 Mar 2022 02:52:30 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D1A473800E9F; Tue, 22 Mar 2022 06:52:27 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D57F640E80E8; Tue, 22 Mar 2022 06:52:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3CF951940345; Tue, 22 Mar 2022 06:52:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D47861940350 for ; Tue, 22 Mar 2022 06:52:23 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C65D0C26E9B; Tue, 22 Mar 2022 06:52:23 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.192.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 49C5CC26E9A; Tue, 22 Mar 2022 06:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647931953; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=E72xzlBlVEQL1jVXvBL1AmuYertVbqnFDmplEMlIxBQ=; b=Dkp0ef5gXw70URgiygavb9uJeW5nlmpF5hsLlh6hEca9breX8G8xOrci7dQ4LlzlzdAd9v Yav63VPGi1Fx3vWwvOtyOI/lTE7Ibw6kXVD54OYfUXUezUm9iivBOQYwLZ7jm2SPLowmDf 8BJCeq792r3cotHgAGQNpP82+kzNXVc= X-MC-Unique: mKyEsVs4NgqVyyBmmw7rjw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 2/2] ci: integration: Collect stack traces with coredumpctl Date: Tue, 22 Mar 2022 07:52:21 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eskultet@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1647931955683100001 Content-Type: text/plain; charset="utf-8" Some Red Hat-like distros have cores limited with a soft limit of 0 which means that neither a stack trace nor a core file will be available. Since we want the stack trace we need to set the core limit with systemd globally to unlimited/infinity. Signed-off-by: Erik Skultety --- ci/integration.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/integration.yml b/ci/integration.yml index 9726f00bff..b2932f2f39 100644 --- a/ci/integration.yml +++ b/ci/integration.yml @@ -2,6 +2,8 @@ stage: integration_tests before_script: - mkdir "$SCRATCH_DIR" + - sudo sh -c "echo DefaultLimitCORE=3Dinfinity >> /etc/systemd/system.= conf" # Explicitly allow storing cores globally + - sudo systemctl daemon-reexec # need to reexec systemd after changing= config - sudo dnf install -y libvirt-rpms/* libvirt-perl-rpms/* - sudo pip3 install --prefix=3D/usr avocado-framework - source /etc/os-release # in order to query the vendor-provided vari= ables @@ -31,6 +33,7 @@ after_script: - test "$CI_JOB_STATUS" =3D "success" && exit 0; - test -e "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/lat= est/test-results logs/avocado; + - sudo coredumpctl info --no-pager > logs/coredumpctl.info - sudo mv /var/log/libvirt logs/libvirt - sudo chown -R $(whoami):$(whoami) logs variables: --=20 2.34.1