Description of problem: when we click on "edit host" from all hosts. edit page showing the default settings with respect to the selected hostgroup. Any change in the parameters does not reflect on WebUI. However, hammer shows updated details. Version-Release number of selected component (if applicable): - Satellite 6.3 How reproducible: - Always Steps to Reproduce: 1. provision a host with hostgroup 2. change the LE/CV or content-source fromWebUI and save it 3. click on edit host again and LE/CV changed to the default one in the hostgroup Actual results: - edit page showing values from hostgroup after changing Expected results: - changes should be visible on WebUI Additional info: - hammer host info shows correct values - only reproducible in 6.3 - reproducer details added
This appears to be a bug in the host form. Changing the values from the hostgroup defaults in the form and saving saves the new values, but when opening the form again the hostgroup defaults are repopulated in these fields. @walden - any idea on why this happens?
(In reply to Tomer Brisker from comment #2) > This appears to be a bug in the host form. Changing the values from the > hostgroup defaults in the form and saving saves the new values, but when > opening the form again the hostgroup defaults are repopulated in these > fields. @walden - any idea on why this happens? No I don't, I'm sorry. I don't know much about foreman's forms unfortunately.
Created redmine issue http://projects.theforeman.org/issues/23706 from this bug
I can successfully reproduce the error on the latest nightly version of Katello + Foreman. Working on a fix for this now.
Alright, after some investigation I found this issue is quite interesting: 1 - We have a host with a Host Group. Then we decide to override the Lifecycle Environment and Content View. Fine, just go to the edit form and change them. 2 - Submit the form - everything should be OK. (in fact it is at this point) 3 - We reopen the edit form to make sure the changes were applied but surprise: Lifecycle Environment and Content View are set back to the Host Group ones. Or.. is that true? No! It's just an UI bug. After you submit the form, the data is saved properly on your database. For example: Host A is inheriting LE with name 'test-le' and CV with name 'test-cv'. We edit the form with LE with name 'production-le' and CV with name 'production-cv'. Submit. We check using the API, /api/v2/hosts/A - and the data is fine! However if we open the form, we will see LE 'test-lv' and CV 'test-cv'. This is NOT what's on the database, and it's misleading. Especially if you press the submit button again by mistake, you'll actually change the values for good, when you actually wanted 'production-le' and 'production-cv'. I will fix this ASAP, however keep in mind and please inform customers that their changes are being applied properly. The problem is just that the UI is not displaying it right. You may verify this using the API if you wish.
Patch under review upstream at https://github.com/Katello/katello/pull/7398
*** Bug 1591405 has been marked as a duplicate of this bug. ***
*** Bug 1585529 has been marked as a duplicate of this bug. ***
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23706 has been resolved.
*** Bug 1578321 has been marked as a duplicate of this bug. ***
Verified on Sat 6.4 snap 13, changes to hostgroup-inherited parameters of existing hosts are correctly reflected in the UI after saving and reviewing.
*** Bug 1635193 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927