sharder fails when drive is unmounted
Bug #1806500 reported by
John Dickinson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
Unassigned |
Bug Description
The container sharder process fails if a drive is unmounted on the current node. This is because the internal `swift.
Changed in swift: | |
importance: | Critical → High |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/621727 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=c26d67efcf4 4c813034f59b1df 78d59fdb4a50e7
Committed: https:/
Submitter: Zuul
Branch: master
commit c26d67efcf44c81 3034f59b1df78d5 9fdb4a50e7
Author: John Dickinson <email address hidden>
Date: Mon Dec 3 14:22:59 2018 -0800
fixed _check_node() in the container sharder
Previously, _check_node() wouldn't catch the raise ValueError when
a drive was unmounted. Therefore the error would bubble up, uncaught,
and stop the shard cycle. The practical effect is that an unmounted
drive on a node would prevent sharding for happening.
This patch updates _check_node() to properly use the check_drive()
method. Furthermore, the _check_node() return value has been modified
to be more similar to what check_drive() actually returns. This
should help prevent similar errors from being introduced in the future.
Closes-Bug: #1806500
Change-Id: I3da9b5b120a598 0e77ef5c4dc8fa1 697e462ce0d