modify reverted change 'Migrate from keystone v2.0 to v3'

Change-Id: I6a1ed896bc20f5761ee53a7fba9b45a1dc8c97b6
This commit is contained in:
Zhou Ya 2016-12-08 15:21:45 +08:00
parent 7bcf514994
commit c80340d50b
2 changed files with 11 additions and 3 deletions

View File

@ -45,11 +45,11 @@ WEBROOT = '/'
# NOTE: The version should be formatted as it appears in the URL for the
# service API. For example, The identity service APIs have inconsistent
# use of the decimal point, so valid options would be 2.0 or 3.
#OPENSTACK_API_VERSIONS = {
OPENSTACK_API_VERSIONS = {
# "data-processing": 1.1,
# "identity": 3,
"identity": 3,
# "volume": 2,
#}
}
# Set this to True if running on multi-domain model. When this is enabled, it
# will require user to enter the Domain name in addition to username for login.

View File

@ -58,6 +58,9 @@ function all_install
write_install_log "install keystone rpm"
install_rpm_by_yum "openstack-keystone"
write_install_log "install python-openstackclient rpm"
install_rpm_by_yum "python-openstackclient"
write_install_log "install ironic-discoverd depend rpm"
install_rpm_by_yum "python-flask"
@ -194,6 +197,11 @@ function all_install
[ "$?" -ne 0 ] && { write_install_log "Error:keystone-manage bootstrap command failed"; exit 1; }
fi
openstack project create --domain default --description "Demo Project" demo
openstack user create --domain default --password daisy daisy
openstack role create user
openstack role add --project demo --user daisy user
#creat daisy datebase tables
which daisy-manage >> $install_logfile 2>&1
if [ "$?" == 0 ];then