Project

General

Profile

Bug #24526

undefined method `[]=' for #<ActiveModel::Errors:0x00563e9032deb0> with wrong ca cert on vmware

Added by Ivan Necas 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

1. have a compute resource with wrong fingerprint, to reproduce, you can do this in console

ComputeResource.find_by(name: 'myawesome-cr').update(:pubkey_hash => 'bla')

2. go to edit page of the compute resource

3. get 500 with:

app/helpers/compute_resources_helper.rb:70:in `rescue in list_datacenters'
app/helpers/compute_resources_helper.rb:67:in `list_datacenters'
app/views/compute_resources/form/_vmware.html.erb:4:in `_0cdfc47759cf3a147931acb8b27f0140'
app/views/compute_resources/_form.html.erb:21:in `block in _723f7b053c2578fe9230905160343f4a'
app/helpers/form_helper.rb:296:in `form_for'
app/views/compute_resources/_form.html.erb:1:in `_723f7b053c2578fe9230905160343f4a'
app/views/compute_resources/edit.html.erb:3:in `_eaa4de733251f98201fdd715a20f2ef0'
app/controllers/concerns/application_shared.rb:15:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
lib/middleware/telemetry.rb:9:in `call'
lib/middleware/catch_json_parse_errors.rb:8:in `call'

The error causing this is:

ERF56-4248 [Foreman::FingerprintException]: The remote system presented a public key with hash d017b8e1a47874e3c5851981ebb97638b3a5cc09a0c79554352d3a20f9065544 but we're expecting a different hash. If you are sure the remote system is authentic, go to the compute resource edit page, press the 'Test Connection' or 'Load Datacenters' button and submit

Related issues

Related to Foreman - Bug #2656: error connecting to vsphere after upgrade to ruby 1.9.3Closed2013-06-12
Related to Foreman - Bug #24811: Cannot load Datacenter in Compute RessourceDuplicate

Associated revisions

Revision 122f63a5 (diff)
Added by Ivan Necas 4 months ago

Fixes #24526 - handle compute resource fingerprint error (#5910)

History

#1 Updated by Ivan Necas 5 months ago

  • Related to Bug #2656: error connecting to vsphere after upgrade to ruby 1.9.3 added

#2 Updated by The Foreman Bot 5 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5910 added

#3 Updated by Marek Hulán 4 months ago

  • Target version set to 1.20.0
  • Category set to Compute resources - VMware
  • Fixed in Releases 1.20.0 added

#4 Updated by Ivan Necas 4 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Martin Angermeier 3 months ago

  • Related to Bug #24811: Cannot load Datacenter in Compute Ressource added

#6 Updated by Tomer Brisker 3 months ago

  • Fixed in Releases 1.19.1 added

Also available in: Atom PDF