Add cinder config to sample JSON ingester configs

Change-Id: Ic867beeb2aaae6cf754bedc02d25c53bbb77e9c5
partially-implements: bp json-data-model
This commit is contained in:
Eric Kao 2019-03-06 23:17:38 -08:00
parent 7676be3cb6
commit 8788b5b31d
3 changed files with 26 additions and 1 deletions

View File

@ -74,10 +74,12 @@ function configure_congress {
echo "keystone_admin_auth_config:" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " type: keystone" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " config:" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " project_name: $OS_PASSWORD" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " project_name: $OS_PROJECT_NAME" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " username: $OS_USERNAME" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " password: $OS_PASSWORD" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
echo " auth_url: http://$SERVICE_HOST/identity" >> "$CONGRESS_JSON_CONF_REUSABLES_PATH"
local OS_PROJECT_ID="$(openstack project show $OS_PROJECT_NAME -f value -c id)"
echo "cinder_path: volume/v3/$OS_PROJECT_ID/"
if [[ ! -d $CONGRESS_JSON_CONF_DIR ]]; then
mkdir $CONGRESS_JSON_CONF_DIR

View File

@ -6,3 +6,4 @@ keystone_admin_auth_config:
project_name: admin
password: password
primary_host: http://127.0.0.1
cinder_path: volume/v3/e0832c8c9e3c4f5ead5443fc78196c45/

View File

@ -0,0 +1,22 @@
name: _volume
poll_interval: 60
allow_exec_api: true
authentication: !ref keystone_admin_auth_config
api_endpoint_host: !ref primary_host
api_endpoint_path: !ref cinder_path
tables:
volumes:
poll:
api_path: volumes/detail?all_tenants=1
api_method: get
jsonpath: $.volumes[:]
snapshots:
poll:
api_path: snapshots/detail?all_tenants=1
api_method: get
jsonpath: $.snapshots[:]
transfers:
poll:
api_path: os-volume-transfer/detail?all_tenants=1
api_method: get
jsonpath: $.transfers[:]