Vmware tamplate provisioning with ipv6

Hey guys,

since a while i am trying to get ipv6 provisioning working with vmware VSphere (6.5) and foreman (1.17)
When putting something like:

ipV6Spec: 
    - ip: 
        ipAddress: <%= @host.ip6 %>
        subnetMask: <%= @host.subnet6.cidr %>
        gateway:
          - <%= @host.subnet6.gateway %>

into the user_data template provisioning is stuck at

Problem:

Failed to create a compute XXX (VMware) instance lalallaala.domain.loc: undefined method `key?’ for #Array:0x00007f80864b21f8

Expected outcome:
Provisioning starts.

Foreman and Proxy versions:
1.17.1

Other relevant data:

    2018-08-09T11:43:08 ee6f0f80 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXXXX", "host"=>{"name"=>"XXXX", "hostgroup_id"=>"8", "compute_resource_id"=>"1", "ansible_role_ids"=>[""], "config_group_ids"=>[""], "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"XXXXX", "domain_id"=>"1", "subnet_id"=>"1", "subnet6_id"=>"12", "ip"=>"XXX", "ip6"=>"XXXX", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"dvportgroup-XXXX"}}}, "compute_attributes"=>{"cpus"=>"4", "corespersocket"=>"1", "memory_mb"=>"4096", "firmware"=>"bios", "cluster"=>"XXXXX", "resource_pool"=>"Resources", "path"=>"/Datacenters/XXXXXXr", "guest_id"=>"windows8Server64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicController\",\"key\":1000}],\"volumes\":[{\"thin\":\"false\",\"name\":\"System\",\"mode\":\"persistent\",\"controllerKey\":1000,\"datastore\":\"XXXXXX\",\"size\":62914560,\"sizeGb\":60,\"eagerZero\":\"true\",\"key\":\"XXXXXXXXX"}]}", "image_id"=>"XXXXX"}, "architecture_id"=>"3", "operatingsystem_id"=>"7", "provision_method"=>"image", "build"=>"1", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image snapshots", "provider"=>"Vmware", "bare_metal_capabilities"=>"build"}
    2018-08-09T11:43:08 ee6f0f80 [app] [I] Current user: XXXXXXX (administrator)
    2018-08-09T11:43:08 ee6f0f80 [app] [I] Rendering UserData template for XXXXXXX
    2018-08-09T11:43:08 ee6f0f80 [templates] [I] Rendering template 'Unnamed'
    2018-08-09T11:43:08 ee6f0f80 [app] [I] Remove puppet certificate for XXXX
    2018-08-09T11:43:09 ee6f0f80 [app] [I] Adding autosign entry for XXXXXXX
    2018-08-09T11:43:09 ee6f0f80 [app] [I] Revoked old certificates and enabled autosign for UserData
    2018-08-09T11:43:10 ee6f0f80 [app] [I] Adding Compute instance for XXXXXXXX
    2018-08-09T11:43:11 ee6f0f80 [app] [W] Failed to create a compute XXXXXXXXX (VMware) instance XXXXXXXXXX: undefined method `key?' for #<Array:0x00007f80864b21f8>
    2018-08-09T11:43:11 ee6f0f80 [app] [W] Rolling back due to a problem: [#<Orchestration::Task:0x00007f8086bf3098 @name="Set up compute instance XXXXXXXX", @status="failed", @priority=2, @action=[#<Host::Managed id: nil, name: "vicki-sorrell.spectrumk.ads", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: "", architecture_id: 3, operatingsystem_id: 7, environment_id: 1, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 8, owner_id: 4, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, puppet_proxy_id: 1, certname: nil, image_id: 2, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: 1, provision_method: "image", grub_pass: "", expired_on: nil, global_status: 0, lookup_value_matcher: "fqdn=XXXXXs", pxe_loader: "">, :setCompute], @timestamp=2018-08-09 09:43:11 UTC>]
    2018-08-09T11:43:11 ee6f0f80 [app] [I] Remove puppet certificate for XXXXXXXX
    2018-08-09T11:43:12 ee6f0f80 [app] [I] Delete the autosign entry for XXXXXXXX
    2018-08-09T11:43:12 ee6f0f80 [app] [I] Processed 4 tasks from queue 'Host::Managed Main', completed 0/7
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Hook: 00_log.sh' *rollbacked*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Render user data template for XXXXXX' *rollbacked*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Hook: 01_check_ip.sh' *rollbacked*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Set up compute instance XXXXXX' *failed*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Hook: 02_logToGraylog2.sh' *canceled*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Query instance details for XXXXXX' *canceled*
    2018-08-09T11:43:12 ee6f0f80 [app] [E] Task 'Power up compute instance XXXXXXXX' *canceled*
    2018-08-09T11:43:12 ee6f0f80 [app] [I] Failed to save: Failed to create a compute VSphere FFMLYO (VMware) instance XXXXXXXXXXXXX: undefined method `key?' for #<Array:0x00007f80864b21f8>
    2018-08-09T11:43:12 ee6f0f80 [app] [I]   Rendering hosts/new.html.erb within layouts/application
    2018-08-09T11:43:12 ee6f0f80 [app] [I]   Rendered hosts/_progress.html.erb (0.3ms)

Is there a full backtrace in logs? There should be.

hi lzap,

thats all from the production.log so far
i will enable debug and try again for better insight asap.

Here is what i could grap from another test:

2018-08-13T12:42:57 c0c50bfc [app] [I] Started POST "/api/config_reports" for XX.XX.XX.XX at 2018-08-13 12:42:57 +0200
    2018-08-13T12:42:57 c0c50bfc [app] [I] Processing by Api::V2::ConfigReportsController#create as JSON
    2018-08-13T12:42:57 c0c50bfc [app] [I]   Parameters: {"config_report"=>"[FILTERED]", "apiv"=>"v2"}
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: restrict_registered_smart_proxies
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: require_ssl_smart_proxies
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: ssl_client_cert_env
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: ssl_client_cert_env
    2018-08-13T12:42:57 c0c50bfc [app] [D] Examining client certificate to extract dn and sans
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: ssl_client_cert_env
    2018-08-13T12:42:57 c0c50bfc [app] [D] Client sent certificate with subject 'foremanserver.example.com' and subject alt names '["foremanserver", "foremanserver.example.com", "puppet", "puppet-master", "puppet.example.com", "puppet.spkdmz.ads", "spk-pconf", "spk-pconf.example.com"]'
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: ssl_client_verify_env
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: trusted_puppetmaster_hosts
    2018-08-13T12:42:57 c0c50bfc [app] [D] Verifying request from ["foremanserver", "foremanserver.example.com", "puppet", "puppet-master", "puppet.example.com", "puppet.spkdmz.ads", "spk-pconf", "spk-pconf.example.com"] against ["foremanserver.example.com"]
    2018-08-13T12:42:57 c0c50bfc [app] [I] Current user: foreman_api_admin (administrator)
    2018-08-13T12:42:57 c0c50bfc [app] [D] Setting current user thread-local variable to foreman_api_admin
    2018-08-13T12:42:57 c0c50bfc [app] [D] Processing report: {"host"=>"lyo-peva02.example.com", "reported_at"=>"2018-08-13 10:42:29 UTC", "status"=>{"applied"=>0, "restarted"=>0, "failed"=>0, "failed_restarts"=>0, "skipped"=>0, "pending"=>0}, "metrics"=>{"resources"=>{"changed"=>0, "corrective_change"=>0, "failed"=>0, "failed_to_restart"=>0, "out_of_sync"=>0, "restarted"=>0, "scheduled"=>0, "skipped"=>0, "total"=>299}, "time"=>{"anchor"=>0.000389473, "augeas"=>0.065430987, "catalog_application"=>14.05890065204585, "concat_file"=>0.00041447999999999995, "concat_fragment"=>0.000634897, "config_retrieval"=>2.546629632008262, "convert_catalog"=>0.3426313170348294, "cron"=>0.003761561, "exec"=>2.4772479639999996, "fact_generation"=>1.3505910410312936, "file"=>1.9508784110000001, "filebucket"=>5.7079e-05, "ini_setting"=>0.000955032, "mailalias"=>0.000224041, "node_retrieval"=>0.38402578397653997, "package"=>6.974683236, "plugin_sync"=>2.0912508509936742, "postgresql_conf"=>0.000756268, "postgresql_conn_validator"=>0.010150044, "postgresql_psql"=>0.7553071489999998, "rhsm_register"=>0.000374385, "rhsm_repo"=>0.001081374, "schedule"=>0.000373938, "service"=>0.12519529399999998, "ssh_authorized_key"=>0.004397201999999999, "total"=>20.785795791, "transaction_evaluation"=>13.935537501994986, "user"=>0.00121646, "yumrepo"=>0.0015896439999999999}, "changes"=>{"total"=>0}, "events"=>{"failure"=>0, "success"=>0, "total"=>0}}, "logs"=>[{"log"=>{"sources"=>{"source"=>"//lyo-peva02.example.com/Puppet"}, "messages"=>{"message"=>"Applied catalog in 14.06 seconds"}, "level"=>"notice"}}]}
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: puppet_interval
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: outofsync_interval
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache read: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: root_pass
    2018-08-13T12:42:57 c0c50bfc [app] [I] Imported report for lyo-peva02.example.com in 0.08 seconds, status refreshed in 0.02 seconds
    2018-08-13T12:42:57 c0c50bfc [app] [I]   Rendering api/v2/config_reports/create.json.rabl
    2018-08-13T12:42:57 c0c50bfc [app] [I]   Rendered api/v2/config_reports/create.json.rabl (7.6ms)
    2018-08-13T12:42:57 c0c50bfc [app] [D] Body: {"metrics":{"resources":{"changed":0,"corrective_change":0,"failed":0,"failed_to_restart":0,"out_of_sync":0,"restarted":0,"scheduled":0,"skipped":0,"total":299},"time":{"anchor":0.000389473,"augeas":0.065430987,"catalog_application":14.05890065204585,"concat_file":0.00041447999999999995,"concat_fragment":0.000634897,"config_retrieval":2.546629632008262,"convert_catalog":0.3426313170348294,"cron":0.003761561,"exec":2.4772479639999996,"fact_generation":1.3505910410312936,"file":1.9508784110000001,"filebucket":5.7079e-05,"ini_setting":0.000955032,"mailalias":0.000224041,"node_retrieval":0.38402578397653997,"package":6.974683236,"plugin_sync":2.0912508509936742,"postgresql_conf":0.000756268,"postgresql_conn_validator":0.010150044,"postgresql_psql":0.7553071489999998,"rhsm_register":0.000374385,"rhsm_repo":0.001081374,"schedule":0.000373938,"service":0.12519529399999998,"ssh_authorized_key":0.004397201999999999,"total":20.785795791,"transaction_evaluation":13.935537501994986,"user":0.00121646,"yumrepo":0.0015896439999999999},"changes":{"total":0},"events":{"failure":0,"success":0,"total":0}},"created_at":"2018-08-13 10:42:57 UTC","updated_at":"2018-08-13 10:42:57 UTC","id":2005221,"host_id":92,"host_name":"lyo-peva02.example.com","reported_at":"2018-08-13 10:42:29 UTC","status":{"applied":0,"restarted":0,"failed":0,"failed_restarts":0,"skipped":0,"pending":0},"logs":[{"level":"notice","source":{"source":"//lyo-peva02.example.com/Puppet"},"message":{"message":"Applied catalog in 14.06 seconds"}}],"summary":"Success"}
    2018-08-13T12:42:57 c0c50bfc [app] [I] Completed 201 Created in 114ms (Views: 7.6ms | ActiveRecord: 17.7ms)
    2018-08-13T12:42:57 c0c50bfc [app] [D] Cache write: _session_id:475214eed194b553e82393310c071030 ({:expires_in=>nil})
    2018-08-13T12:42:58 ba35c57b [app] [W] Failed to create a compute VSphere (VMware) instance ira-beliveau.example.com: undefined method `key?' for #<Array:0x0000000009d19288>
     |
     | NoMethodError: undefined method `key?' for #<Array:0x0000000009d19288>
     | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.1/lib/fog/vsphere/requests/compute/vm_clone.rb:519:in `block in vm_clone'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.1/lib/fog/vsphere/requests/compute/vm_clone.rb:493:in `each'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.1/lib/fog/vsphere/requests/compute/vm_clone.rb:493:in `vm_clone'
     | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:510:in `clone_vm'
     | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:443:in `create_vm'
     | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:77:in `setCompute'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:222:in `execute'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
     | /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/callbacks.rb:336:in `create_or_update'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/persistence.rb:129:in `save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/validations.rb:44:in `save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb:35:in `save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:308:in `block (2 levels) in save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
     | /opt/rh/rh-ruby24/root/usr/share/ruby/monitor.rb:214:in `mon_synchronize'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:381:in `with_transaction_returning_status'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:308:in `block in save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:323:in `rollback_active_record_state!'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:307:in `save'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/suppressor.rb:42:in `save'
     | /usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
     | /usr/share/foreman/app/controllers/hosts_controller.rb:104:in `create'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
     | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/static_dispatcher.rb:65:in `call'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/extractor/recorder.rb:136:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
     | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/conditional_get.rb:38:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/head.rb:12:in `call'
     | /usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
     | /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:68:in `block in call'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `each'
     | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `call'
     | /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
     | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
     | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
     | /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
     | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
    2018-08-13T12:42:58 ba35c57b [app] [W] Rolling back due to a problem: [#<Orchestration::Task:0x000000000a7d2c10 @name="Set up compute instance ira-beliveau.example.com", @status="failed", @priority=2, @action=[#<Host::Managed id: nil, name: "ira-beliveau.example.com", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: "", architecture_id: 3, operatingsystem_id: 7, environment_id: 1, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 8, owner_id: 4, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, puppet_proxy_id: 1, certname: nil, image_id: 2, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: 1, provision_method: "image", grub_pass: "", expired_on: nil, global_status: 0, lookup_value_matcher: "fqdn=ira-beliveau.example.com", pxe_loader: "">, :setCompute], @timestamp=2018-08-13 10:42:58 UTC>]
    2018-08-13T12:42:58 ba35c57b [app] [I] Remove puppet certificate for ira-beliveau.example.com

It is this code:

                  if nic['adapter']['ipV6Spec'].key?('ipAddress')

Not sure what is wrong tho. We haven’t tested this yet.

Hi,

yeah. no idea. I tested first in 1.15 and gave up.
now i tested again with 1.17 and 1.18 and got this error.

Should i raise a ticket at the bugtracker for this?

Cheers!

David

Yeah but with IPv6 and VMWare you are a bit on your own here. Try to troubleshoot this? Debug what is coming out from foreman, what vsphere-fog needs, put debug statements and figure it out. It looks like something wrong is sent in the schema.

ha … yeah. full dual-stack is suffering, isn’t it :smiley:
seems i have to learn some ruby and stuff to sort this out.
will see when i find some time to get deeper into that code.

This can get you started: Troubleshooting - Foreman