Comment 4 for bug 1962150

Revision history for this message
Chad Smith (chad.smith) wrote :

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"
link_file = "/run/cloud-init/status.json"
write_file(source_file, "{}")

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'