I am not sure if it's a bug or something missed in my configuration,
I noticed those errors in the logs in my test swift cluster.
I constantly upgrade it with trunk.
I know that 'object-count' was added with Storage Policies. But i thought there is some backward compatible and those errors should not present.
Can someone explain me what is wrong?
Jan 26 11:32:25 ubuntu-swift-dev container-replicator: ERROR reading db /srv/3/node/sdb3/containers/33/bc3/084910b7fb0e80a62ee67010a1ac8bc3/084910b7fb0e80a62ee67010a1ac8bc3.db: #012Traceback (most recent call last):#012 File "/home/swift/OpenStack/swift/swift/common/db_replicator.py", line 436, in _replicate_object#012 info = broker.get_replication_info()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 543, in get_replication_info#012 info = self.get_info()#012 File "/home/swift/OpenStack/swift/swift/container/backend.py", line 411, in get_info#012 ''') % (trailing_sync, trailing_pol)).fetchone()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 129, in execute#012 self.timeout, self.db_file, lambda: sqlite3.Cursor.execute(#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 67, in _db_timeout#012 return call()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 130, in <lambda>#012 self, *args, **kwargs))#012OperationalError: no such column: object_count
Jan 26 11:32:25 ubuntu-swift-dev container-replicator: ERROR reading db /srv/3/node/sdb3/containers/544/3e5/8811f9249de0f711d6f652ab48aba3e5/8811f9249de0f711d6f652ab48aba3e5.db: #012Traceback (most recent call last):#012 File "/home/swift/OpenStack/swift/swift/common/db_replicator.py", line 436, in _replicate_object#012 info = broker.get_replication_info()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 543, in get_replication_info#012 info = self.get_info()#012 File "/home/swift/OpenStack/swift/swift/container/backend.py", line 411, in get_info#012 ''') % (trailing_sync, trailing_pol)).fetchone()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 129, in execute#012 self.timeout, self.db_file, lambda: sqlite3.Cursor.execute(#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 67, in _db_timeout#012 return call()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 130, in <lambda>#012 self, *args, **kwargs))#012OperationalError: no such column: object_count
Jan 26 11:32:25 ubuntu-swift-dev container-replicator: ERROR reading db /srv/3/node/sdb3/containers/632/054/9e20091f129e0ef83dfd9d112a9d8054/9e20091f129e0ef83dfd9d112a9d8054.db: #012Traceback (most recent call last):#012 File "/home/swift/OpenStack/swift/swift/common/db_replicator.py", line 436, in _replicate_object#012 info = broker.get_replication_info()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 543, in get_replication_info#012 info = self.get_info()#012 File "/home/swift/OpenStack/swift/swift/container/backend.py", line 411, in get_info#012 ''') % (trailing_sync, trailing_pol)).fetchone()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 129, in execute#012 self.timeout, self.db_file, lambda: sqlite3.Cursor.execute(#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 67, in _db_timeout#012 return call()#012 File "/home/swift/OpenStack/swift/swift/common/db.py", line 130, in <lambda>#012 self, *args, **kwargs))#012OperationalError: no such column: object_count
Adding more to this, i have couple of container DB that constantly fail in container replication.
Getting errros like this:
File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 130, in <lambda>#012 self, *args, **kwargs) )#012Operationa lError: no such column: object_count replicator: Replication run OVER replicator: Attempted to replicate 105 dbs in 0.32922 seconds (318.93944/s) replicator: Removed 0 dbs replicator: 202 successes, 4 failures replicator: no_change:202 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0 replicator: Beginning replication run replicator: ERROR reading db /srv/4/ node/sdb4/ containers/ 544/3e5/ 8811f9249de0f71 1d6f652ab48aba3 e5/8811f9249de0 f711d6f652ab48a ba3e5.db: #012Traceback (most recent call last):#012 File "/home/ swift/OpenStack /swift/ swift/common/ db_replicator. py", line 436, in _replicate_ object# 012 info = broker. get_replication _info() #012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 543, in get_replication _info#012 info = self.get_info()#012 File "/home/ swift/OpenStack /swift/ swift/container /backend. py", line 411, in get_info#012 ''') % (trailing_sync, trailing_ pol)).fetchone( )#012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 129, in execute#012 self.timeout, self.db_file, lambda: sqlite3. Cursor. execute( #012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 67, in _db_timeout#012 return call()#012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 130, in <lambda>#012 self, *args, **kwargs) )#012Operationa lError: no such column: object_count replicator: ERROR reading db /srv/4/ node/sdb4/ containers/ 462/54e/ 7383600001a3888 360f31a2c9257a5 4e/7383600001a3 888360f31a2c925 7a54e.db: #012Traceback (most recent call last):#012 File "/home/ swift/OpenStack /swift/ swift/common/ db_replicator. py", line 436, in _replicate_ object# 012 info = broker. get_replication _info() #012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 543, in get_replication _info#012 info = self.get_info()#012 File "/home/ swift/OpenStack /swift/ swift/container /backend. py", line 411, in get_info#012 ''') % (trailing_sync, trailing_ pol)).fetchone( )#012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 129, in execute#012 self.timeout, self.db_file, lambda: sqlite3. Cursor. execute( #012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 67, in _db_timeout#012 return call()#012 File "/home/ swift/OpenStack /swift/ swift/common/ db.py", line 130, in <lambda>#012 self, *args, **kwargs) )#012Operationa lError: no such column: object_count
Jan 26 13:47:08 ubuntu-swift-dev container-
Jan 26 13:47:08 ubuntu-swift-dev container-
Jan 26 13:47:08 ubuntu-swift-dev container-
Jan 26 13:47:08 ubuntu-swift-dev container-
Jan 26 13:47:08 ubuntu-swift-dev container-
Jan 26 13:47:11 ubuntu-swift-dev container-
Jan 26 13:47:11 ubuntu-swift-dev container-
Jan 26 13:47:11 ubuntu-swift-dev container-