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 B9C433398B for ; Mon, 28 Jul 2025 00:24:51 +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=1753662291; cv=none; b=eJtG+Z4pns4NhZwAREE6bNK1n1y35Dmrd+xTLSI8fFSZuWupphSw3OdwJW9tSL8QnPo45XkjdDv1XKTAbVpVmPp+a0j6i8LfXXzvGVyXABZbYNbC9rsztLwosbroVSfWbcQ5L79u7hYxpJbinW7wwIGLKzEOHyy+acBIzlL0KL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753662291; c=relaxed/simple; bh=Nj+wzE20cHSKhQ7+Bi5fdilrZcTSrpkaExSkDYk6bf8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=us97u42qRjgH6fcufOTJAZrlFStE3dKN9Qrc4CiaTFC1A6KBUeflHWX4sv1F6fL4kFKVy8EVbL3XYA6WukUX75doCuNXWaJXi+PLIg5nM/tjTXr3AlwRWcThGfrLApDndDJny63AhvsFRcLB5/l1d5A6K5X3YBeSpy4TK45G2q0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VfmzVSAX; 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="VfmzVSAX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D29EBC4CEEB; Mon, 28 Jul 2025 00:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753662291; bh=Nj+wzE20cHSKhQ7+Bi5fdilrZcTSrpkaExSkDYk6bf8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VfmzVSAXN9ByWNcNpzqbZnnwccxaxjuoqgRAQBLIHjV8Arh4tzW9PYbVE9tl/ojOU ScuzvAsYzW1F+LDd/kaaCD2Q25ZbS494AnDP3X7I60u1nRJv6sSmkVnHqNg8LPbU++ kacfQSaz7Lkv0M31UXFzHmWo4qmWX5FsvXEoRHG6jufZR5/xjLVYtCHna1zu3qZMrW oEV4DwNFDfofGTnTCwQFk/vo3qVIvEvyniYytKiFJdn0d+WJ42PZrm/mqIPAzxWqPY 6a3UK1X0Dn+jwRL7u7IShiMeXlOF0mUe0RBVR4F2vf0c5LMswkb4712KCE7QEk2iOy 3F//nnriRx4eA== Message-ID: <58684b8b-8268-4a43-b38f-e818b80f66a6@kernel.org> Date: Sun, 27 Jul 2025 20:24:49 -0400 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/40] ansible.cfg: Explicitly set the ssh user To: Luis Chamberlain , Daniel Gomez , kdevops@lists.linux.dev Cc: Chuck Lever References: <20250728001800.3188617-1-mcgrof@kernel.org> <20250728001800.3188617-10-mcgrof@kernel.org> Content-Language: en-US From: Chuck Lever Organization: kernel.org In-Reply-To: <20250728001800.3188617-10-mcgrof@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/27/25 8:17 PM, Luis Chamberlain wrote: > From: Chuck Lever > > I've been seeing tasks that are marked "become: true" fail with > this message: > > Timeout (12s): waiting for privilege escalation promt: > > This appears to be a common failure mode, but it is due to a broad > variety of causes. I think I've nailed this one with this addition > to ansible.cfg. It changes "ESTABLISHING SSH SESSION FOR: NONE" > to "... FOR: " where is always a user that is allowed > to use sudo. > > The current Terraform Kconfig menu sets this user, but guestfs does > not -- the Ansible ssh user for guestfs is always "kdevops". The > ansible.cfg.j2 file reflects this. > > Signed-off-by: Chuck Lever Whoops, Daniel wanted changes to this one. It shouldn't be included in this series. 8/40 has some formatting problems, and 10/40 is for my own CI. The switch to the cloud.terraform module is under test and not related to the builder work. I can refresh/rebase my "builder" branch to remove the leaked patches. Let me know what you'd prefer. > --- > playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 > index f71033b2..b292d196 100644 > --- a/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 > +++ b/playbooks/roles/ansible_cfg/templates/ansible.cfg.j2 > @@ -11,6 +11,11 @@ show_task_path_on_failure = {{ ansible_cfg_callback_plugin_show_task_path_on_fai > interpreter_python = {{ ansible_cfg_interpreter_python_string }} > forks = {{ ansible_cfg_forks }} > enable_task_debugger = {{ ansible_cfg_task_debugger }} > +{% if kdevops_terraform_ssh_config_user is defined %} > +remote_user = {{ kdevops_terraform_ssh_config_user }} > +{% else %} > +remote_user = kdevops > +{% endif %} > {% if ansible_facts['distribution'] == 'openSUSE' %} > [connection] > retries = {{ ansible_cfg_reconnection_retries }} -- Chuck Lever