From patchwork Mon Jan 13 11:52:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados X-Patchwork-Id: 13937226 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 E8A151CAA9E for ; Mon, 13 Jan 2025 11:53:15 +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=1736769196; cv=none; b=pUwoX0ee7dH8OEEBI2/DQekuqp52FO5HAGB0L9QKug1jeH5eDepztJWW5qa8dsVeYI/bFsCPoAuqYJIzJCeHqkL0wbebj4flgkN4CiyhlqMsUzp24o/wX+8aa+SzbFCLV5Rdh3xifIkDoJtxZGOYRZmsBF0rCpNyEpQUJkHwMXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736769196; c=relaxed/simple; bh=osn+tf2J1/rv3p+LR5X9rn6FBuri2hBkCrAErFzy/q0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=PqN6BxPPMHMDj1VjmlVxMztRTSojHqTteluHrlypj+/NUT9oNBr6E9HJhQY41vU4Zl1+efTUJh5tLanmD1kBS5M3wu4Dwbm0lXRH85vWjsCBCPssv6EJqxpkXY+NDDomN2pJivrwaaXrkqUAaEokrmaYlDnJuPZ8xv+abaMWPMI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lGODOWud; 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="lGODOWud" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7785AC4CED6; Mon, 13 Jan 2025 11:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736769195; bh=osn+tf2J1/rv3p+LR5X9rn6FBuri2hBkCrAErFzy/q0=; h=From:Subject:Date:To:Cc:From; b=lGODOWud0FpK4sh1RwMvG+/dYnzuvZvZ/LvXruegNVAwTrSR1V2hnSJr84IIzVvuR sIVyV1lShx3fmbM7npdacnhzPVTmxt3RYs4tKzL5k7QA1/655EFglWmlUx76xcx8md rpsjWWdSu2waeFGsS6k/ZLWj02SxU627PHkUMFwBjH1ZJXdl8GHSS6mhWTmx9MfpVl eznjzChxo7NhxaHG+yzMFk5bvdgZxpB4yH7iVSZV6WsJ/tc7S2m0wC44fKNuEG1D9n NznRW4Nrc7RlLNBktSb5lEiCKOJ/J413vDNkIuHP1vGDyU5BwnWJBJCtDEbuFqBHyR ICvdA1IvVFRlw== 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 5D101E7719F; Mon, 13 Jan 2025 11:53:15 +0000 (UTC) From: Joel Granados Subject: [PATCH RESEND 00/12] kdevops: Various fixes Date: Mon, 13 Jan 2025 12:52:58 +0100 Message-Id: <20250113-jag-bringup_fixes-v1-0-fb28030b1f26@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: kdevops@lists.linux.dev Cc: Joel Granados , mcgrof@kernel.org, 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+kA0DAAoBupfNUreWQU8ByyZiAGeE/qHbTrEebk3ddDfMK7CFRx4ZDODU/Kuic wbk6+sGiQirRYkBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJnhP6hAAoJELqXzVK3 lkFPCh4L/RRerX18LG6eiNzQbTf4N8sgCu1op5CCSLAEDDPS31G+oZqjEXJ2iiSqj5gQ1BOZD1p JwYVT4v677u/9aADk3uP2aogmYcTku3F59crtjtfWQKNv/voJIoa8N+MgJCkLqEJfhEhPMW4Bdl CEF4WhXEBS1Nw2xQ/MYxccjk9X8YWsPXaYxOVbXgl3GvaNAlvWLffXd+7avw4MScuJH+2sooeim kMtE9vYe4tgB1EduzzqYQp1TJryY5lMMSiT+6G4flwPGtKvIlAo1M/d2Rg93EWv/3XnPnw7yCcA tnz6JKzK0DXrP/imturlNiZ3UqNuc0wN8OCaN1LVAFzNGsMxe/R/yfElPSCtsnFWpL7TC0StvEj WK94GIY1ra0zuutwohvz9wDIQx9PxsGroJT1oAPl9hNWUDgaCDfPhIMFZKqyJYKWBwvMuJuRT8x b+ZtzBw+4nGkXCH4CGa728grUTZvL49xEj6/N3gwawOxq/e9Las+2V39dl4cur3TmZ+5O2d2tX8 hg= 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,