Merge "Drop usage of keystoneclient"

This commit is contained in:
Ben Nemec 2015-04-24 17:06:15 +02:00 committed by Gerrit Code Review
commit 8b69adc4ea
3 changed files with 11 additions and 11 deletions

View File

@ -59,15 +59,15 @@ ENDPOINT_LIST="--glance-password $UNDERCLOUD_GLANCE_PASSWORD
REGISTER_SERVICE_OPTS= REGISTER_SERVICE_OPTS=
# Needed by ceilometer user in register-endpoint # Needed by ceilometer user in register-endpoint
if ! keystone role-get ResellerAdmin; then if ! openstack role show ResellerAdmin; then
keystone role-create --name=ResellerAdmin openstack role create ResellerAdmin
fi fi
# TODO: this needs to be switched over to use os-cloud-config's setup-endpoints # TODO: this needs to be switched over to use os-cloud-config's setup-endpoints
tripleo setup-endpoints $UNDERCLOUD_IP $ENDPOINT_LIST $REGISTER_SERVICE_OPTS tripleo setup-endpoints $UNDERCLOUD_IP $ENDPOINT_LIST $REGISTER_SERVICE_OPTS
if ! keystone role-get heat_stack_user; then if ! openstack role show heat_stack_user; then
keystone role-create --name heat_stack_user openstack role create heat_stack_user
fi fi
DHCP_START=$(os-apply-config --key neutron.dhcp_start --type netaddress) DHCP_START=$(os-apply-config --key neutron.dhcp_start --type netaddress)
@ -102,7 +102,7 @@ for flavor in m1.tiny m1.small m1.medium m1.large m1.xlarge; do
done done
# Disable nova quotas # Disable nova quotas
nova quota-update --cores -1 --instances -1 --ram -1 $(keystone tenant-get admin | awk '$2=="id" {print $4}') nova quota-update --cores -1 --instances -1 --ram -1 $(openstack project show admin | awk '$2=="id" {print $4}')
# instack-prepare-for-overcloud # instack-prepare-for-overcloud
rm -rf $HOME/.novaclient rm -rf $HOME/.novaclient

View File

@ -420,8 +420,8 @@ ${SSLBASE:+-s $PUBLIC_API_URL}
# REGISTER_SERVICE_OPTS="--ceilometer-password $OVERCLOUD_CEILOMETER_PASSWORD " # REGISTER_SERVICE_OPTS="--ceilometer-password $OVERCLOUD_CEILOMETER_PASSWORD "
REGISTER_SERVICE_OPTS="" REGISTER_SERVICE_OPTS=""
keystone role-create --name=swiftoperator openstack role create swiftoperator
keystone role-create --name=ResellerAdmin openstack role create ResellerAdmin
tripleo setup-endpoints $OVERCLOUD_IP \ tripleo setup-endpoints $OVERCLOUD_IP \
--cinder-password $OVERCLOUD_CINDER_PASSWORD \ --cinder-password $OVERCLOUD_CINDER_PASSWORD \
@ -432,7 +432,7 @@ tripleo setup-endpoints $OVERCLOUD_IP \
--swift-password $OVERCLOUD_SWIFT_PASSWORD \ --swift-password $OVERCLOUD_SWIFT_PASSWORD \
$REGISTER_SERVICE_OPTS \ $REGISTER_SERVICE_OPTS \
${SSLBASE:+--ssl $PUBLIC_API_URL} ${SSLBASE:+--ssl $PUBLIC_API_URL}
keystone role-create --name heat_stack_user openstack role create heat_stack_user
# setup-neutron "" "" 10.0.0.0/8 "" "" "" "" 192.0.2.45 192.0.2.64 192.0.2.0/24 # setup-neutron "" "" 10.0.0.0/8 "" "" "" "" 192.0.2.45 192.0.2.64 192.0.2.0/24
NETWORK_CIDR=${NETWORK_CIDR:-"10.0.0.0/8"} NETWORK_CIDR=${NETWORK_CIDR:-"10.0.0.0/8"}
FLOATING_IP_START=${FLOATING_IP_START:-"192.0.2.45"} FLOATING_IP_START=${FLOATING_IP_START:-"192.0.2.45"}

View File

@ -72,7 +72,7 @@ STDERR=/dev/null
export PYTHONWARNINGS="ignore" export PYTHONWARNINGS="ignore"
DEPLOY_NAME=${DEPLOY_NAME:-"ironic-discover"} DEPLOY_NAME=${DEPLOY_NAME:-"ironic-discover"}
IRONIC=$(keystone endpoint-get --service baremetal | grep publicURL | awk '{ print $4; }') IRONIC=$(openstack endpoint show baremetal | grep publicurl | awk '{ print $4; }')
IRONIC=${IRONIC%/} IRONIC=${IRONIC%/}
while true ; do while true ; do
@ -308,7 +308,7 @@ function setup_flavors {
function show_profile { function show_profile {
node_ids=$(ironic node-list | tail -n +4 | head -n -1 | awk -F "| " '{print $2}') node_ids=$(ironic node-list | tail -n +4 | head -n -1 | awk -F "| " '{print $2}')
token=$(keystone token-get | grep ' id ' | awk '{print $4}') token=$(openstack token issue | grep ' id ' | awk '{print $4}')
echo " Querying assigned profiles ... " echo " Querying assigned profiles ... "
echo echo
for node_id in $node_ids; do for node_id in $node_ids; do
@ -328,7 +328,7 @@ function wait_for_hypervisor_stats {
expected_memory=0 expected_memory=0
expected_vcpus=0 expected_vcpus=0
token=$(keystone token-get | grep ' id ' | awk '{print $4}') token=$(openstack token issue | grep ' id ' | awk '{print $4}')
echo -n " Wating for nova hypervisor stats ... " echo -n " Wating for nova hypervisor stats ... "
for node_id in $node_ids; do for node_id in $node_ids; do
mem=$(curl -s -H "x-auth-token: $token" $IRONIC/v1/nodes/$node_id | jq '.properties.memory_mb | tonumber') mem=$(curl -s -H "x-auth-token: $token" $IRONIC/v1/nodes/$node_id | jq '.properties.memory_mb | tonumber')