Project

General

Profile

Actions

Bug #17648

closed

Attribute inheritance is not propagated correctly in UI/API workflows

Added by Shimon Shtein over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

update method does not invoke #apply_inherited_attributes on the newly created host.


Files

hg1.png View hg1.png 49.8 KB Jason Nance, 12/20/2016 01:40 PM
hg2.png View hg2.png 24.7 KB Jason Nance, 12/20/2016 01:40 PM
host.png View host.png 47.2 KB Jason Nance, 12/20/2016 01:40 PM

Related issues 3 (1 open2 closed)

Related to Discovery - Refactor #14316: Host group fails to auto fill puppet ca & master in discovery provisioningNewLukas ZapletalActions
Related to Discovery - Bug #18106: Discovery v8 provisioning throws ActiveModel::ForbiddenAttributesError when Katello is installedClosedLukas Zapletal01/17/2017Actions
Related to Discovery - Bug #20797: Provisioning errors with undefined method permit! for ActiveSupport::HashWithIndifferentAccessResolved08/29/2017Actions
Actions #1

Updated by Lukas Zapletal over 7 years ago

  • Subject changed from PUT /discovered_hosts/:id is not inheriting attributes from selected hostgroup to Attribute inheritance is not propagated correctly in UI/API workflows

So after some chat it looks like we are not calling apply_inherited_attributes properly from API and also from UI (we call it in edit but not in update).

Actions #2

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/316 added
Actions #3

Updated by Lukas Zapletal over 7 years ago

  • Related to Refactor #14316: Host group fails to auto fill puppet ca & master in discovery provisioning added

Updated by Jason Nance over 7 years ago

I believe this same issue exists with the realm as well. Please see attached screen shots for example. If I'm talking about something different let me know and I'll open a new bug.

In short, inherited Puppet CA, Puppet Master, and Realm are showing up in the host group but not on a newly created host.

Actions #5

Updated by Shimon Shtein over 7 years ago

It should all be solved by this fix.
All inherited attributes are manged by those two methods: #apply_inherited_attributes and #set_hostgroup_defaults that are added by this PR.

Let us know, if it's not solving your case.

Actions #6

Updated by Shimon Shtein about 7 years ago

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

Updated by Simone Caldana about 7 years ago

  • Related to Bug #18106: Discovery v8 provisioning throws ActiveModel::ForbiddenAttributesError when Katello is installed added
Actions #8

Updated by Lukas Zapletal over 6 years ago

  • Related to Bug #20797: Provisioning errors with undefined method permit! for ActiveSupport::HashWithIndifferentAccess added
Actions

Also available in: Atom PDF