Am 14.07.2023 um 23:46 schrieb Noah Meyerhans:
Can you show that write_files works without the defer flag?
Writing files without defer works.
2023-07-15 10:57:15,044 - modules.py[DEBUG]: Running module write-files
('/usr/lib/python3/dist-packages/cloudinit/config/cc_write_files.py'>)
with
Also, I'm curious to see what happens if you invoke the
write_files_deferred module by hand with a command like
$ sudo cloud-init single --name cc_write_files_deferred \
--frequency always --report
It should generate messages in /var/log/cloud-init.log.
On 7/14/23 06:49, Sven Strickroth wrote:
I'm not able to reproduce the behavior you describe. defer seems to
work as expected. For example:
admin@ip-10-0-0-87:~$ ec2-metadata --ami-id
ami-id: ami-0544719b13af6edc3
admin@ip-10-0-0-87:~$ sudo cat /var/lib/cloud/instance/user-data.txt
Am 13.07.2023 um 19:07 schrieb Noah Meyerhans:
I'm not able to reproduce the behavior you describe. defer seems to
work as expected. For example:
admin@ip-10-0-0-87:~$ ec2-metadata --ami-id
ami-id: ami-0544719b13af6edc3
admin@ip-10-0-0-87:~$ sudo cat /var/lib/cloud/instance/user-data.txt
Processing control commands:
> tags -1 + moreinfo
Bug #1040979 [cloud-init] write_files: defer not working any more
Added tag(s) moreinfo.
--
1040979: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040979
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
Control: tags -1 + moreinfo
On Thu, Jul 13, 2023 at 05:30:52PM +0200, Sven Strickroth wrote:
> starting with the shipped version in Debian 12 the write_files feature with
> defer option does not work any more.
I'm not able to reproduce the behavior you describe. defer seems to
work as
Package: cloud-init
Version: 22.4.2-1
Severity: important
X-Debbugs-Cc: em...@cs-ware.de
Dear Maintainer,
starting with the shipped version in Debian 12 the write_files feature with
defer option does not work any more.
Example:
#cloud-config
locale: de_DE.UTF-8
timezone: Europe/Berlin