Project

General

Profile

Actions

Bug #17639

closed

Upgrade fails if /var/lib/tfpboot/grub2 is not pre-created

Added by Jason Nance over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Fixed in Releases:
Found in Releases:

Description

Upgrading from Katello 3.1/TFM 1.12.4 to 3.2/1.13.2 fails during the "Running installer" phase with the following:

Upgrade Step: Running installer...
/usr/bin/grub2-mkimage -O x86_64-efi -d /usr/lib/grub/x86_64-efi -o /var/lib/tftpboot/grub2/grubx64.efi -p '' all_video boot btrfs cat chain configfile echo efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs linux backtrace usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug linuxefi returned 1 instead of one of [0]
/usr/share/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
/usr/share/ruby/vendor_ruby/puppet/type/exec.rb:160:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:89:in `block in perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `each'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
/Stage[main]/Foreman_proxy::Tftp/Exec[build-grub2-efi-image]/returns: change from notrun to 0 failed: /usr/bin/grub2-mkimage -O x86_64-efi -d /usr/lib/grub/x86_64-efi -o /var/lib/tftpboot/grub2/grubx64.efi -p '' all_video boot btrfs cat chain configfile echo efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs linux backtrace usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug linuxefi returned 1 instead of one of [0]
Could not set 'file' on ensure: No such file or directory - /var/lib/tftpboot/grub2/shim.efi20161212-32066-1ygu4kq.lock at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/tftp/copy_file.pp
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `ensure in locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:38:in `block in initialize'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:134:in `create_tmpname'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:28:in `initialize'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `new'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `replace_file'
/usr/share/ruby/vendor_ruby/puppet/type/file.rb:798:in `write'
/usr/share/ruby/vendor_ruby/puppet/type/file/content.rb:150:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:65:in `block (2 levels) in <module:Puppet>'
/usr/share/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
/usr/share/ruby/vendor_ruby/puppet/property.rb:498:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
Could not set 'file' on ensure: No such file or directory - /var/lib/tftpboot/grub2/shim.efi20161212-32066-1ygu4kq.lock at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/tftp/copy_file.pp
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `ensure in locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:38:in `block in initialize'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:134:in `create_tmpname'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:28:in `initialize'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `new'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `replace_file'
/usr/share/ruby/vendor_ruby/puppet/type/file.rb:798:in `write'
/usr/share/ruby/vendor_ruby/puppet/type/file/content.rb:150:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:65:in `block (2 levels) in <module:Puppet>'
/usr/share/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
/usr/share/ruby/vendor_ruby/puppet/property.rb:498:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
Wrapped exception:
No such file or directory - /var/lib/tftpboot/grub2/shim.efi20161212-32066-1ygu4kq.lock
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:186:in `rmdir'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `ensure in locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:178:in `locking'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:38:in `block in initialize'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:134:in `create_tmpname'
/usr/share/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:28:in `initialize'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `new'
/usr/share/ruby/vendor_ruby/puppet/util.rb:409:in `replace_file'
/usr/share/ruby/vendor_ruby/puppet/type/file.rb:798:in `write'
/usr/share/ruby/vendor_ruby/puppet/type/file/content.rb:150:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:65:in `block (2 levels) in <module:Puppet>'
/usr/share/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'
/usr/share/ruby/vendor_ruby/puppet/property.rb:498:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:581:in `sync'
/usr/share/ruby/vendor_ruby/puppet/type/file/ensure.rb:183:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:217:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:335:in `block in thinmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:334:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:169:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/share/ruby/benchmark.rb:296:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:302:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:236:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
/usr/bin/puppet:8:in `<main>'
/Stage[main]/Foreman_proxy::Tftp/Foreman_proxy::Tftp::Copy_file[/boot/efi/EFI/centos/shim.efi]/File[/var/lib/tftpboot/grub2/shim.efi]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /var/lib/tftpboot/grub2/shim.efi20161212-32066-1ygu4kq.lock at 12:/usr/share/foreman-installer/modules/foreman_proxy/manifests/tftp/copy_file.pp
Installing Done [100%]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/katello.log
Upgrade failed during the installation phase. Fix the error and re-run the upgrade.

Running the command manually shows:

[root@katello tftpboot]# /usr/bin/grub2-mkimage -O x86_64-efi -d /usr/lib/grub/x86_64-efi -o /var/lib/tftpboot/grub2/grubx64.efi -p '' all_video boot btrfs cat chain configfile echo efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs linux backtrace usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug linuxefi
/usr/bin/grub2-mkimage: error: cannot open ‘/var/lib/tftpboot/grub2/grubx64.efi’: No such file or directory.

If you create /var/lib/tftpboot/grub2 prior to running "foreman-installer --scenario katello --upgrade" the issue does not occur.


Related issues 3 (0 open3 closed)

Related to Smart Proxy - Bug #17566: TFTP provisioning fails when grub2 directory does not existRejectedActions
Has duplicate Katello - Bug #17356: Upgrade to 3.2 get the following errorDuplicate11/16/2016Actions
Has duplicate Katello - Bug #16820: Upgrading Katello 3.1 to 3.2 Error with /usr/bin/grub2-mkimageDuplicate10/06/2016Actions
Actions #1

Updated by Dominic Cleal over 7 years ago

  • Status changed from New to Need more information

What is the value of foreman_proxy::tftp_dirs in your installer answers file?

Actions #2

Updated by Jason Nance over 7 years ago

"foreman_proxy::params::tftp_dirs":
- /var/lib/tftpboot/pxelinux.cfg
- /var/lib/tftpboot/grub
- /var/lib/tftpboot/grub2
- /var/lib/tftpboot/boot
- /var/lib/tftpboot/ztp.cfg
- /var/lib/tftpboot/poap.cfg

Note that I don't have a "grub" dir, either:

  1. ls l /var/lib/tftpboot/
    total 180
    drwxr-xr-x. 3 foreman-proxy root 4096 Nov 14 13:25 boot
    -rw-r--r-
    . 1 root root 20704 Dec 12 08:41 chain.c32
    drwxr-xr-x. 2 root root 39 Dec 12 11:27 grub2 <--- created manually
    rw-r--r-. 1 root root 33628 Dec 12 08:41 mboot.c32
    rw-r--r-. 1 root root 26140 Dec 12 08:41 memdisk
    rw-r--r-. 1 root root 55012 Dec 12 08:41 menu.c32
    drwxr-xr-x. 2 foreman-proxy root 6 Sep 14 10:12 poap.cfg
    rw-r--r-. 1 root root 26764 Dec 12 08:41 pxelinux.0
    drwxr-xr-x. 2 foreman-proxy root 4096 Dec 2 16:15 pxelinux.cfg
    drwxr-xr-x. 2 foreman-proxy root 6 Sep 14 10:12 ztp.cfg
Actions #3

Updated by Jason Nance over 7 years ago

Err... that may not be the param you were asking for. That info came out of /etc/foreman-installer/scenarios.d/d20161212-25153-2corcl/default_values.yaml

Here's the value from /etc/foreman-installer/scenarios.d/katello-answers.yaml:

tftp_dirs:
- /var/lib/tftpboot/pxelinux.cfg
- /var/lib/tftpboot/boot
- /var/lib/tftpboot/ztp.cfg
- /var/lib/tftpboot/poap.cfg
Actions #4

Updated by Dominic Cleal over 7 years ago

  • Project changed from Installer to Katello
  • Status changed from Need more information to New

Likely a bug in Katello then, I think the parameter upgrade is fine in Foreman's installer.

Actions #5

Updated by Justin Sherrill over 7 years ago

  • Category set to Installer
  • Assignee set to Eric Helms

Is your base OS el6 or el7?

Actions #6

Updated by Jason Nance over 7 years ago

EL 7 (update 3)

Actions #7

Updated by Lukas Zapletal over 7 years ago

Just in case Dominic was not clear, there is a migration in foreman installer that should migrate it.

https://github.com/theforeman/foreman-installer/commit/78e5b78360daa21df1d2541994abd8e2849ed947

Check if this migration is present on your system (find for the file name). Check it was executed.

Actions #8

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/463 added
Actions #9

Updated by Anonymous over 7 years ago

  • Related to Bug #17566: TFTP provisioning fails when grub2 directory does not exist added
Actions #10

Updated by Justin Sherrill over 7 years ago

  • translation missing: en.field_release set to 188
Actions #11

Updated by Anonymous over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #12

Updated by Anonymous over 7 years ago

  • Has duplicate Bug #17356: Upgrade to 3.2 get the following error added
Actions #13

Updated by Anonymous over 7 years ago

  • Has duplicate Bug #16820: Upgrading Katello 3.1 to 3.2 Error with /usr/bin/grub2-mkimage added
Actions #14

Updated by The Foreman Bot about 7 years ago

  • Pull request https://github.com/Katello/katello-installer/pull/470 added
Actions

Also available in: Atom PDF