Project

General

Profile

Actions

Bug #14737

closed

Changing Host Group does not change operating system

Added by Partha Aji about 8 years ago. Updated about 8 years ago.

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

Description

Create 2 Host groups "hostgroup-rh" with OS -> Redhat and "hostgroup-fedora" with OS fedora
Go to the New Hosts page pick hostgroup-rh -> the operating system tab reflect fedora
Now go back to main screen and change the host group to "hostgroup-fedora" .

Expected:
OS updates to fedora

Actual:
No changes

This is because of the following line of code

https://github.com/theforeman/foreman/blob/5742cd06c6cd4d3048aa82ea48a9d3d183075816/app/models/host/managed.rb#L976

Notice how it says update the attribute only if its previously not set. This runs counter to the user perspective who expect the hostgroup change to be propagated across the board.

self.send("#{attr}=", value) unless send(attr).present?


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #8245: Changing to a new host group does not update the operating system in new host formResolved11/03/2014Actions
Actions #1

Updated by Partha Aji about 8 years ago

  • Project changed from Katello to Foreman
Actions #2

Updated by Dominic Cleal about 8 years ago

  • Is duplicate of Bug #8245: Changing to a new host group does not update the operating system in new host form added
Actions #3

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF