From mboxrd@z Thu Jan 1 00:00:00 1970 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 7C11C1D6188 for ; Wed, 27 Aug 2025 13:25:20 +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=1756301120; cv=none; b=ZvjBcgryHGrEmMB59KpSC8Zcs2ZgDWJpp+nVC/8Lzb9YTTuhFKW5mrh6dAF4jMe6WFLnnckFKPAd3qYd9uU3rnh7CcW0s2h/cb7Ed8K8i5usY34SB/iZjTCoGQ+ntURJ5tFyB04/MnaW9Xtr2QrXyWBOojiQ4RUcYoDeAyDa/UM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756301120; c=relaxed/simple; bh=K22DkECAcBRFMKhywWhqbCwgjrcctIzC0HxkOtKhXas=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=W405Ob1JjFl1KmgsIbWQCdjX6wExVsaWkK/5HoJZVWiVhzlXvvDBxcKAm/ZOQMjsyCAnuIhyuLm1tlilSz/ItLu5uYesTUs2+z5lAoC95LaGcYJX8fA73d5jmM1/TvRstnW4CqcKnMzz6YK3MqwPat01IrimkV2Ppd8/SmhoHaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NVz6RyvF; 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="NVz6RyvF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B67DFC4CEEB; Wed, 27 Aug 2025 13:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756301120; bh=K22DkECAcBRFMKhywWhqbCwgjrcctIzC0HxkOtKhXas=; h=Subject:From:To:Date:In-Reply-To:References:From; b=NVz6RyvF1GPV7FZmpHu3+YM1LwgtfuVgyi6saclyM+C4eIPy50BFeAGJsg3MiM131 //e4egCagln+gk3h3/VMrzajJJJUfhgyaFD6szmRiogU7ijJ22z3l8Wh0PGLHY3J51 polawr4uUQjLn5vAH9BYY8xKPlQQwj7maVwcYMrZA175BlDME/c5oUiZn1jVTYCHsK RIiCbyM+7xpvOcMADnT1333ul09bTqt1RHs8VgVDJRWZmWmrsOoro3vuZ2MgYuPtpF wWitYpWKPa40TTp+F4JtTI5Tu4PsK6yxz6dZiOphzWzcQ2T55YYXAxxFGQD85q9Gp0 nNO51LmM1Mrlw== Message-ID: Subject: Re: systemd-resolved and single-label DNS entries From: Jeff Layton To: Daniel Gomez , Chuck Lever , kdevops@lists.linux.dev Date: Wed, 27 Aug 2025 09:25:18 -0400 In-Reply-To: References: <5a2d4ed91a7baf8487f37310c808bf615dcd834e.camel@kernel.org> <673f16b7-4a0f-4f2c-81e9-e4a772012e14@oracle.com> Autocrypt: addr=jlayton@kernel.org; prefer-encrypt=mutual; keydata=mQINBE6V0TwBEADXhJg7s8wFDwBMEvn0qyhAnzFLTOCHooMZyx7XO7dAiIhDSi7G1NPxw n8jdFUQMCR/GlpozMFlSFiZXiObE7sef9rTtM68ukUyZM4pJ9l0KjQNgDJ6Fr342Htkjxu/kFV1Wv egyjnSsFt7EGoDjdKqr1TS9syJYFjagYtvWk/UfHlW09X+jOh4vYtfX7iYSx/NfqV3W1D7EDi0PqV T2h6v8i8YqsATFPwO4nuiTmL6I40ZofxVd+9wdRI4Db8yUNA4ZSP2nqLcLtFjClYRBoJvRWvsv4lm 0OX6MYPtv76hka8lW4mnRmZqqx3UtfHX/hF/zH24Gj7A6sYKYLCU3YrI2Ogiu7/ksKcl7goQjpv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0ijXQrVIy3zd6VCNaKYq7B AKidn5g/2Q8oio9Tf4XfdZ9dtwcB+bwDJFgvvDYaZ5bI3ln4V3EyW5i2NfXazz/GA/I/ZtbsigCFc 8ftCBKZWZmIExheXRvbiA8amxheXRvbkBrZXJuZWwub3JnPokCOAQTAQIAIgUCWe8u6AIbAwYLCQg HAwIGFQgCCQoLBBYCAwECHgECF4AACgkQAA5oQRlWghUuCg/+Lb/xGxZD2Q1oJVAE37uW308UpVSD 2tAMJUvFTdDbfe3zKlPDTuVsyNsALBGclPLagJ5ZTP+Vp2irAN9uwBuacBOTtmOdz4ZN2tdvNgozz uxp4CHBDVzAslUi2idy+xpsp47DWPxYFIRP3M8QG/aNW052LaPc0cedYxp8+9eiVUNpxF4SiU4i9J DfX/sn9XcfoVZIxMpCRE750zvJvcCUz9HojsrMQ1NFc7MFT1z3MOW2/RlzPcog7xvR5ENPH19ojRD CHqumUHRry+RF0lH00clzX/W8OrQJZtoBPXv9ahka/Vp7kEulcBJr1cH5Wz/WprhsIM7U9pse1f1g Yy9YbXtWctUz8uvDR7shsQxAhX3qO7DilMtuGo1v97I/Kx4gXQ52syh/w6EBny71CZrOgD6kJwPVV AaM1LRC28muq91WCFhs/nzHozpbzcheyGtMUI2Ao4K6mnY+3zIuXPygZMFr9KXE6fF7HzKxKuZMJO aEZCiDOq0anx6FmOzs5E6Jqdpo/mtI8beK+BE7Va6ni7YrQlnT0i3vaTVMTiCThbqsB20VrbMjlhp f8lfK1XVNbRq/R7GZ9zHESlsa35ha60yd/j3pu5hT2xyy8krV8vGhHvnJ1XRMJBAB/UYb6FyC7S+m QZIQXVeAA+smfTT0tDrisj1U5x6ZB9b3nBg65kc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2025-08-26 at 21:04 +0200, Daniel Gomez wrote: >=20 > On 26/08/2025 18.32, Jeff Layton wrote: > > On Tue, 2025-08-26 at 11:07 -0400, Chuck Lever wrote: > > > On 8/26/25 10:21 AM, Jeff Layton wrote: > > > > On Tue, 2025-08-26 at 14:53 +0200, Daniel Gomez wrote: > > > > > On 26/08/2025 12.58, Jeff Layton wrote: > > > > > > I'm hitting a problem with NFS testing on kdevops guests. Recen= tly when > > > > > > I bring up a guest, it's unable to resolve the name of the NFS = server > > > > > > via DNS. > > > > >=20 > > > > > FYI, nfstests works fine with Debian testing (forky). Both hosts = and guests. > > > > >=20 > > > > >=20 > > > >=20 > > > >=20 > > > > Thanks. Some questions: > > > >=20 > > > > 1/ did your setup get the entries in /etc/hosts? That seems to be w= hat > > > > has changed recently. That's not working for some reason. > > > >=20 > > > > 2/ Does forky use systemd-resolved? The problem is clearly there wi= th > > > > Fedora 42. The DNS server on the virtual bridge works fine: > > > >=20 > > > > ----------------8<----------------- > > > > $ dig @192.168.122.1 kdevops-nfsd. > > > >=20 > > > > ; <<>> DiG 9.18.33 <<>> @192.168.122.1 kdevops-nfsd. > > > > ; (1 server found) > > > > ;; global options: +cmd > > > > ;; Got answer: > > > > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24955 > > > > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONA= L: 1 > > > >=20 > > > > ;; OPT PSEUDOSECTION: > > > > ; EDNS: version: 0, flags:; udp: 1232 > > > > ;; QUESTION SECTION: > > > > ;kdevops-nfsd. IN A > > > >=20 > > > > ;; ANSWER SECTION: > > > > kdevops-nfsd. 0 IN A 192.168.122.85 > > > >=20 > > > > ;; Query time: 0 msec > > > > ;; SERVER: 192.168.122.1#53(192.168.122.1) (UDP) > > > > ;; WHEN: Tue Aug 26 10:18:47 EDT 2025 > > > > ;; MSG SIZE rcvd: 57 > > > >=20 > > > > $ resolvectl query kdevops-nfsd. > > > > kdevops-nfsd.: 'kdevops-nfsd.' not found > > > > ----------------8<----------------- > > > >=20 > > > > It seems like we're doing something "unseemly" by putting bare name= s in > > > > DNS like this, given that systemd-resolved won't pass them along. > > > >=20 > > > > Since systemd-resolved will only resolve bare names without a domai= n > > > > using LLMNR, we should either take steps to make that work, or fix = it > > > > so that systemd-resolved will forward the requests (by setting up a > > > > proper domain name and setting up the search path in the resolver). > > > >=20 > > >=20 > > > "won't pass them along" -- does that depend on the settings in > > > /etc/nsswitch.conf ? > > >=20 > >=20 > > What's happening in my environment is that this list in the > > update_etc_hosts playbook comes up empty: >=20 > Can you check if your ansible.cfg has the inventory field? >=20 > grep inventory ansible.cfg > inventory =3D /xfs1/dagomez/kdevops/hosts >=20 Yep, it's there: inventory =3D /home/jlayton/git/kdevops/hosts Here's the file itself for my current (2 client) setup: -------------8<-------------- [all] localhost ansible_connection=3Dlocal kdevops-nfs-v42 kdevops-nfs-v3 [all:vars] ansible_python_interpreter =3D "/usr/bin/python3" [baseline] kdevops-nfs-v42 kdevops-nfs-v3 [baseline:vars] ansible_python_interpreter =3D "/usr/bin/python3" [dev] [dev:vars] ansible_python_interpreter =3D "/usr/bin/python3" [nfsd] kdevops-nfsd [nfsd:vars] ansible_python_interpreter =3D "/usr/bin/python3" [service] kdevops-nfsd [service:vars] ansible_python_interpreter =3D "/usr/bin/python3" -------------8<-------------- I have a bit more info too: If I spin up 2 client hosts and a single server, then the clients each get an entry for the other clients. They just don't get one for the server itself. For instance: $ ssh kdevops-nfs-v3 grep -v '^#' /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdoma= in4 ::1 localhost localhost.localdomain localhost6 localhost6.localdoma= in6 192.168.122.160 kdevops-nfs-v42 ...so I think we just need to make sure that the server hosts are also included in the list. I'll tinker around some more today, and will hopefully spin up a patch. > >=20 > > - name: Build list of hosts = =20 > > set_fact: =20 > > ueh_hosts: "{{ ansible_play_hosts_all | difference([inventory_hostn= ame]) }}" > > =20 > > That recently changed in this commit: > >=20 > > commit 1cf0800c9ffced98da393e5d2b1594302d23eb78 > > Author: Daniel Gomez > > Date: Thu Jul 24 21:36:14 2025 +0200 > >=20 > > gen_hosts: templates: include localhost in the all group > >=20 > > I couldn't revert that commit cleanly, so I tried out the commit just > > before it, and /etc/hosts got updated correctly. I'll have to look at > > proper fixes for this, but if anyone has ideas I'm happy to try them > > out. >=20 > My issue was that the list included the localhosts as it was now part of = hosts > file. In the commit log I added: >=20 > Finally, update ueh_hosts in the update_etc_hosts role to include onl= y > the hosts targeted in the current play, rather than all hosts in the > inventory. This avoids the error below when the inventory includes > localhost in the all group: >=20 > "The task includes an option with an undefined variable. The error > was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute > 'ansible_all_ipv4_addresses'. 'ansible.vars.hostvars.HostVarsVars > object' has no attribute 'ansible_all_ipv4_addresses'" >=20 > And this is the commit change related to the ueh_hosts: >=20 > diff --git a/playbooks/roles/update_etc_hosts/tasks/main.yml b/playbooks/= roles/update_etc_hosts/tasks/main.yml > index 4c1307fb..2b9af91d 100644 > --- a/playbooks/roles/update_etc_hosts/tasks/main.yml > +++ b/playbooks/roles/update_etc_hosts/tasks/main.yml > @@ -26,7 +26,7 @@ >=20 > - name: Build list of hosts > set_fact: > - ueh_hosts: "{{ groups.all | flatten(levels=3D1) | reject('eq', inven= tory_hostname) }}" > + ueh_hosts: "{{ ansible_play_hosts_all | difference([inventory_hostna= me]) }}" >=20 >=20 > Below are the logs with current vanilla kdevops (1.) and logs reverting t= he > changes above (2.): >=20 > 1. make bringup AV=3D2 V=3D1 > ... >=20 > TASK [update_etc_hosts : Gather network facts] **************************= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:16 > ok: [debian13-posix] > ok: [debian13-dio] > ok: [debian13-interop] > [started TASK: update_etc_hosts : Build network address on debian13-dio] > [started TASK: update_etc_hosts : Build network address on debian13-inte= rop] > [started TASK: update_etc_hosts : Build network address on debian13-posi= x] > [started TASK: update_etc_hosts : Build list of hosts on debian13-dio] > [started TASK: update_etc_hosts : Build list of hosts on debian13-intero= p] > [started TASK: update_etc_hosts : Build list of hosts on debian13-posix] >=20 > TASK [update_etc_hosts : Build list of hosts] ***************************= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:27 > ok: [debian13-dio] =3D> {"ansible_facts": {"ueh_hosts": ["debian13-intero= p", "debian13-posix"]}, "changed": false} > ok: [debian13-interop] =3D> {"ansible_facts": {"ueh_hosts": ["debian13-di= o", "debian13-posix"]}, "changed": false} > ok: [debian13-posix] =3D> {"ansible_facts": {"ueh_hosts": ["debian13-dio"= , "debian13-interop"]}, "changed": false} > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-dio] > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-inte= rop] > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-posi= x] >=20 > TASK [update_etc_hosts : ansible.builtin.debug] *************************= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:31 > ok: [debian13-dio] =3D> { > "ueh_hosts": [ > "debian13-interop", > "debian13-posix" > ] > } > ok: [debian13-interop] =3D> { > "ueh_hosts": [ > "debian13-dio", > "debian13-posix" > ] > } > ok: [debian13-posix] =3D> { > "ueh_hosts": [ > "debian13-dio", > "debian13-interop" > ] > } > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-dio] > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-interop] > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-posix] >=20 > TASK [update_etc_hosts : Stat /etc/cloud/cloud.cfg.d] *******************= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:34 > ok: [debian13-dio] =3D> {"changed": false, "stat": {"atime": 1756234164.1= 4, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "block= s": 8, "charset": "binary", "ctime": 1756234453.4407628, "dev": 65025, "dev= ice_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "roo= t", "inode": 16529, "isblk": false, "ischr": false, "isdir": true, "isfifo"= : false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "= isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1756= 234453.4407628, "nlink": 2, "path": "/etc/cloud/cloud.cfg.d", "pw_name": "r= oot", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4= 096, "uid": 0, "version": "612645937", "wgrp": false, "woth": false, "write= able": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}} > ok: [debian13-posix] =3D> {"changed": false, "stat": {"atime": 1756234164= .664, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "bl= ocks": 8, "charset": "binary", "ctime": 1756234451.0282118, "dev": 65025, "= device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "= root", "inode": 16529, "isblk": false, "ischr": false, "isdir": true, "isfi= fo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false= , "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1= 756234451.0282118, "nlink": 2, "path": "/etc/cloud/cloud.cfg.d", "pw_name":= "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size"= : 4096, "uid": 0, "version": "612645937", "wgrp": false, "woth": false, "wr= iteable": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}} > ok: [debian13-interop] =3D> {"changed": false, "stat": {"atime": 17562341= 64.104, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "= blocks": 8, "charset": "binary", "ctime": 1756234449.885939, "dev": 65025, = "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": = "root", "inode": 16529, "isblk": false, "ischr": false, "isdir": true, "isf= ifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": fals= e, "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": = 1756234449.885939, "nlink": 2, "path": "/etc/cloud/cloud.cfg.d", "pw_name":= "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size"= : 4096, "uid": 0, "version": "612645937", "wgrp": false, "woth": false, "wr= iteable": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}} > [started TASK: update_etc_hosts : Disable cloud-init hosts management on= debian13-dio] > [started TASK: update_etc_hosts : Disable cloud-init hosts management on= debian13-interop] > [started TASK: update_etc_hosts : Disable cloud-init hosts management on= debian13-posix] >=20 > TASK [update_etc_hosts : Disable cloud-init hosts management] ***********= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:39 > changed: [debian13-dio] =3D> {"backup": "", "changed": true, "msg": "line= added"} > changed: [debian13-posix] =3D> {"backup": "", "changed": true, "msg": "li= ne added"} > changed: [debian13-interop] =3D> {"backup": "", "changed": true, "msg": "= line added"} > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-dio] > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-interop] > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-posix] > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-dio] > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-interop] > [started TASK: update_etc_hosts : Add IP address of all hosts to all hos= ts on debian13-posix] >=20 > TASK [update_etc_hosts : Add IP address of all hosts to all hosts] ******= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:61 > changed: [debian13-dio] =3D> (item=3Ddebian13-interop) =3D> {"ansible_loo= p_var": "item", "backup": "", "changed": true, "item": "debian13-interop", = "msg": "line added"} > changed: [debian13-interop] =3D> (item=3Ddebian13-dio) =3D> {"ansible_loo= p_var": "item", "backup": "", "changed": true, "item": "debian13-dio", "msg= ": "line added"} > changed: [debian13-posix] =3D> (item=3Ddebian13-dio) =3D> {"ansible_loop_= var": "item", "backup": "", "changed": true, "item": "debian13-dio", "msg":= "line added"} > changed: [debian13-dio] =3D> (item=3Ddebian13-posix) =3D> {"ansible_loop_= var": "item", "backup": "", "changed": true, "item": "debian13-posix", "msg= ": "line added"} > changed: [debian13-interop] =3D> (item=3Ddebian13-posix) =3D> {"ansible_l= oop_var": "item", "backup": "", "changed": true, "item": "debian13-posix", = "msg": "line added"} > changed: [debian13-posix] =3D> (item=3Ddebian13-interop) =3D> {"ansible_l= oop_var": "item", "backup": "", "changed": true, "item": "debian13-interop"= , "msg": "line added"} > [started TASK: update_etc_hosts : Fix up hostname on Debian guestfs host= s on debian13-dio] > [started TASK: update_etc_hosts : Fix up hostname on Debian guestfs host= s on debian13-interop] > [started TASK: update_etc_hosts : Fix up hostname on Debian guestfs host= s on debian13-posix] >=20 > TASK [update_etc_hosts : Fix up hostname on Debian guestfs hosts] *******= ******* > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:73 > ok: [debian13-posix] =3D> {"backup": "", "changed": false, "msg": ""} > ok: [debian13-dio] =3D> {"backup": "", "changed": false, "msg": ""} > ok: [debian13-interop] =3D> {"backup": "", "changed": false, "msg": ""} >=20 > PLAY RECAP **************************************************************= ******* > debian13-dio : ok=3D9 changed=3D2 unreachable=3D0 = failed=3D0 skipped=3D2 rescued=3D0 ignored=3D0 =20 > debian13-interop : ok=3D9 changed=3D2 unreachable=3D0 = failed=3D0 skipped=3D2 rescued=3D0 ignored=3D0 =20 > debian13-posix : ok=3D9 changed=3D2 unreachable=3D0 = failed=3D0 skipped=3D2 rescued=3D0 ignored=3D0 =20 >=20 >=20 > 2. After reverting that change on ueh_hosts, I can replicate my original = issue: >=20 > TASK [update_etc_hosts : Gather network facts] **************************= ***************************** > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:16 > ok: [debian13-dio] > ok: [debian13-posix] > ok: [debian13-interop] > [started TASK: update_etc_hosts : Build network address on debian13-dio] > [started TASK: update_etc_hosts : Build network address on debian13-inte= rop] > [started TASK: update_etc_hosts : Build network address on debian13-posi= x] > [started TASK: update_etc_hosts : Build list of hosts on debian13-dio] > [started TASK: update_etc_hosts : Build list of hosts on debian13-intero= p] > [started TASK: update_etc_hosts : Build list of hosts on debian13-posix] >=20 > TASK [update_etc_hosts : Build list of hosts] ***************************= ***************************** > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:27 > ok: [debian13-dio] =3D> {"ansible_facts": {"ueh_hosts": ["localhost", "de= bian13-interop", "debian13-posix", "debian13-iscsi", "debian13-nfsd"]}, "ch= anged": false} > ok: [debian13-posix] =3D> {"ansible_facts": {"ueh_hosts": ["localhost", "= debian13-dio", "debian13-interop", "debian13-iscsi", "debian13-nfsd"]}, "ch= anged": false} > ok: [debian13-interop] =3D> {"ansible_facts": {"ueh_hosts": ["localhost",= "debian13-dio", "debian13-posix", "debian13-iscsi", "debian13-nfsd"]}, "ch= anged": false} > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-dio] > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-inte= rop] > [started TASK: update_etc_hosts : ansible.builtin.debug on debian13-posi= x] >=20 > TASK [update_etc_hosts : ansible.builtin.debug] *************************= ***************************** > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:32 > ok: [debian13-dio] =3D> { > "ueh_hosts": [ > "localhost", > "debian13-interop", > "debian13-posix", > "debian13-iscsi", > "debian13-nfsd" > ] > } > ok: [debian13-interop] =3D> { > "ueh_hosts": [ > "localhost", > "debian13-dio", > "debian13-posix", > "debian13-iscsi", > "debian13-nfsd" > ] > } > ok: [debian13-posix] =3D> { > "ueh_hosts": [ > "localhost", > "debian13-dio", > "debian13-interop", > "debian13-iscsi", > "debian13-nfsd" > ] > } > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-dio] > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-interop] > [started TASK: update_etc_hosts : Stat /etc/cloud/cloud.cfg.d on debian1= 3-posix] >=20 > ... >=20 > TASK [update_etc_hosts : Add IP address of all hosts to all hosts] ******= ***************************** > task path: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/m= ain.yml:62 > [ERROR]: Task failed: Finalization of task args for 'ansible.builtin.line= infile' failed: Error while resolving value for 'line': object of type 'Hos= tVarsVars' has no attribute 'ansible_all_ipv4_addresses' >=20 > Task failed. > Origin: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/main= .yml:62:3 >=20 > 60 - terraform_private_net_enabled > 61 > 62 - name: Add IP address of all hosts to all hosts > ^ column 3 >=20 > <<< caused by >>> >=20 > Finalization of task args for 'ansible.builtin.lineinfile' failed. > Origin: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/main= .yml:65:3 >=20 > 63 become: true > 64 become_method: sudo > 65 ansible.builtin.lineinfile: > ^ column 3 >=20 > <<< caused by >>> >=20 > Error while resolving value for 'line': object of type 'HostVarsVars' has= no attribute 'ansible_all_ipv4_addresses' > Origin: /xfs1/dagomez/kdevops/playbooks/roles/update_etc_hosts/tasks/main= .yml:68:11 >=20 > 66 dest: /etc/hosts > 67 regexp: ".*{{ item }}$" > 68 line: "{{ hostvars[item].ansible_all_ipv4_addresses | first }} {{ = item }}" > ^ column 11 >=20 > failed: [debian13-dio] (item=3Dlocalhost) =3D> {"ansible_loop_var": "item= ", "changed": false, "item": "localhost", "msg": "Task failed: Finalization= of task args for 'ansible.builtin.lineinfile' failed: Error while resolvin= g value for 'line': object of type 'HostVarsVars' has no attribute 'ansible= _all_ipv4_addresses'"} > failed: [debian13-interop] (item=3Dlocalhost) =3D> {"ansible_loop_var": "= item", "changed": false, "item": "localhost", "msg": "Task failed: Finaliza= tion of task args for 'ansible.builtin.lineinfile' failed: Error while reso= lving value for 'line': object of type 'HostVarsVars' has no attribute 'ans= ible_all_ipv4_addresses'"} > failed: [debian13-posix] (item=3Dlocalhost) =3D> {"ansible_loop_var": "it= em", "changed": false, "item": "localhost", "msg": "Task failed: Finalizati= on of task args for 'ansible.builtin.lineinfile' failed: Error while resolv= ing value for 'line': object of type 'HostVarsVars' has no attribute 'ansib= le_all_ipv4_addresses'"} > changed: [debian13-dio] =3D> (item=3Ddebian13-interop) =3D> {"ansible_loo= p_var": "item", "backup": "", "changed": true, "item": "debian13-interop", = "msg": "line added"} > changed: [debian13-interop] =3D> (item=3Ddebian13-dio) =3D> {"ansible_loo= p_var": "item", "backup": "", "changed": true, "item": "debian13-dio", "msg= ": "line added"} > changed: [debian13-posix] =3D> (item=3Ddebian13-dio) =3D> {"ansible_loop_= var": "item", "backup": "", "changed": true, "item": "debian13-dio", "msg":= "line added"} > changed: [debian13-dio] =3D> (item=3Ddebian13-posix) =3D> {"ansible_loop_= var": "item", "backup": "", "changed": true, "item": "debian13-posix", "msg= ": "line added"} > failed: [debian13-dio] (item=3Ddebian13-iscsi) =3D> {"ansible_loop_var": = "item", "changed": false, "item": "debian13-iscsi", "msg": "Task failed: Fi= nalization of task args for 'ansible.builtin.lineinfile' failed: Error whil= e resolving value for 'line': object of type 'HostVarsVars' has no attribut= e 'ansible_all_ipv4_addresses'"} > changed: [debian13-interop] =3D> (item=3Ddebian13-posix) =3D> {"ansible_l= oop_var": "item", "backup": "", "changed": true, "item": "debian13-posix", = "msg": "line added"} > changed: [debian13-posix] =3D> (item=3Ddebian13-interop) =3D> {"ansible_l= oop_var": "item", "backup": "", "changed": true, "item": "debian13-interop"= , "msg": "line added"} > failed: [debian13-dio] (item=3Ddebian13-nfsd) =3D> {"ansible_loop_var": "= item", "changed": false, "item": "debian13-nfsd", "msg": "Task failed: Fina= lization of task args for 'ansible.builtin.lineinfile' failed: Error while = resolving value for 'line': object of type 'HostVarsVars' has no attribute = 'ansible_all_ipv4_addresses'"} > failed: [debian13-interop] (item=3Ddebian13-iscsi) =3D> {"ansible_loop_va= r": "item", "changed": false, "item": "debian13-iscsi", "msg": "Task failed= : Finalization of task args for 'ansible.builtin.lineinfile' failed: Error = while resolving value for 'line': object of type 'HostVarsVars' has no attr= ibute 'ansible_all_ipv4_addresses'"} > failed: [debian13-posix] (item=3Ddebian13-iscsi) =3D> {"ansible_loop_var"= : "item", "changed": false, "item": "debian13-iscsi", "msg": "Task failed: = Finalization of task args for 'ansible.builtin.lineinfile' failed: Error wh= ile resolving value for 'line': object of type 'HostVarsVars' has no attrib= ute 'ansible_all_ipv4_addresses'"} > failed: [debian13-interop] (item=3Ddebian13-nfsd) =3D> {"ansible_loop_var= ": "item", "changed": false, "item": "debian13-nfsd", "msg": "Task failed: = Finalization of task args for 'ansible.builtin.lineinfile' failed: Error wh= ile resolving value for 'line': object of type 'HostVarsVars' has no attrib= ute 'ansible_all_ipv4_addresses'"} > failed: [debian13-posix] (item=3Ddebian13-nfsd) =3D> {"ansible_loop_var":= "item", "changed": false, "item": "debian13-nfsd", "msg": "Task failed: Fi= nalization of task args for 'ansible.builtin.lineinfile' failed: Error whil= e resolving value for 'line': object of type 'HostVarsVars' has no attribut= e 'ansible_all_ipv4_addresses'"} >=20 >=20 > Let me know if any of this helps. I wasn't advocating that we revert anything. I'm sure you had good reason to make the change you did. We just need to make sure that we get the NFS server included in /etc/hosts update. I'll see what I can figure out. Thanks for the help! --=20 Jeff Layton