Project

General

Profile

Feature #31663

Feature #30440: Simple & automatic host registration WF

Usability issues with templates & operating systems

Added by Leos Stejskal about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

When first users (QAs) started testing & using Global Registration feature, they were repeatedly facing some issues with usability:

1. Forgetting to assign Host registration template (HRT) to operating system
2. Assigning Global Registration Template (GRT) to OS (instead of HRT)
3. Mixing GRT & HRT in general

Fix for 1. case:
When OS is created, automatically assign default HRT (defined in settings)
Assigned HRT to the OS is precondition for sucessful host registration to the Foreman. Without it process will always fail!
Therefore users have to assign template manually each time they create OS.

If they have to do it manually every single time OS is created,
we could do it for them, right? Like we do it in Katello plugin (https://github.com/Katello/katello/pull/9049),
but for all operating systems.

Fix for case 2. & 3.:
There are two new template kinds now (instead of just one):
  • Global Registration template, (now with validation that it can't be assigned to OS)
  • Host Registration template

And new setting for default host registration template


Related issues

Related to Foreman - Bug #32097: Host detail - undefined method `initial_configuration_template'Rejected
Related to Katello - Bug #32087: test failure due to template kindsClosed
Related to Katello - Feature #32093: Remove auto-assign of registration template to OSClosed
Related to Foreman - Bug #32959: Registration migration - Unassign OS from registration templatesClosed
Related to Foreman - Bug #34661: The registration database migration could fail when the template is not availableClosed

Associated revisions

Revision 26a20e66 (diff)
Added by Leos Stejskal about 2 years ago

Fixes #31663 - Registration templates usability issues (#8256)

- New template kind 'Host initial configuration' for
host configuration after the registration.
- Registration templates (like 'Global Registration')
cannot be assigned to operating system
- 'Linux Registration default' renamed to 'Linux host_init_config default'
with new kind 'Host initial configuration' kind
- Automatically assign the default 'Host initial configuration'
template (defined in settings) to any new operating system

Revision 18c7e3ba (diff)
Added by Leos Stejskal about 2 years ago

Refs #31663 - Host detail - Fix typo in @host variable

History

#1 Updated by The Foreman Bot about 2 years ago

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

#2 Updated by Leos Stejskal about 2 years ago

  • Status changed from Ready For Testing to New
  • Description updated (diff)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/8256)

#3 Updated by Leos Stejskal about 2 years ago

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

#4 Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing

#5 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 2.5.0 added

#6 Updated by Leos Stejskal about 2 years ago

  • Status changed from Ready For Testing to Closed

#7 Updated by The Foreman Bot about 2 years ago

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

#8 Updated by Tomer Brisker about 2 years ago

  • Related to Bug #32097: Host detail - undefined method `initial_configuration_template' added

#9 Updated by The Foreman Bot over 1 year ago

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

#10 Updated by Tomer Brisker over 1 year ago

  • Related to Bug #32087: test failure due to template kinds added

#11 Updated by Tomer Brisker over 1 year ago

  • Related to Feature #32093: Remove auto-assign of registration template to OS added

#12 Updated by Leos Stejskal over 1 year ago

  • Related to Bug #32959: Registration migration - Unassign OS from registration templates added

#13 Updated by Ondřej Ezr 12 months ago

  • Related to Bug #34661: The registration database migration could fail when the template is not available added

Also available in: Atom PDF