Project

General

Profile

Bug #32457

Normally Inherited fields are not inherited upon host registreation

Added by Marek Hulán 7 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

If I pick a host group during the host registration, values we normally inherit from hostgroup are not inherited, e.g. puppet environment, puppet proxy, puppet ca proxy.


Related issues

Has duplicate Foreman - Bug #32304: Register host does not use puppet settings from host groupClosed

Associated revisions

Revision e60069e1 (diff)
Added by Leos Stejskal 6 months ago

Fixes #32457 - Register host & apply inherited attributes (#8539)

History

#1 Updated by Marek Hulán 7 months ago

The reason is, when host is created normally, we apply inherited attributes thanks to

https://github.com/theforeman/foreman/blob/c03c4a44a8c7891aeb470a2fde3f486199299177/app/models/host/managed.rb#L77-L80

The registration skips this and calls directly assign attributes

https://github.com/theforeman/foreman/blob/develop/app/controllers/api/v2/registration_controller.rb#L110-L119

That should be changed so the inheritance logic works like when the new host is created through the form.

#2 Updated by Damon Maria 7 months ago

  • Has duplicate Bug #32304: Register host does not use puppet settings from host group added

#3 Updated by The Foreman Bot 6 months ago

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

#4 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 3.0.0 added

#5 Updated by Leos Stejskal 6 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 6 months ago

  • Target version set to 2.5.1

#7 Updated by Tomer Brisker 6 months ago

  • Fixed in Releases 2.5.1 added

Also available in: Atom PDF