summaryrefslogtreecommitdiffstats
path: root/LICENSE
blob: 82681409e6cce69e56dbe6dc1b006ee1073bc6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Copyright 2017 Open Platform for NFV Project, Inc. and its contributors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
$IMGURL fi echo echo "========== Loading QTIP_CentOS image ==========" output=$(glance image-create \ --name QTIP_CentOS \ --visibility public \ --disk-format qcow2 \ --container-format bare \ --file $IMGPATH/$IMGNAME ) echo "$output" IMAGE_ID=$(echo "$output" | grep " id " | awk '{print $(NF-1)}') if [ -z "$IMAGE_ID" ]; then echo 'Failed uploading QTIP_CentOS image to cloud'. exit 1 fi echo "QTIP_CentOS image id: $IMAGE_ID" } rm -rf ${QTIP_DIR}/openrc ${REPOS_DIR}/releng/utils/fetch_os_creds.sh \ -d ${QTIP_DIR}/openrc \ -i ${INSTALLER_TYPE} \ -a ${INSTALLER_IP} source ${QTIP_DIR}/openrc load_image