After applying the debug build of dib, it reported the current mount pattern as /opt/dib_tmp/image.3uTEKgO2/mnt but /proc/mounts has the absolute path of the mount recorded as /mnt/opt/dib_tmp/image.3uTEKgO2/mnt/dev. This fails the pattern match check in the code:
This symlink comes from the use of the local x1.large instance that provides the 80G drive on /mnt and moving /opt the /mnt/opt via a symlink as described in comment #7 above.
The fix/workaround is to remount the 80G drive under /opt. The dib create that succeeds under the nodepool account. The reason for earlier success under ubuntu was that the dib cache/tmp dirs were specified with the full path under /mnt/ubuntu so the umount command succeeded.
After applying the debug build of dib, it reported the current mount pattern as /opt/dib_ tmp/image. 3uTEKgO2/ mnt but /proc/mounts has the absolute path of the mount recorded as /mnt/opt/ dib_tmp/ image.3uTEKgO2/ mnt/dev. This fails the pattern match check in the code:
http:// git.openstack. org/cgit/ openstack/ diskimage- builder/ tree/lib/ common- functions# n286
This symlink comes from the use of the local x1.large instance that provides the 80G drive on /mnt and moving /opt the /mnt/opt via a symlink as described in comment #7 above.
The fix/workaround is to remount the 80G drive under /opt. The dib create that succeeds under the nodepool account. The reason for earlier success under ubuntu was that the dib cache/tmp dirs were specified with the full path under /mnt/ubuntu so the umount command succeeded.
The relevant part of the debug output is:
+ unmount_dir /opt/dib_ tmp/image. 3uTEKgO2/ mnt /opt/dib_ tmp/image. 3uTEKgO2/ mnt mnts= dib_tmp/ image.3uTEKgO2/ mnt'\'' ' tmp/image. 3uTEKgO2/ mnt' nodev,noexec, relatime 0 0 nodev,noexec, relatime 0 0 size=4082832k, nr_inodes= 1020708, mode=755 0 0 noexec, relatime, gid=5,mode= 620,ptmxmode= 000 0 0 noexec, relatime, size=817680k, mode=755 0 0 by-uuid/ ee1a8759- f2e2-4924- a2a3-505c432325 bc / ext4 rw,relatime, data=ordered 0 0 size=4k, mode=755 0 0 fuse/connection s fusectl rw,relatime 0 0 security securityfs rw,relatime 0 0 nodev,noexec, relatime, size=5120k 0 0 nodev,relatime 0 0 nodev,noexec, relatime, size=102400k, mode=755 0 0 data=ordered 0 0 cgroup/ systemd cgroup rw,nosuid, nodev,noexec, relatime, name=systemd 0 0 dib_tmp/ image.iYEI5csR/ mnt/tmp/ ccache ext3 rw,relatime, data=ordered 0 0 dib_tmp/ image.3uTEKgO2/ mnt/tmp/ ccache ext3 rw,relatime, data=ordered 0 0 dib_tmp/ image.3uTEKgO2/ mnt/var/ cache/apt/ archives ext3 rw,relatime, data=ordered 0 0 dib_tmp/ image.3uTEKgO2/ mnt/proc proc rw,relatime 0 0 dib_tmp/ image.3uTEKgO2/ mnt/dev devtmpfs rw,relatime, size=4082832k, nr_inodes= 1020708, mode=755 0 0 dib_tmp/ image.3uTEKgO2/ mnt/dev/ pts devpts rw,nosuid, noexec, relatime, gid=5,mode= 620,ptmxmode= 000 0 0 dib_tmp/ image.3uTEKgO2/ mnt/sys sysfs rw,relatime 0 0 tmp/image. 3uTEKgO2/ mnt ']' dib_tmp/ image.3uTEKgO2/ mnt' tmp/image. 3uTEKgO2/ mnt /opt/dib_ tmp/image. 3uTEKgO2/ built
+ local pattern=
+ echo 'Unmounting dirs matching pattern '\''/opt/
Unmounting dirs matching pattern '/opt/dib_
+ echo 'Current mounts:'
Current mounts:
+ cat /proc/mounts
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,
proc /proc proc rw,nosuid,
udev /dev devtmpfs rw,relatime,
devpts /dev/pts devpts rw,nosuid,
tmpfs /run tmpfs rw,nosuid,
/dev/disk/
none /sys/fs/cgroup tmpfs rw,relatime,
none /sys/fs/
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/
none /run/lock tmpfs rw,nosuid,
none /run/shm tmpfs rw,nosuid,
none /run/user tmpfs rw,nosuid,
none /sys/fs/pstore pstore rw,relatime 0 0
/dev/vdb /mnt ext3 rw,relatime,
systemd /sys/fs/
/dev/vdb /mnt/opt/
/dev/vdb /mnt/opt/
/dev/vdb /mnt/opt/
none /mnt/opt/
udev /mnt/opt/
devpts /mnt/opt/
none /mnt/opt/
+ '[' -n /opt/dib_
+ awk '{print $2}'
+ grep '^/opt/
+ '[' -n '' ']'
+ '[' -n '' ']'
+ mv /opt/dib_