<div dir="ltr"><div>Hi Tony,</div><div>applying the patch reported here (<a href="https://review.openstack.org/#/c/561740/">https://review.openstack.org/#/c/561740/</a>) the issue is solved..</div><div>The above path was related to another issue (distutils) but is solves also the cleanup error.</div><div>Anycase I could unpatch the diskimage code and send you the log.</div><div>What do you think ?</div><div>Regards</div><div>Ignazio<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-02 3:34 GMT+02:00 Tony Breeds <span dir="ltr"><<a href="mailto:tony@bakeyournoodle.com" target="_blank">tony@bakeyournoodle.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, Jul 01, 2018 at 12:25:24PM +0200, Ignazio Cassano wrote:<br>
> Hi All,<br>
> I just installed disk-image builder on my centos 7.<br>
> For creating centos7 image I am using the same command used 3 o 4 months<br>
> ago, but wiith the last diskimage-builder installed with pip I got the<br>
> following error:<br>
> <br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:20<br>
> :   '[' -r /proc/meminfo ']'<br>
> ++<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:21<br>
> :   awk '/^MemTotal/ { print $2 }' /proc/meminfo<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:21<br>
> :   total_kB=8157200<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:24<br>
> :   RAM_NEEDED=4<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:25<br>
> :   '[' 8157200 -lt 4194304 ']'<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:tmpfs_<wbr>check:25<br>
> :   return 0<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:cleanup_<wbr>image_dir:211<br>
> :   timeout 120 sh -c 'while ! sudo umount -f /tmp/dib_image.azW5Wi4F; do<br>
> sleep 1; done'<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/common-functions:cleanup_<wbr>image_dir:216<br>
> :   rm -rf --one-file-system /tmp/dib_image.azW5Wi4F<br>
> +<br>
> /usr/share/diskimage-builder/<wbr>lib/img-functions:trap_<wbr>cleanup:46<br>
> :   exit 1<br>
> <br>
> <br>
> <br>
> Anyone knows if is it a bug ?<br>
<br>
</div></div>Not one I know of.  It looks like the image based install was close to<br>
completion, the tmpfs was unmounted but for some reason the removal of<br>
the (empty) directory failed.  The only reason I can think of is if a<br>
FS was still mounted.<br>
<br>
Are you able to send the full logs?  It's possible something failed<br>
earlier and we're just seeing a secondary failure.<br>
<br>
If you can supply the logs, can you supply your command line and link to<br>
the base image you're using?<br>
<br>
Yours Tony.<br>
</blockquote></div><br></div>