Set host when using ceph storage to avoid cinder host volume stickyness

This commit is contained in:
James Page 2013-03-11 13:46:48 +00:00
parent e4ca39672c
commit ac6a7b79b5
1 changed files with 4 additions and 0 deletions

View File

@ -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
}