Skip to content

Commit

Permalink
Ceph cache tier
Browse files Browse the repository at this point in the history
Closes-Bug: #1579210
Added support for ceph cache tier provisining.

Change-Id: Iaee177bf778c5e678f020b8176596781737b9c21
  • Loading branch information
Jeya ganesh babu J committed May 6, 2016
1 parent 06e8801 commit 8f8cf57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fabfile/tasks/storage/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def create_storage_setup_cmd(mode):
"--openstack-ip %s" % openstack_ip,
"--orig-hostnames %s" % ' '.join(orig_hostnames),
"--service-dbpass %s" % get_service_dbpass(),
"--region-name %s" % get_region_name()]
"--region-name %s" % get_region_name(),
"--ssd-cache-tier %s" % get_storage_cache_tier()]
cmd = ' '.join(cmds)
return cmd

Expand Down
5 changes: 5 additions & 0 deletions fabfile/utils/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,8 @@ def get_storage_replica_size():
sys.exit(0)
return (replica_size)
#end get_storage_replica_size

# Return Storage cache tier
def get_storage_cache_tier():
return getattr(testbed, 'ceph_ssd_cache_tier', False)
#end get_storage_cache_tier

0 comments on commit 8f8cf57

Please sign in to comment.