Project

General

Profile

Actions

Bug #24526

closed

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

Added by Ivan Necas over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - VMware
Target version:
Difficulty:
Triaged:
No
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 2 (0 open2 closed)

Related to Foreman - Bug #2656: error connecting to vsphere after upgrade to ruby 1.9.3ClosedAmos Benari06/12/2013Actions
Related to Foreman - Bug #24811: Cannot load Datacenter in Compute RessourceDuplicateActions
Actions #1

Updated by Ivan Necas over 5 years ago

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

Updated by The Foreman Bot over 5 years ago

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

Updated by Marek Hulán over 5 years ago

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

Updated by Ivan Necas over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Martin Angermeier over 5 years ago

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

Updated by Tomer Brisker over 5 years ago

  • Fixed in Releases 1.19.1 added
Actions #7

Updated by Marek Hulán almost 5 years ago

  • Bugzilla link set to 1697303
Actions

Also available in: Atom PDF