From patchwork Wed Dec 18 10:29:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13913365 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92F9E1A23B7 for ; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734517812; cv=none; b=JABXMb0loxrEol/Zdj+f8lY5bDLw+BcVQns5gKI8FdhBnFuxYZlxsqWOQOwP85xXRirJO38KjLrZ+WpT5zxs3EQp7y5Jg2V4RecpFBKwkLwlLGJo2l0FtkhzroU0lzeY0Z5sFSQd4QRf0xm9SpaXBzXZWRVVIBTGbn5JJzhvrYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734517812; c=relaxed/simple; bh=osn+tf2J1/rv3p+LR5X9rn6FBuri2hBkCrAErFzy/q0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=MFUTNWQ0EqTorwJo6BWguhE1mlaWzj/HSMo8iNR5tuFSPXqiDAB1evFTsxAsD3zjKi6P0A9eELQ0OMK9uPhKc+UFbNLV4Irva/MHq5Hp2eg4yUkhAOtGV6HpUkXNJoJvcBpJy9puVZBFG2H9MzL+x1zawhAXrbqwMOgxIf1Dan0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Uy3d3FXJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Uy3d3FXJ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 20E3FC4CECE; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734517812; bh=osn+tf2J1/rv3p+LR5X9rn6FBuri2hBkCrAErFzy/q0=; h=From:Subject:Date:To:Cc:From; b=Uy3d3FXJBZq86oplesPRUVLZsQtx9r2fjB6eqvBwJ3D+kSNUnIK6ptnJm6mh9HXS4 7GsmIdneWvxSchOuNsqdODv3paIr4YMwVHBT/gZAvn7d0II9tvMgvk6840GVA6HGtr 3U9gs5TLzHgYEtexhEBA8Bm9t1PAZOcGy+nbnr48FVJDxa+4mmhM+U/OJdmWjpdkCy 8wgHKlfy6VuD1nRdmxlt+6KYQ8OPcjFBSVAS9w7zk12X3bRpMmcfj9ITAfrJUm6k7j R1/igwprJEicbZn963JAAkJqpD1t4ZT3lbHCpyG0OPA+5uYjzSoyQJI/o4zjb3QUUg wa09AQRLeG9BQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00F2CE77187; Wed, 18 Dec 2024 10:30:12 +0000 (UTC) From: Joel Granados Subject: [PATCH 00/12] kdevops: Various fixes Date: Wed, 18 Dec 2024 11:29:54 +0100 Message-Id: <20241218-jag-bringup_fixes-v1-0-0bf2e07c640c@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACKkYmcC/x3LQQqAIBBA0avIrBtoBiHoKhGhNtm0sFCKILp70 vLx+Q8UySoFevNAlkuL7qmCGgNhdSkK6lwN3LIlpg43F9FnTfE8pkVvKchWFvLBMpGD+h1Z/lC 3YXzfD92yW1xjAAAA To: kdevops@lists.linux.dev Cc: Joel Granados , da.gomez@samsung.com X-Mailer: b4 0.15-dev-00a43 X-Developer-Signature: v=1; a=openpgp-sha256; l=2259; i=joel.granados@kernel.org; h=from:subject:message-id; bh=osn+tf2J1/rv3p+LR5X9rn6FBuri2hBkCrAErFzy/q0=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGdipCpfQhfBp71ToxvNInQOJ77g2aUhNE2Od j7L51N26a+ehIkBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJnYqQqAAoJELqXzVK3 lkFPKaYL/22mFiDdHnvu41pC6nNYIxYxn01GxfHNTsrDnrMeIaOiANwi+tKVfddLWFZw1BpJBCL v0QHkU5Bxtw3Ser4n+QOZ+f5pyQvmHINeNWBpf/xR5aoig/hq9zeJ3d3jhMdLlLRlRI6XhHbB8x qqHzf5CiVXwT4NCeJd0KOnXFEGP1JGFBEKIpbdC+IECye6AjFIbMTfe3JkYPirM89U4n6/cbE8a jI1hkRfi+fxPqRAKaek3lAuyRrUotyLBrbWQOFGkQY/yc9qq958vyTIrMIY7xeRsm7ef3ty7QWD IXRyr0diIsubpC3AziVvqgMj7Kw4ibX4xO+wl/KanUmn6giWLzO4nVY+WUktecRhNr2LHOhBGsZ qkBA5ykY9+9mGnrkkkPwSg06f0G0jm+EKoTccN3oI/NHzg0sgoLZGhd9D3Nk/Jtleo9pByEzB1y NOdDiSQjWHHf9BXlQDf9iSfRwIRIW/XxS4+CPuKbRdUKXIkKA5UBZgh7jkcwmPgVyMzzdeIoqw5 V0= X-Developer-Key: i=joel.granados@kernel.org; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for joel.granados@kernel.org/default with auth_id=239 These are fixes that I used when doing a 'make bringup' on a debian 13 without libvirt. They seem unrelated because I changed things that prevented me from moving forward. Get back to me if I need to separate these in some way. Summary of changes (more information in commit messages): * Adjust the heuristic on becomming sudo * Prefer -K ansible argument for getting the sudo password * Use full paths when using tasks from other roles * Call libvirt configuration tasks when doing the bringup Signed-off-by: Joel Granados --- Joel Granados (12): Kconfig: Add error path in conf_value_to_yaml scripts: Adjust heuristic to see if current user can sudo ansible: libvirt_user: Install additional pkgs for debian Makefile: Add virsh and libvirtd to minimum dependencies ansible: Add build-deps tag ansible: Use full paths when importing tasks ansible: Run sudo by using the '-K' ansible arg ansible: Install libvirt deps and enable user ansible: Reduce long ansible messages for readability bringup: Use full path when creating custom_source file scripts: Return the full default path of the pool path ansible: Set running_user explicitly to the USER var of the script Makefile.min_deps | 2 ++ playbooks/roles/bringup_guestfs/tasks/main.yml | 32 ++++++++++++++++------ .../libvirt_user/tasks/enable-user/debian/main.yml | 7 +++-- .../roles/libvirt_user/tasks/enable-user/main.yml | 12 +++++--- .../tasks/install-deps/debian/main.yml | 2 ++ .../roles/libvirt_user/tasks/install-deps/main.yml | 15 +++++++--- scripts/bringup_guestfs.sh | 3 +- scripts/get_libvirsh_pool_path.sh | 2 +- scripts/guestfs.Makefile | 5 ++-- scripts/kconfig/confdata.c | 16 +++++------ scripts/libvirt_pool.sh | 25 ++++++++++++++--- 11 files changed, 86 insertions(+), 35 deletions(-) --- base-commit: b9e7570e72dac2df62d2ba80b01e3ff534316517 change-id: 20241217-jag-bringup_fixes-24ef1bc4211a Best regards,