Fix image size metric retrieval
I'm not sure what the purpose of this sed was, but all it's doing right now is cutting off the last digit of the image size. So an image of 1152 MB is being reported as 115. My best guess is that this was designed to remove a newline from the output, but in my local testing there is no newline. Maybe something changed in the output from du/cut. Change-Id: I225daf1e3abfe627713b1f54fae902236b5c321f
This commit is contained in:
parent
77f51c21c0
commit
f6192f8681
|
@ -207,7 +207,7 @@ if [ "$OSINFRA" = "0" ]; then
|
|||
$TRIPLEO_ROOT/tripleo-ci/scripts/tripleo.sh --overcloud-images 2>&1 | ts '%Y-%m-%d %H:%M:%S.000 |' | sudo dd of=/var/log/image_build.txt || (tail -n 50 /var/log/image_build.txt && false)
|
||||
stop_metric "tripleo.overcloud.${TOCI_JOBTYPE}.images.seconds"
|
||||
|
||||
OVERCLOUD_IMAGE_MB=$(du -ms overcloud-full.qcow2 | cut -f 1 | sed 's|.$||')
|
||||
OVERCLOUD_IMAGE_MB=$(du -ms overcloud-full.qcow2 | cut -f 1)
|
||||
record_metric "tripleo.overcloud.${TOCI_JOBTYPE}.image.size_mb" "$OVERCLOUD_IMAGE_MB"
|
||||
|
||||
start_metric "tripleo.register.nodes.seconds"
|
||||
|
|
Loading…
Reference in New Issue