Cannot create a vmware instance (unexpected path class NilClas)

Problem:
Failed to save: Failed to create a compute sandbox (VMware) instance otvmi341s: unexpected path class NilClass

Expected outcome:
a new server setup !
Foreman and Proxy versions:
3.6.1
Foreman and Proxy plugin versions:

Distribution and version:
RHEL 8.7
rubygem-foreman_expire_hosts-8.1.0-1.fm3_6.el8.noarch
rubygem-foreman_bootdisk-doc-21.0.4-1.fm3_6.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.fm3_0.el8.noarch
foreman-release-3.6.1-1.el8.noarch
foreman-selinux-3.6.1-1.el8.noarch
foreman-postgresql-3.6.1-1.el8.noarch
foreman-proxy-3.6.1-1.el8.noarch
rubygem-hammer_cli_foreman-3.6.0-1.el8.noarch
rubygem-hammer_cli_foreman_ansible-0.5.0-1.fm3_6.el8.noarch
rubygem-foreman_puppet-5.0.0-1.fm3_6.el8.noarch
rubygem-foreman_templates-9.3.0-2.fm3_5.el8.noarch
foreman-dynflow-sidekiq-3.6.1-1.el8.noarch
foreman-3.6.1-1.el8.noarch
foreman-service-3.6.1-1.el8.noarch
foreman-cli-3.6.1-1.el8.noarch
rubygem-hammer_cli_foreman_puppet-0.0.6-1.fm3_4.el8.noarch
rubygem-foreman_bootdisk-21.0.4-1.fm3_6.el8.noarch
rubygem-foreman_webhooks-3.0.5-1.fm3_5.el8.noarch
foreman-vmware-3.6.1-1.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.18-1.fm3_5.el8.noarch
rubygem-foreman_discovery-22.0.4-1.fm3_6.el8.noarch
foreman-installer-3.6.1-1.el8.noarch
rubygem-foreman_hooks-0.3.17-3.fm3_3.el8.noarch
foreman-debug-3.6.1-1.el8.noarch

Other relevant data:
3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/configuration.rb:252:in call' 3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/request.rb:77:in block in handle_request’
3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/thread_pool.rb:340:in with_force_shutdown' 3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/request.rb:76:in handle_request’
3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/server.rb:443:in process_client' 3b039e18 | /usr/share/gems/gems/puma-5.6.5/lib/puma/thread_pool.rb:147:in block in spawn_thread’
3b039e18 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context’
2023-04-05T04:24:58 [W|app|3b039e18] Rolling back due to a problem: [#<Orchestration::Task:0x000055d684171ed8 @name=“Set up compute instance otvmi341s”, @id=“Set up compute instance otvmi341s”, @status=“failed”, @priority=3, @action=[#<Host::Managed id: nil, name: “otvmi341s.priv.atos.fr”, last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: 1, operatingsystem_id: 2, ptable_id: 162, medium_id: 17, build: true, comment: “”, disk: “”, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 4, owner_type: “User”, enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: nil, image_file: nil, uuid: “502c8b13-4784-31d2-5747-a97579a9573d”, compute_resource_id: 1, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: “Host::Managed”, otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: “build”, grub_pass: nil, discovery_rule_id: nil, expired_on: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: “PXELinux BIOS”, initiated_at: nil, build_errors: nil, creator_id: nil>, :setCompute], @created=1680683098.4465923, @timestamp=2023-04-05 08:24:58.499044297 UTC>]
2023-04-05T04:24:58 [I|app|3b039e18] Processed 1 tasks from queue ‘Host::Managed Main’, completed 0/10
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Set up compute instance otvmi341s’ failed
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Query instance details for otvmi341s’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Create DHCP Settings for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Create IPv4 DNS record for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Create Reverse IPv4 DNS record for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Deploy TFTP PXELinux config for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Deploy TFTP PXEGrub2 config for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Deploy TFTP PXEGrub config for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Deploy TFTP iPXE config for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [E|app|3b039e18] Task ‘Fetch TFTP boot files for otvmi341s.foreman-install…com’ canceled
2023-04-05T04:24:58 [W|api|3b039e18] param host[puppetclass_] has been deprecated in favor of host[puppet_attributes][puppetclass_]
2023-04-05T04:24:58 [W|api|3b039e18] param host[puppetclass_] has been deprecated in favor of host[puppet_attributes][puppetclass_]
2023-04-05T04:24:58 [E|app|3b039e18] Failed to save: Failed to create a compute sandbox (VMware) instance otvmi341s.: unexpected path class NilClass
3b039e18 |
2023-04-05T04:24:58 [D|app|3b039e18] Rendering layout layouts/application.html.erb
2023-04-05T04:24:58 [D|app|3b039e18] Rendering hosts/new.html.erb within layouts/application
2023-04-05T04:24:58 [D|app|3b039e18] Rendered hosts/_progress.html.erb (Duration: 2.3ms | Allocations: 5141)
2023-04-05T04:24:58 [D|tax|3b039e18] Current organization set to Default Organization
2023-04-05T04:24:58 [D|tax|3b039e18] Current location set to Default Location
2023-04-05T04:24:58 [D|app|3b039e18] Rendered /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb (Duration: 11.4ms | Allocations: 7588)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered collection of /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_selected_classes.html.erb [0 times] (Duration: 0.4ms | Allocations: 162)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered collection of /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_classes_in_groups.html.erb [0 times] (Duration: 0.0ms | Allocations: 9)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_classes.html.erb (Duration: 2.4ms | Allocations: 5076)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_class_selection.html.erb (Duration: 10.1ms | Allocations: 12145)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered collection of /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_class_parameters.html.erb [0 times] (Duration: 0.0ms | Allocations: 11)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/foreman_puppet/puppetclasses/_classes_parameters.html.erb (Duration: 4.2ms | Allocations: 6007)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered /usr/share/gems/gems/foreman_puppet-5.0.0/app/views/hosts/_form_puppet_enc_tab.html.erb (Duration: 19.5ms | Allocations: 23723)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_base_form.html.erb (Duration: 52.7ms | Allocations: 25949)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_virtual_form.html.erb (Duration: 4.5ms | Allocations: 6212)
2023-04-05T04:24:58 [D|app|3b039e18] Receiving vm data for host ‘otvmi341s.priv.atos.fr’ from compute resource ‘sandbox (VMware)’ failed. ActiveRecord::RecordNotFound: ActiveRecord::RecordNotFound
2023-04-05T04:24:58 [D|app|3b039e18] Reading from compute resource cache: networks
2023-04-05T04:24:58 [D|app|3b039e18] Rendered compute_resources_vms/form/vmware/_network.html.erb (Duration: 7.2ms | Allocations: 9521)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_provider_specific_form.html.erb (Duration: 18.3ms | Allocations: 16736)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/manageds/_managed.html.erb within nic/_hidden_layout (Duration: 82.9ms | Allocations: 59970)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_base_form.html.erb (Duration: 46.4ms | Allocations: 25599)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_virtual_form.html.erb (Duration: 4.7ms | Allocations: 6211)
2023-04-05T04:24:58 [D|app|3b039e18] Receiving vm data for host ‘otvmi341s.priv.atos.fr’ from compute resource ‘sandbox (VMware)’ failed. ActiveRecord::RecordNotFound: ActiveRecord::RecordNotFound
2023-04-05T04:24:58 [D|app|3b039e18] Reading from compute resource cache: networks
2023-04-05T04:24:58 [D|app|3b039e18] Rendered compute_resources_vms/form/vmware/_network.html.erb (Duration: 5.6ms | Allocations: 9520)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/_provider_specific_form.html.erb (Duration: 15.7ms | Allocations: 16730)
2023-04-05T04:24:58 [D|app|3b039e18] Rendered nic/manageds/_managed.html.erb within nic/_hidden_layout (Duration: 73.1ms | Allocations: 5