Ask Your Question
0

Running SAIO config generating recon cache errors

asked 2012-07-13 17:04:16 -0500

kcalmond gravatar image

I've got a running SAIO system extended to use swauth, https & Swift3. I noticed the log files /var/log/swift/storageX.log and storage.error were growing quit large. Every few seconds the following would appear in the error log:

Jul 13 09:48:36 swift-saio-0 object-replicator Exception dumping recon cache: #012Traceback (most recent call last):#012 File "/home/saio/swift/swift/common/utils.py", line 1196, in dump_recon_cache#012 with lock_file(cache_file, lock_timeout, unlink=False) as cf:#012 File "/usr/lib/python2.6/contextlib.py", line 16, in __enter__#012 return self.gen.next()#012 File "/home/saio/swift/swift/common/utils.py", line 761, in lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13] Permission denied: '/var/cache/swift/object.recon' Jul 13 09:49:41 swift-saio-0 object-replicator last message repeated 2 times

The /var/cache/swift directory did not exist. After creating it and chowning it to my swift process UID/GID ("saio") the log files stopped growing. And, the following files were immediately created inside /var/cache/swift:

-rw------- 1 saio saio 270 2012-07-13 09:49 account.recon -rw------- 1 saio saio 272 2012-07-13 09:49 container.recon -rw------- 1 saio saio 52 2012-07-13 09:49 obje ct.recon

Note - I don't have any pipeline or filter settings for recon in any of my account/object/container server conf files. Looks like the SAIO config documentation should at a minimum call out creation of the /var/cache/swift directory to prevent log files from blowing up. (or add recon config to all of the conf files?)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-09-23 02:08:54 -0500

fifieldt gravatar image

Thanks for the report - as per the bug https://bugs.launchpad.net/swift/+bug... this is now fixed, so marking the question as answered.b

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-07-13 17:04:16 -0500

Seen: 88 times

Last updated: Sep 23 '12