Change-Id: If73435968cfbd0dd3cc519f0a30e02bec5fcb386
Sean Dague authored on 2013/10/22 23:08:04... | ... |
@@ -1015,7 +1015,7 @@ if is_service_enabled nova && is_baremetal; then |
1015 | 1015 |
prepare_baremetal_toolchain |
1016 | 1016 |
configure_baremetal_nova_dirs |
1017 | 1017 |
if [[ "$BM_USE_FAKE_ENV" = "True" ]]; then |
1018 |
- create_fake_baremetal_env |
|
1018 |
+ create_fake_baremetal_env |
|
1019 | 1019 |
fi |
1020 | 1020 |
fi |
1021 | 1021 |
|
... | ... |
@@ -1176,26 +1176,26 @@ if is_service_enabled g-reg; then |
1176 | 1176 |
TOKEN=$(keystone token-get | grep ' id ' | get_field 2) |
1177 | 1177 |
|
1178 | 1178 |
if is_baremetal; then |
1179 |
- echo_summary "Creating and uploading baremetal images" |
|
1179 |
+ echo_summary "Creating and uploading baremetal images" |
|
1180 | 1180 |
|
1181 |
- # build and upload separate deploy kernel & ramdisk |
|
1182 |
- upload_baremetal_deploy $TOKEN |
|
1181 |
+ # build and upload separate deploy kernel & ramdisk |
|
1182 |
+ upload_baremetal_deploy $TOKEN |
|
1183 | 1183 |
|
1184 |
- # upload images, separating out the kernel & ramdisk for PXE boot |
|
1185 |
- for image_url in ${IMAGE_URLS//,/ }; do |
|
1186 |
- upload_baremetal_image $image_url $TOKEN |
|
1187 |
- done |
|
1184 |
+ # upload images, separating out the kernel & ramdisk for PXE boot |
|
1185 |
+ for image_url in ${IMAGE_URLS//,/ }; do |
|
1186 |
+ upload_baremetal_image $image_url $TOKEN |
|
1187 |
+ done |
|
1188 | 1188 |
else |
1189 |
- echo_summary "Uploading images" |
|
1189 |
+ echo_summary "Uploading images" |
|
1190 | 1190 |
|
1191 |
- # Option to upload legacy ami-tty, which works with xenserver |
|
1192 |
- if [[ -n "$UPLOAD_LEGACY_TTY" ]]; then |
|
1193 |
- IMAGE_URLS="${IMAGE_URLS:+${IMAGE_URLS},}https://github.com/downloads/citrix-openstack/warehouse/tty.tgz" |
|
1194 |
- fi |
|
1191 |
+ # Option to upload legacy ami-tty, which works with xenserver |
|
1192 |
+ if [[ -n "$UPLOAD_LEGACY_TTY" ]]; then |
|
1193 |
+ IMAGE_URLS="${IMAGE_URLS:+${IMAGE_URLS},}https://github.com/downloads/citrix-openstack/warehouse/tty.tgz" |
|
1194 |
+ fi |
|
1195 | 1195 |
|
1196 |
- for image_url in ${IMAGE_URLS//,/ }; do |
|
1197 |
- upload_image $image_url $TOKEN |
|
1198 |
- done |
|
1196 |
+ for image_url in ${IMAGE_URLS//,/ }; do |
|
1197 |
+ upload_image $image_url $TOKEN |
|
1198 |
+ done |
|
1199 | 1199 |
fi |
1200 | 1200 |
fi |
1201 | 1201 |
|
... | ... |
@@ -1207,7 +1207,7 @@ fi |
1207 | 1207 |
if is_service_enabled nova && is_baremetal; then |
1208 | 1208 |
# create special flavor for baremetal if we know what images to associate |
1209 | 1209 |
[[ -n "$BM_DEPLOY_KERNEL_ID" ]] && [[ -n "$BM_DEPLOY_RAMDISK_ID" ]] && \ |
1210 |
- create_baremetal_flavor $BM_DEPLOY_KERNEL_ID $BM_DEPLOY_RAMDISK_ID |
|
1210 |
+ create_baremetal_flavor $BM_DEPLOY_KERNEL_ID $BM_DEPLOY_RAMDISK_ID |
|
1211 | 1211 |
|
1212 | 1212 |
# otherwise user can manually add it later by calling nova-baremetal-manage |
1213 | 1213 |
[[ -n "$BM_FIRST_MAC" ]] && add_baremetal_node |
... | ... |
@@ -1229,7 +1229,7 @@ fi |
1229 | 1229 |
CURRENT_RUN_TIME=$(date "+$TIMESTAMP_FORMAT") |
1230 | 1230 |
echo "# $CURRENT_RUN_TIME" >$TOP_DIR/.stackenv |
1231 | 1231 |
for i in BASE_SQL_CONN ENABLED_SERVICES HOST_IP LOGFILE \ |
1232 |
- SERVICE_HOST SERVICE_PROTOCOL STACK_USER TLS_IP; do |
|
1232 |
+ SERVICE_HOST SERVICE_PROTOCOL STACK_USER TLS_IP; do |
|
1233 | 1233 |
echo $i=${!i} >>$TOP_DIR/.stackenv |
1234 | 1234 |
done |
1235 | 1235 |
|