Problem:
I’m looking at using the bootdisk plugin to automatically provision VMware hosts. It works fine in BIOS mode, but I’m hoping to use EFI. I’m thinking this doesn’t currently work because the provisioning process gets forced to use the minimal host image, but to be usable on EFI it would need the full host image. Is there a way as a user to force this automated workflow to use the full host image as opposed to the minimal one?
Right. But can I use it in the automated provisioning workflow? I don’t see an option to choose which image, it just seems to use the minimal host image no matter what
Then I go ahead and click submit and get a host in VMware, but see this:
I believe this is because it’s using a per-host image as opposed to a full host image (sorry if the nomenclature I used earlier was wrong). I’m unclear if there’s a way to force it to use a full host image.
Thanks for looking into this! I’m not sure I know the proper way to apply this patch to an existing foreman installation. I tried anyway, ended up with this error:
I don’t have VMWare so I can’t reproduce it here, can you revert and apply again? This time I added a logging message to find out what kind of object is this called on. Ruby can be sometimes terribly confusing when objects are extended and the context is not clear. Send me the info log line that reads ISO IMAGE OBJECT.
When you encounter the error you showed on the screenshot, go to production.log and there should be an error message with many .rb files and line numbers. Pastebin me that.
Damn, the stacktrace is swallowed. Can you try again now with debug logging turned on? Foreman core should log the backtrace for rolled transactions in INFO log, I wonder why this does not work.
Just before trying again do one additional patch:
diff --git a/app/models/concerns/foreman_bootdisk/orchestration/compute.rb b/app/models/concerns/foreman_bootdisk/orchestration/compute.rb
index dfed569..5809bf4 100644
--- a/app/models/concerns/foreman_bootdisk/orchestration/compute.rb
+++ b/app/models/concerns/foreman_bootdisk/orchestration/compute.rb
@@ -71,6 +71,7 @@ module ForemanBootdisk
def setGenerateIsoImage
bootdisk_generate_iso_image
rescue StandardError => e
+ Rails.logger.info "BT (#{exception.class}): #{exception.message}\n" + backtrace.join("\n")
failure format(_('Failed to generate ISO image for instance %{name}: %{message}'), name: name, message: e.message), e
end