This repository has been archived by the owner on Apr 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
173 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/env python | ||
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | ||
from vsmclient.v1 import client as vsm_client | ||
|
||
# load vsm config | ||
CONF_FILE = "/etc/vsmdeploy/deployrc" | ||
conf_str = open(CONF_FILE, "r").read() | ||
CONF_DICT = dict([x.strip().split("=",1) for x in conf_str.split("\n") if "=" in x]) | ||
|
||
vsmclient = None | ||
|
||
def get_vsmclient(): | ||
global vsmclient | ||
if not vsmclient: | ||
vsmclient = vsm_client.Client('vsm', | ||
CONF_DICT['KEYSTONE_VSM_SERVICE_PASSWORD'], | ||
'service', | ||
"http://%s:5000/v2.0" % CONF_DICT['VSM_HOST'], | ||
) | ||
return vsmclient | ||
|
||
def cluster_refresh(): | ||
return get_vsmclient().clusters.refresh() | ||
|
||
cluster_refresh() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/env python | ||
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | ||
from vsmclient.v1 import client as vsm_client | ||
|
||
# load vsm config | ||
CONF_FILE = "/etc/vsmdeploy/deployrc" | ||
conf_str = open(CONF_FILE, "r").read() | ||
CONF_DICT = dict([x.strip().split("=",1) for x in conf_str.split("\n") if "=" in x]) | ||
|
||
vsmclient = None | ||
|
||
def get_vsmclient(): | ||
global vsmclient | ||
if not vsmclient: | ||
vsmclient = vsm_client.Client('vsm', | ||
CONF_DICT['KEYSTONE_VSM_SERVICE_PASSWORD'], | ||
'service', | ||
"http://%s:5000/v2.0" % CONF_DICT['VSM_HOST'], | ||
) | ||
return vsmclient | ||
|
||
def osd_refresh(): | ||
return get_vsmclient().osds.refresh() | ||
|
||
osd_refresh() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[global] | ||
auth supported = cephx | ||
keyring = /etc/ceph/keyring.admin | ||
max open files = 131072 | ||
|
||
[mds] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[global] | ||
auth supported = cephx | ||
keyring = /etc/ceph/keyring.admin | ||
max open files = 131072 | ||
|
||
[mds] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[global] | ||
auth supported = cephx | ||
keyring = /etc/ceph/keyring.admin | ||
max open files = 131072 | ||
|
||
[mds] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[global] | ||
auth supported = cephx | ||
keyring = /etc/ceph/keyring.admin | ||
max open files = 131072 | ||
|
||
[mds] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.