Change: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b
added some timing messages around the volume operations in
exercises/volumes.sh. This was a good idea, but some
useless timing info was added to failed cases, this patch
pulls that back out. The only parameter used to detect
failure is a timeout, so outputing the time elapses in
these cases is useless.
Change-Id: I609a803a7293aa8a8e3cec186984de59bfe9b409
| ... | ... |
@@ -158,8 +158,6 @@ fi |
| 158 | 158 |
start_time=`date +%s` |
| 159 | 159 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep available; do sleep 1; done"; then |
| 160 | 160 |
echo "Volume $VOL_NAME not created" |
| 161 |
- end_time=`date +%s` |
|
| 162 |
- echo "Failed volume-create after $((end_time - start_time)) seconds" |
|
| 163 | 161 |
exit 1 |
| 164 | 162 |
fi |
| 165 | 163 |
end_time=`date +%s` |
| ... | ... |
@@ -176,8 +174,6 @@ nova volume-attach $VM_UUID $VOL_ID $DEVICE || \ |
| 176 | 176 |
die "Failure attaching volume $VOL_NAME to $NAME" |
| 177 | 177 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep in-use; do sleep 1; done"; then |
| 178 | 178 |
echo "Volume $VOL_NAME not attached to $NAME" |
| 179 |
- end_time=`date +%s` |
|
| 180 |
- echo "Failed volume-attach after $((end_time - start_time)) seconds" |
|
| 181 | 179 |
exit 1 |
| 182 | 180 |
fi |
| 183 | 181 |
end_time=`date +%s` |
| ... | ... |
@@ -195,8 +191,6 @@ start_time=`date +%s` |
| 195 | 195 |
nova volume-detach $VM_UUID $VOL_ID || die "Failure detaching volume $VOL_NAME from $NAME" |
| 196 | 196 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep available; do sleep 1; done"; then |
| 197 | 197 |
echo "Volume $VOL_NAME not detached from $NAME" |
| 198 |
- end_time=`date +%s` |
|
| 199 |
- echo "Failed volume-detach after $((end_time - start_time)) seconds" |
|
| 200 | 198 |
exit 1 |
| 201 | 199 |
fi |
| 202 | 200 |
end_time=`date +%s` |
| ... | ... |
@@ -207,8 +201,6 @@ start_time=`date +%s` |
| 207 | 207 |
nova volume-delete $VOL_ID || die "Failure deleting volume $VOL_NAME" |
| 208 | 208 |
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME; do sleep 1; done"; then |
| 209 | 209 |
echo "Volume $VOL_NAME not deleted" |
| 210 |
- end_time=`date +%s` |
|
| 211 |
- echo "Failed volume-delete after $((end_time - start_time)) seconds" |
|
| 212 | 210 |
exit 1 |
| 213 | 211 |
fi |
| 214 | 212 |
end_time=`date +%s` |