Set host when using ceph storage to avoid cinder host volume stickyness
This commit is contained in:
parent
e4ca39672c
commit
ac6a7b79b5
|
@ -189,6 +189,10 @@ EOF
|
|||
# Reconfigure cinder-volume
|
||||
set_or_update volume_driver cinder.volume.driver.RBDDriver
|
||||
set_or_update rbd_pool cinder
|
||||
# Set host to service name to ensure that requests get
|
||||
# distributed across all cinder servers in a cluster
|
||||
# as they can all service ceph requests.
|
||||
set_or_update host "$SERVICE_NAME"
|
||||
cinder_ctl "cinder-volume" restart
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue