curtin fails to install centos7 image

Bug #1497080 reported by Matt Dirba
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS Image Builder
Fix Released
High
Blake Rouse

Bug Description

# dpkg -l maas-image*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii maas-image-bui 0.9.0+bzr24- all Library and tools for the MAAS Im

# maas-image-builder -a amd64 -o centos7-amd64-root-tgz centos --edition 7
created centos7-amd64-root-tgz

#maas my-maas boot-resources create name=centos7 title="CentOS 7" architecture=amd64/generic content@=/cache/bootimages/centos7-amd64-root-tgzmaas my-maas boot-resources create name=centos7 title="CentOS 7" architecture=amd64/generic content@=/cache/bootimages/centos7-amd64-root-tgz

#deployed centos7 to machine and deployment failed on maas with
325632K ........ ........ ........ ........ ........ ........ 95% 145M 0s
328704K ........ ........ ........ ........ ........ ........ 96% 40.4M 0s
331776K ........ ........ ........ ........ ........ ........ 97% 37.3M 0s
334848K ........ ........ ........ ........ ........ ........ 98% 37.0M 0s
337920K ........ ........ ........ ........ ........ ........ 99% 86.7M 0s
340992K ........ ........ ........ ... 100% 33.4M=6.8s

2015-09-18 03:03:52 (49.6 MB/s) - written to stdout [350964099/350964099]

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-229.14.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-229.14.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-e205686f13844b28a43d776611ec4025
Found initrd image: /boot/initramfs-0-rescue-e205686f13844b28a43d776611ec4025.img
done
Traceback (most recent call last):
  File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 333, in <module>
    main()
  File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 323, in main
    install_efi(target, uefi_part['device_path'])
  File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 170, in install_efi
    os.path.join(tmp_efi, 'EFI'))
  File "/usr/lib/python2.7/shutil.py", line 171, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/tmp/tmpPX2toc/target/boot/efi/EFI'
Unexpected error while running command.
Command: ['/tmp/tmpPX2toc/target/curtin/curtin-hooks']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: 'Generating grub configuration file ...\nFound linux image: /boot/vmlinuz-3.10.0-229.14.1.el7.x86_64\nFound initrd image: /boot/initramfs-3.10.0-229.14.1.el7.x86_64.img\nFound linux image: /boot/vmlinuz-0-rescue-e205686f13844b28a43d776611ec4025\nFound initrd image: /boot/initramfs-0-rescue-e205686f13844b28a43d776611ec4025.img\ndone\nTraceback (most recent call last):\n File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 333, in <module>\n main()\n File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 323, in main\n install_efi(target, uefi_part[\'device_path\'])\n File "/tmp/tmpPX2toc/target/curtin/curtin-hooks", line 170, in install_efi\n os.path.join(tmp_efi, \'EFI\'))\n File "/usr/lib/python2.7/shutil.py", line 171, in copytree\n names = os.listdir(src)\nOSError: [Errno 2] No such file or directory: \'/tmp/tmpPX2toc/target/boot/efi/EFI\'\nUnexpected error while running command.\nCommand: [\'/tmp/tmpPX2toc/target/curtin/curtin-hooks\']\nExit code: 1\nReason: -\nStdout: \'\'\nStderr: \'\'\n'
Stderr: ''

Revision history for this message
Matt Dirba (5qxm) wrote :

# dpkg -l maas*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii maas 1.8.0+bzr400 all MAAS server all-in-one metapackag
ii maas-cli 1.8.0+bzr400 all MAAS command line API tool
ii maas-cluster-c 1.8.0+bzr400 all MAAS server cluster controller
ii maas-common 1.8.0+bzr400 all MAAS server common files
ii maas-dhcp 1.8.0+bzr400 all MAAS DHCP server
rc maas-dns 1.8.0+bzr400 all MAAS DNS server
ii maas-proxy 1.8.0+bzr400 all MAAS Caching Proxy
ii maas-region-co 1.8.0+bzr400 all MAAS server complete region contr
ii maas-region-co 1.8.0+bzr400 all MAAS Server minimum region contro

# dpkg -l curtin*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un curtin <none> <none> (no description available)
ii curtin-common 0.1.0~bzr221 all Library and tools for curtin inst

Changed in maas-image-builder:
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Blake Rouse (blake-rouse)
information type: Public → Proprietary
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.