Replicator double quarantine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
David Goetz |
Bug Description
The account-replicator and possible other replicators cannot double quarantine.
Example traceback:
Mar 30 15:35:01 some-server account-replicator Quarantining DB /srv/node/
Mar 30 15:35:01 some-server account-replicator STDOUT: Traceback (most recent call last):
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/
Mar 30 15:35:01 some-server account-replicator STDOUT: func(*args, **kwargs)
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/
Mar 30 15:35:01 some-server account-replicator STDOUT: quarantine_
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/
Mar 30 15:35:01 some-server account-replicator STDOUT: renamer(object_dir, quarantine_dir)
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/
Mar 30 15:35:01 some-server account-replicator STDOUT: os.rename(old, new)
Mar 30 15:35:01 some-server account-replicator STDOUT: OSError: [Errno 17] File exists
Related branches
- Swift Core security contacts: Pending requested
-
Diff: 96 lines (+44/-1)2 files modifiedswift/common/db_replicator.py (+9/-1)
test/unit/common/test_db_replicator.py (+35/-0)
Changed in swift: | |
assignee: | nobody → David Goetz (david-goetz) |
Changed in swift: | |
status: | Confirmed → Fix Committed |
Changed in swift: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |