From nobody Tue Jul 12 17:34:44 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2BDE41CFB0E7 for ; Tue, 12 Jul 2022 17:34:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lj7DN6s00z3dv7 for ; Tue, 12 Jul 2022 17:34:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Lj7DN5fHgzs0c for ; Tue, 12 Jul 2022 17:34:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 26CHYiGw078947 for ; Tue, 12 Jul 2022 17:34:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26CHYipb078946 for ports-bugs@FreeBSD.org; Tue, 12 Jul 2022 17:34:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265177] net/cloud-init - fails when attempting to use write_files Date: Tue, 12 Jul 2022 17:34:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ewan.nisbet@dice.fm X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657647285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rEdvXhCMJ8WSikXDCVJ49PoSKtU6o3M5iQID1BzT6J0=; b=JNUnDqYxbZNDq4qGmfClMrgPjB6JZHrxm8K+kmliPbwxk7WfuxmG7DGEKFyaJurZHTflfX pDCtOjKotRXBI3pjlhaS8EwjdBwFE9Jlx76TGxFQqBQqWfSEJZgvhFoFqFdk1Dm4OrZNiW dTYfftp+kVTEdYL3qB6kyMi6xtMcWKuz5ceHWBbSFiMkAj1CRMKAFDMvuWFp42HcLMKUlR 1p6NHwJ/xyH1fPVaDPq/l8zcDN3GWaSeLcxklH0JPoXlLe/MBZcctV6S7Z7dKTyUBmB7Ot kzbe7M3fQsYJLwKNTtgfvjlWAaTv07r5hmwvtCpU/GN/5ZOnKE43PPcFzjsJ5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657647285; a=rsa-sha256; cv=none; b=Tg/Fi3JZhbKCqNTip+wdR5FldTSJen+kyVkAd/nJr40dGjA2XtLrL2ZdyRP+IqMBaWesqc i7vxJ2u6/Ifos9LDOFnFmJwCMdJOqPBvOYM2btDeG3s1aSPEB+HhX/Ot/B44VPZ/vyHiC8 FaqAvIXZj0YMIg/7/jAFeGJAi6NxclvcM1WChYEZNRzFyUhFV2Vtg2Vr8ppJVRywywvstf 4sWNkPPAt1gI7S2F40dKh89cCV1h8FT1DPZC+Vyf2Qy6CpiVeYwlLcvwBlfK9sIj6SoLds rXe2fIdq1WKj3Nx9Gp3mAIleH/54X/Cqnzt7bOYTS74pz7fHuvR1aOx7FllRzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265177 Bug ID: 265177 Summary: net/cloud-init - fails when attempting to use write_files Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: ewan.nisbet@dice.fm CC: andrey@bsdnir.info CC: andrey@bsdnir.info Flags: maintainer-feedback?(andrey@bsdnir.info) hi, I've been using py38-cloud-init, and now py39-cloud-init in conjunction with Xen Orchestra: https://xen-orchestra.com/docs/installation.html#xoa https://xoa.io/deploy Originally with py38-cloud-init, and now py39-cloud-init, I'm applying the following change: sed -i '' -e 's/ gid =3D grp.getgrnam(group).gr_gid/ = pass #20220224 this comment added in packer builder. bug?: gid =3D grp.getgrnam(group).gr_gid/g' /usr/local/lib/python3.9/site-packages/cloudinit/util.py Unless I make that change, a corresponding cloud_init with eg: write_files: - content: | some-script-here path: /root/some-script.sh or write_files: - content: | some-script-here permissions: 0744 path: /root/some-script.sh write_files: - content: | some-script-here permissions: "0744" path: /root/some-script.sh doesn't appear to be handled correctly. Example error message: from /var/log/cloud-init-output.log is: util.py[WARNING]: Running module write-files () failed I am successfully using cloud-init with the same xen/xen-orchestra & other operating systems, for example alma linux, without needing to apply this change.=20 Please let me know if there is further information I can provide. Alternatively, also let me know if you believe this issue should be submitt= ed upstream with cloud-init team directly. Many thanks --=20 You are receiving this mail because: You are the assignee for the bug.=