Project

General

Profile

Feature #31240

Feature #30440: Simple & automatic host registration WF

Feature #31807: Host Registration - UI Form improvements

New Host Registration Form

Added by Leos Stejskal 8 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-

Description

New Features

  • general & advanced fields
  • Two plugin extension points: General fields & advanced fields

Updated fields

Taxonomies
  • can be changed in the form
  • changing taxonomies will reload form data (
  • Required field, can’t select ANY option
Host Group
  • TODO: Make clear what it does
Operating System
  • When OS selected: show link to Reg. template or show error with link to OS edit
  • Added help to label
Proxy
  • Instead of empty value show "No proxy, use Foreman URL" (or something like that)
Setup Insights | Rex
  • New simple logic: Inherit value (with actual value of parameter), enforce yes & enforce false
  • Moved to advanced fields
  • Yes/No in Inherit value is defined by selected Organization, Location, Host Group or Operating System.
Token Lifetime
  • Moved to advanced fields
  • Added validation (>= 1 && <= 999 999 999)

Insecure
No changes

Associated revisions

Revision 7f25f394 (diff)
Added by Leos Stejskal 2 months ago

Fixes #31240 - New Host Registration Form (#8419)

Completely in React, with router & PF4 components
Divided into two tabs: General fields & Advanced Fields
Slots for extending form fields (general / advanced)
Form can be submitted only if there are no invalid fields

Related plugin extensions:
Katello/katello#9249
theforeman/foreman_remote_execution#574

Changes:
  • Organization & Location can be changed in the Form
    changing ORG/LOC will fetch new data and reset form fields (HostGroup, OS & Smart Proxy)
    Reset of fields from plugins is handled by plugins.
  • Host group
    If selected, following fields inherit the value from selected host group: Operating System, Activation Keys & Life Cycle Environment
    Selecting HG resets OS field
  • Operating System
    When selected, show info about assigned host_init_config template.
    If template is not found, show error and block form
Setup Remote Execution & Setup Insights
  • Yes/No value in default options Inherit from Host parameter is delivered from selected organization, location host group and operating system. The chain of getting value is:
    organization -> location -> operatingsystem -> hostgroup
  • Packages (new field)
    Install packages after the host registration
  • Repository & Repository GPG (new fields)
  • Token Life Time
    Can be set to unlimited, otherwise value validated as: >= 1 && <= 999 999

Revision 4c38b809 (diff)
Added by Ron Lavi about 2 months ago

Refs #31240 - fix ExclamationCircleIcon import

Revision 4b36fac6 (diff)
Added by Ron Lavi about 2 months ago

Refs #31240 - fix more lint issues

Revision f224f359 (diff)
Added by Leos Stejskal about 2 months ago

refs #31240 - Revert lint changes from previous fix (#8469)

Changes in commit 4b36fac [0] cause bug in registration form,
selecting host group with OS doesn't work anymore and
loading host_init_config template doesn't work too.

[0] https://github.com/theforeman/foreman/commit/4b36fac6692a5fbae38d647ecee0e3ee5d0a7c59

Revision ea45843b (diff)
Added by Leos Stejskal about 2 months ago

refs #31240 - Fix 'Register host' button on Host welcome page

History

#2 Updated by Leos Stejskal 8 months ago

  • Description updated (diff)

#3 Updated by Leos Stejskal 5 months ago

  • Parent task changed from #30440 to #31807
  • Category set to Host registration
  • Description updated (diff)
  • Subject changed from Global Registration Template - Multiple activation keys to Support Multiple activation keys

#4 Updated by Leos Stejskal 5 months ago

  • Description updated (diff)
  • Subject changed from Support Multiple activation keys to Registration Form UI enhancements
  • Tracker changed from Bug to Feature

#5 Updated by Leos Stejskal 5 months ago

  • Related to Feature #31809: Host Registration - Activation key field improvement added

#6 Updated by Leos Stejskal 5 months ago

  • Related to Bug #31810: Global Registration: Unable to re-register with satellite using the Curl Command added

#7 Updated by Leos Stejskal 5 months ago

  • Related to deleted (Feature #31809: Host Registration - Activation key field improvement)

#8 Updated by Leos Stejskal 5 months ago

  • Related to deleted (Bug #31810: Global Registration: Unable to re-register with satellite using the Curl Command)

#9 Updated by Leos Stejskal 5 months ago

  • Assignee set to Leos Stejskal
  • Description updated (diff)

#10 Updated by Leos Stejskal 5 months ago

  • Description updated (diff)
  • Subject changed from Registration Form UI enhancements to Registration Form - React way & UX improvements

#11 Updated by Leos Stejskal 5 months ago

  • Description updated (diff)

#12 Updated by Leos Stejskal 3 months ago

  • Subject changed from Registration Form - React way & UX improvements to React way & UX improvements

#13 Updated by Leos Stejskal 3 months ago

  • Subject changed from React way & UX improvements to New Host Registration Form

#14 Updated by The Foreman Bot 3 months ago

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

#15 Updated by The Foreman Bot 2 months ago

  • Fixed in Releases 2.5.0 added

#16 Updated by Leos Stejskal 2 months ago

  • Status changed from Ready For Testing to Closed

#17 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/8467 added

#18 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/8469 added

#19 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/8471 added

Also available in: Atom PDF