Project

General

Profile

Bug #11683

Spinner in puppet class parameters spinning indefinitely on hostgroup creation

Added by Ondřej Pražák almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Host groups
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When creating a new hostgroup, a spinner in puppet class table under 'Parameters' tab appears and spins indefinitely.

To reproduce:
1) Configure > Hostgroups > New Hostgroup
2) select arbitrary Lifecycle Environment
3) select arbitrary Puppet Environment
4) go to 'Parameters' tab
5) spinner is spinning indefinitely as a result of failed call to the server

Root cause is that hostgroup id is expected in params (which naturally does not exists since hostgroup has not been created yet): https://github.com/theforeman/foreman/blob/develop/app/controllers/hostgroups_controller.rb#L93
And then in js function handling the call: https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/host_edit.js#L170-L199

step_3.png View step_3.png 53.5 KB Ondřej Pražák, 09/04/2015 03:23 AM
step_4.png View step_4.png 47.7 KB Ondřej Pražák, 09/04/2015 03:23 AM
Step 3 Step 4

Related issues

Related to Foreman - Bug #11658: In host/hostgroup form, removing puppetclasses in 'Puppet classes' tab does not trigger call to serverRejected2015-09-02
Related to Foreman - Bug #11465: In host/hostgroup parameters form, tables that are empty should display helpful textNew2015-08-24
Related to Katello - Bug #11713: Deface override breaks dropdown in hosts formClosed2015-09-07
Related to Foreman - Bug #11761: Cloning of hostgroup redirects to host creationClosed2015-09-10

Associated revisions

Revision ae7d8d5f (diff)
Added by Ondřej Pražák almost 4 years ago

Fixes #11683 - Fixed Hostgroup#new parameters spinner when Lifecycle selected

History

#1 Updated by Ondřej Pražák almost 4 years ago

  • Related to Bug #11658: In host/hostgroup form, removing puppetclasses in 'Puppet classes' tab does not trigger call to server added

#2 Updated by Ondřej Pražák almost 4 years ago

  • Related to Bug #11465: In host/hostgroup parameters form, tables that are empty should display helpful text added

#3 Updated by Dominic Cleal almost 4 years ago

  • Category changed from Web Interface to Host groups

#4 Updated by The Foreman Bot almost 4 years ago

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

#5 Updated by Ondřej Pražák almost 4 years ago

  • Related to Bug #11713: Deface override breaks dropdown in hosts form added

#6 Updated by Ondřej Pražák almost 4 years ago

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

#7 Updated by Dominic Cleal almost 4 years ago

  • Assignee set to Ondřej Pražák
  • Legacy Backlogs Release (now unused) set to 63

#8 Updated by Marek Hulán almost 4 years ago

  • Related to Bug #11761: Cloning of hostgroup redirects to host creation added

Also available in: Atom PDF