Fix common issues for deploy model
Change-Id: I29a88bf0ed0ea445ad7f280cb8dc9943f6593c5e
This commit is contained in:
parent
06e72f347b
commit
222ea5c3cd
@ -154,6 +154,7 @@ function create_gyan_conf {
|
|||||||
iniset $GYAN_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
|
iniset $GYAN_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
|
||||||
iniset $GYAN_CONF DEFAULT my_ip "$HOST_IP"
|
iniset $GYAN_CONF DEFAULT my_ip "$HOST_IP"
|
||||||
iniset $GYAN_CONF DEFAULT host "$HOST_IP"
|
iniset $GYAN_CONF DEFAULT host "$HOST_IP"
|
||||||
|
iniset $GYAN_CONF DEFAULT transport_url "rabbit://stackrabbit:$RABBIT_PASSWORD@$SERVICE_HOST/"
|
||||||
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
|
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
|
||||||
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
|
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
|
||||||
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_host $RABBIT_HOST
|
iniset $GYAN_CONF oslo_messaging_rabbit rabbit_host $RABBIT_HOST
|
||||||
@ -180,6 +181,7 @@ function create_gyan_conf {
|
|||||||
iniset $GYAN_CONF keystone_authtoken www_authenticate_uri $KEYSTONE_SERVICE_URI_V3
|
iniset $GYAN_CONF keystone_authtoken www_authenticate_uri $KEYSTONE_SERVICE_URI_V3
|
||||||
iniset $GYAN_CONF keystone_authtoken auth_url $KEYSTONE_AUTH_URI_V3
|
iniset $GYAN_CONF keystone_authtoken auth_url $KEYSTONE_AUTH_URI_V3
|
||||||
iniset $GYAN_CONF keystone_authtoken auth_version v3
|
iniset $GYAN_CONF keystone_authtoken auth_version v3
|
||||||
|
iniset $GYAN_CONF comput host $HOST_IP
|
||||||
|
|
||||||
|
|
||||||
if is_fedora || is_suse; then
|
if is_fedora || is_suse; then
|
||||||
@ -306,8 +308,12 @@ function start_gyan {
|
|||||||
|
|
||||||
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
||||||
mkdir -p /opt/stack/data/gyan
|
mkdir -p /opt/stack/data/gyan
|
||||||
start_gyan_api
|
if is_service_enabled gyan-api; then
|
||||||
start_gyan_compute
|
start_gyan_api
|
||||||
|
fi
|
||||||
|
if is_service_enabled gyan-compute; then
|
||||||
|
start_gyan_compute
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# stop_gyan() - Stop running processes (non-screen)
|
# stop_gyan() - Stop running processes (non-screen)
|
||||||
|
@ -24,6 +24,7 @@ import inspect
|
|||||||
import json
|
import json
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
|
import zipfile
|
||||||
|
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_context import context as common_context
|
from oslo_context import context as common_context
|
||||||
|
@ -26,5 +26,5 @@ SQLAlchemy!=1.1.5,!=1.1.6,!=1.1.7,!=1.1.8,>=1.0.10 # MIT
|
|||||||
stevedore>=1.20.0 # Apache-2.0
|
stevedore>=1.20.0 # Apache-2.0
|
||||||
pypng
|
pypng
|
||||||
numpy
|
numpy
|
||||||
tensorflow
|
tensorflow==1.5
|
||||||
idx2numpy
|
idx2numpy
|
||||||
|
Loading…
Reference in New Issue
Block a user