Fix use of undefined KEYSTONE_SERVICE_HOST in Ceilometer
This variable is never defined anywhere, and it is not one of the variable automatically exported by k8s or docker. It should be KEYSTONE_PUBLIC_SERVICE_HOST instead. Change-Id: Ib65b0189d0a767212fbb7eff4ce81717d492c3e2
This commit is contained in:
parent
9aadaef82e
commit
bfa5d0a2ec
@ -25,14 +25,14 @@ cfg=/etc/ceilometer/ceilometer.conf
|
||||
crudini --set $cfg \
|
||||
DEFAULT rpc_backend rabbit
|
||||
crudini --set $cfg \
|
||||
DEFAULT rabbit_host ${KEYSTONE_SERVICE_HOST}
|
||||
DEFAULT rabbit_host ${RABBITMQ_SERVICE_HOST}
|
||||
crudini --set $cfg \
|
||||
DEFAULT rabbit_password ${RABBITMQ_PASS}
|
||||
|
||||
crudini --set $cfg \
|
||||
keystone_authtoken \
|
||||
auth_uri \
|
||||
"http://${KEYSTONE_SERVICE_HOST}:5000/"
|
||||
"http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/"
|
||||
crudini --set $cfg \
|
||||
keystone_authtoken \
|
||||
admin_tenant_name \
|
||||
@ -49,7 +49,7 @@ crudini --set $cfg \
|
||||
crudini --set $cfg \
|
||||
service_credentials \
|
||||
os_auth_url \
|
||||
${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_SERVICE_HOST}:5000/
|
||||
${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/
|
||||
crudini --set $cfg \
|
||||
service_credentials \
|
||||
os_username \
|
||||
|
@ -4,7 +4,7 @@
|
||||
. /opt/kolla/config-ceilometer.sh
|
||||
|
||||
|
||||
check_required_vars KEYSTONE_ADMIN_TOKEN KEYSTONE_SERVICE_HOST KEYSTONE_AUTH_PROTOCOL CEILOMETER_KEYSTONE_USER ADMIN_TENANT_NAME
|
||||
check_required_vars KEYSTONE_ADMIN_TOKEN RABBITMQ_SERVICE_HOST KEYSTONE_AUTH_PROTOCOL CEILOMETER_KEYSTONE_USER ADMIN_TENANT_NAME
|
||||
|
||||
check_for_keystone
|
||||
|
||||
@ -18,7 +18,7 @@ crudini --set /etc/nova/nova.conf DEFAULT notification_driver ceilometer.compute
|
||||
#ceilometer settings
|
||||
cfg=/etc/ceilometer/ceilometer.conf
|
||||
crudini --set $cfg publisher_rpc metering_secret ${KEYSTONE_ADMIN_TOKEN}
|
||||
crudini --set $cfg rabbit_host ${KEYSTONE_SERVICE_HOST}
|
||||
crudini --set $cfg rabbit_host ${RABBITMQ_SERVICE_HOST}
|
||||
crudini --set $cfg rabbit_password ${RABBITMQ_PASS}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user