diff --git a/devstack/lib/watcher b/devstack/lib/watcher index afabcaacb..b2b3a14fe 100644 --- a/devstack/lib/watcher +++ b/devstack/lib/watcher @@ -96,15 +96,13 @@ function configure_watcher { function create_watcher_accounts { create_service_user "watcher" "admin" - if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then - local watcher_service=$(get_or_create_service "watcher" \ - "infra-optim" "Watcher Infrastructure Optimization Service") - get_or_create_endpoint $watcher_service \ - "$REGION_NAME" \ - "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" \ - "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" \ - "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" - fi + local watcher_service=$(get_or_create_service "watcher" \ + "infra-optim" "Watcher Infrastructure Optimization Service") + get_or_create_endpoint $watcher_service \ + "$REGION_NAME" \ + "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" \ + "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" \ + "$WATCHER_SERVICE_PROTOCOL://$WATCHER_SERVICE_HOST:$WATCHER_SERVICE_PORT" } # create_watcher_conf() - Create a new watcher.conf file