Bug 1564740
| Summary: | Unable to override hostgroup parameters from All hosts => edit host on WebUI | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Nithin Thomas <nitthoma> | |
| Component: | Host Form | Assignee: | Daniel Lobato Garcia <dlobatog> | |
| Status: | CLOSED ERRATA | QA Contact: | Peter Ondrejka <pondrejk> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.3.0 | CC: | ahumbe, akaiser, bkearney, david.koczorowski, dlobatog, ehelms, gapatil, inecas, kgaikwad, mayadav, mhulan, mjia, mmccune, molasaga, nitthoma, pcreech, pierre-yves.goubet, rabajaj, rproffit, sgraessl, sthirugn, tbrisker, vgunasek, walden, yferszt | |
| Target Milestone: | 6.4.0 | Keywords: | Triaged | |
| Target Release: | Unused | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1624025 (view as bug list) | Environment: | ||
| Last Closed: | 2018-10-16 19:26:27 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
|
Description
Nithin Thomas
2018-04-07 09:53:45 UTC
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 |