Project

General

Profile

Bug #6540

With no datacenters, error should be shown when creating VMWare compute resource

Added by Dominic Cleal almost 5 years ago. Updated 10 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1114860
Description of problem:
Clicking "Load Datacenters" when creating VMWare compute resource complains: "String does not start with the prefix 'encrypted-', so Foreman::Model::Vmware VMWare-vCentre was not decrypted" and you can not save the compute resource. No error message is displayed.

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140626.1
VMware-vCenter-Server-Appliance-5.5.0.10000-1624811_OVF10.ova + latest updates

How reproducible:
always

Steps to Reproduce:
1. Start VMware-vCenter-Server
2. Create compute profile with VMWare provider, IP adress set to vCenter server,
user "root" and password "vmware" (credentials I use to connect to "VMware
vCenter Server Appliance" webUI)
3. Click [Load Datacenters]

Actual results:
Nothing happens in webUI besides "Fingerprint" field being populated. Clicking on [Submit] do not save the compute resource

Expected results:
Either error message should appear or [Submit] should save the compute resource

Additional info:
> /var/log/foreman/production.log <
Processing by ComputeResourcesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"<token>", "compute_resource"=>{"name"=>"VMWare-vCentre", "provider"=>"Vmware", "description"=>"", "server"=>"<ip>", "user"=>"root", "password"=>"[FILTERED]", "set_console_password"=>"[FILTERED]", "location_ids"=>["", "2"], "organization_ids"=>["", "1"]}, "commit"=>"Submit"}
String does not start with the prefix 'encrypted-', so Foreman::Model::Vmware VMWare-vCentre was not decrypted
String does not start with the prefix 'encrypted-', so Foreman::Model::Vmware VMWare-vCentre was not decrypted
String does not start with the prefix 'encrypted-', so Foreman::Model::Vmware VMWare-vCentre was not decrypted
Failed to save: Datacenter can't be blank
Rendered compute_resources/form/_vmware.html.erb (8.7ms)
Rendered taxonomies/_loc_org_tabs.html.erb (8.0ms)
Rendered compute_resources/_form.html.erb (333.2ms)
Rendered compute_resources/new.html.erb within layouts/application (333.8ms)
Rendered home/_submenu.html.erb (4.8ms)
Rendered home/_user_dropdown.html.erb (5.0ms)
Read fragment views/tabs_and_title_records-1 (0.1ms)
Rendered home/_organization_dropdown.html.erb (3.8ms)
Rendered home/_location_dropdown.html.erb (3.0ms)
Rendered home/_org_switcher.html.erb (7.4ms)
Rendered home/_submenu.html.erb (3.9ms)
Rendered home/_submenu.html.erb (3.9ms)
Rendered home/_submenu.html.erb (4.4ms)
Rendered home/_submenu.html.erb (3.0ms)
Rendered home/_submenu.html.erb (2.8ms)
Rendered home/_submenu.html.erb (4.2ms)
Write fragment views/tabs_and_title_records-1 (1.5ms)
Rendered home/_topbar.html.erb (46.2ms)
Rendered layouts/base.html.erb (47.8ms)
Completed 200 OK in 411ms (Views: 382.2ms | ActiveRecord: 4.3ms)

Associated revisions

Revision ebac69ce (diff)
Added by Shlomi Zadok over 4 years ago

fixes #6540, #8335 - Add error to vmware when no datacenter, save password when testing connection

Revision fa7403af (diff)
Added by Shlomi Zadok over 4 years ago

fixes #6540, #8335 - Add error to vmware when no datacenter, save password when testing connection

(cherry picked from commit ebac69ceab851c6124d9fc167b3d58f8c559e1ae)

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Category set to Compute resources
  • Assignee deleted (Dominic Cleal)

#2 Updated by Dominic Cleal over 4 years ago

  • Category changed from Compute resources to Compute resources - VMware

#3 Updated by The Foreman Bot over 4 years ago

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

#4 Updated by Shlomi Zadok over 4 years ago

  • Assignee set to Shlomi Zadok

#5 Updated by Shlomi Zadok over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 30

Also available in: Atom PDF