Project

General

Profile

Actions

Bug #23584

closed

Cannot create a vm on any VCSA: undefined method `attributes'

Added by Jeff Sparrow almost 6 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
Urgent
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After upgrading to Foreman 1.17, we are getting the following error on all vm deployments for all vcenters we have tried. They are all on ESX 6.0 or 6.5.

Due to this, we can not provision any virtual machines and production is halted:

2018-05-14 10:08:00 03102740 [app] [I] Started POST "/hosts" for 100.91.160.19 at 2018-05-14 10:08:00 -0500
2018-05-14 10:08:00 03102740 [app] [I] Processing by HostsController#create as */*
2018-05-14 10:08:00 03102740 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"8/ViXoANP3VvjbJhkQSLrA8gkBPwomvCBpvwIG+CMv2lQ3mbZqQid/iITWPcx+q9CoYkfhZKWQcgkzBXRCnHGw==", "host"=>{"name"=>"attributes-fail", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"5", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_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"=>"attributes-fail", "domain_id"=>"2", "subnet_id"=>"17", "ip"=>"100.91.41.181", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-13"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"2", "memory_mb"=>"4096", "firmware"=>"automatic", "cluster"=>"Puppet Cluster", "resource_pool"=>"Resources", "path"=>"/Datacenters/Puppet Datacenter/vm", "guest_id"=>"otherGuest64", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"0", "cpuHotAddEnabled"=>"0", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicSASController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":10485760,\"sizeGb\":100,\"key\":\"71399cd0-5788-11e8-87ba-23ee0f92a339\",\"datastore\":\"Puppet Datastore\"}]}"}, "architecture_id"=>"3", "operatingsystem_id"=>"75", "provision_method"=>"build", "build"=>"1", "medium_id"=>"9", "ptable_id"=>"199", "pxe_loader"=>"None", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"50-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"build image snapshots", "provider"=>"Vmware", "bare_metal_capabilities"=>"build"}
2018-05-14 10:08:01 03102740 [app] [I] Current user: jsparrow (administrator)
2018-05-14 10:08:01 03102740 [app] [D] Setting current user thread-local variable to jsparrow
2018-05-14 10:08:01 03102740 [app] [D] Unpermitted parameters: :utf8, :authenticity_token, :capabilities, :provider, :bare_metal_capabilities, :locale
2018-05-14 10:08:01 03102740 [app] [D] Unpermitted parameters: :utf8, :authenticity_token, :capabilities, :provider, :bare_metal_capabilities, :locale
2018-05-14 10:08:01 03102740 [app] [D] Unpermitted parameters: :utf8, :authenticity_token, :capabilities, :provider, :bare_metal_capabilities, :locale
2018-05-14 10:08:01 03102740 [app] [D] Unpermitted parameters: :utf8, :authenticity_token, :capabilities, :provider, :bare_metal_capabilities, :locale
2018-05-14 10:08:01 03102740 [app] [D] Scheduling new DHCP reservations for attributes-fail.lab.beer.town
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Create DHCP Settings for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Scheduling new DNS entries
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Create IPv4 DNS record for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Create Reverse IPv4 DNS record for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Deploy TFTP PXEGrub2 config for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Deploy TFTP PXELinux config for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Deploy TFTP PXEGrub config for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Fetch TFTP boot files for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Set up compute instance attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Query instance details for attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Enqueued task 'Power up compute instance attributes-fail.lab.beer.town' to 'Host::Managed Main' queue
2018-05-14 10:08:01 03102740 [app] [D] Processing task 'Set up compute instance attributes-fail.lab.beer.town' from 'Host::Managed Main'
2018-05-14 10:08:01 03102740 [app] [I] Adding Compute instance for attributes-fail.lab.beer.town
2018-05-14 10:08:01 03102740 [app] [D] Reading from compute resource cache: networks
2018-05-14 10:08:01 03102740 [app] [W] Failed to create a compute jsparrow vcenter (VMware) instance attributes-fail.lab.beer.town: undefined method `attributes' for #<String:0x007f2b86b8db08>
 |
 | NoMethodError: undefined method `attributes' for #<String:0x007f2b86b8db08>
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:198:in `create_controller'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `block in device_change'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `each'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `each_with_index'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `each'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `map'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:101:in `device_change'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:17:in `create_vm'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/models/compute/server.rb:303:in `save'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:447: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:106: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/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/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2018-05-14 10:08:01 03102740 [app] [W] Rolling back due to a problem: [#<Orchestration::Task:0x007f2b86c21498 @name="Set up compute instance attributes-fail.lab.beer.town", @status="failed", @priority=2, @action=[#<Host::Managed id: nil, name: "attributes-fail.lab.beer.town", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: "UGFzc3dvcmQ1", architecture_id: 3, operatingsystem_id: 75, environment_id: 1, ptable_id: 199, medium_id: 9, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 50, 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: nil, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: 5, provision_method: "build", grub_pass: "$6$ltWK5reV$fr7mW6pPHGk7urDDFj0CYwRsQqjKgmgW0TV02J...", discovery_rule_id: nil, global_status: 0, lookup_value_matcher: "fqdn=attributes-fail.lab.beer.town", pxe_loader: "None">, :setCompute], @timestamp=2018-05-14 15:08:01 UTC>]
2018-05-14 10:08:01 03102740 [app] [I] Processed 1 tasks from queue 'Host::Managed Main', completed 0/10
2018-05-14 10:08:01 03102740 [app] [E] Task 'Set up compute instance attributes-fail.lab.beer.town' *failed*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Query instance details for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Create DHCP Settings for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Create IPv4 DNS record for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Create Reverse IPv4 DNS record for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Deploy TFTP PXEGrub2 config for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Deploy TFTP PXELinux config for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Deploy TFTP PXEGrub config for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Fetch TFTP boot files for attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [E] Task 'Power up compute instance attributes-fail.lab.beer.town' *canceled*
2018-05-14 10:08:01 03102740 [app] [I] Failed to save: Failed to create a compute jsparrow vcenter (VMware) instance attributes-fail.lab.beer.town: undefined method `attributes' for #<String:0x007f2b86b8db08>
 |

I am starting to troubleshoot this now, but wanted to get a ticket created ASAP, in case someone is aware of anything surrounding this.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #23335: Cannot create VM in a vCenter. NoMethodError.ClosedTimo GoebelActions
Actions #1

Updated by Evgeni Golov almost 6 years ago

  • Status changed from New to Duplicate
Actions #2

Updated by Evgeni Golov almost 6 years ago

  • Is duplicate of Bug #23335: Cannot create VM in a vCenter. NoMethodError. added
Actions

Also available in: Atom PDF