Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2022 17:34:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 265177] net/cloud-init - fails when attempting to use write_files
Message-ID:  <bug-265177-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 (<module
'cloudinit.config.cc_write_files' from
'/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_write_files.py'=
>)
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265177-7788>