while True:
sym_link(source_file, link_file, force=True)
EOF
# terminal 1
python3 ./reproducer.py
# terminal 2
cloud-init status --wait
.......
...
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: '/run/cloud-init/status.json'
Reproducible with the following on a system with cloud-init:
echo > reproducer.py <<EOF
from cloudinit.util import sym_link, write_file
source_file = "/tmp/test" init/status. json" source_ file, "{}")
link_file = "/run/cloud-
write_file(
while True: link(source_ file, link_file, force=True)
sym_
EOF
# terminal 1
python3 ./reproducer.py
# terminal 2 init/status. json'
cloud-init status --wait
.......
...
with open(fname, 'rb') as ifh:
FileNotFoundError: [Errno 2] No such file or directory: '/run/cloud-