Comment 0 for bug 1941611

Revision history for this message
Markus Bock (mbock2021) wrote : account.recon file not not found on account-server

On our swift log there are messages like these:

syslog.local0.err {"Payload":"swift-container-server: Error reading recon cache file: #012Traceback (most recent call last):#012 File \"/var/lib/kolla/venv/lib/python3.8/site-packages/swift/common/middleware/recon.py\", line 80, in _from_recon_cache#012 with openr(cache_file, 'r') as f:#012FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/swift/container.recon'\u0000","log_level":"err","Hostname":"swift1.dev.cloud-fc.de","programname":"swift"}

The problem is that the swift_recon_cache-volume,
is not mounted on every container which needed it.

To fix we change the file kolla-ansible/ansible/roles/swift/tasks/start.yml.
We added the line - "swift_recon_cache:/var/cache/swift" to each container, that needed it.

In our case he swift-container-server