Hide Forgot
Description of problem: Getting below error while selecting facts mountpoints & partitions "Oops, we're sorry but something went wrong No route matches {:action=>"index", :controller=>"fact_values", :host_id=>"vm249-255.gsslab.pnq2.redhat.com", :parent_fact=>"mountpoints::/"}, possible unmatched constraints: [:parent_fact] " "Oops, we're sorry but something went wrong No route matches {:action=>"index", :controller=>"fact_values", :host_id=>"vm249-255.gsslab.pnq2.redhat.com", :parent_fact=>"partitions::/dev/mapper/rhel_vm249--255-root"}, possible unmatched constraints: [:parent_fact] " Version-Release number of selected component (if applicable): 6.4 How reproducible: 100% Steps to Reproduce: 1. Monitor > Facts > Select mountpoints or partitions. 2. 3. Actual results: Getting Error: "Oops, we're sorry but something went wrong No route matches {:action=>"index", :controller=>"fact_values", :host_id=>"vm249-255.gsslab.pnq2.redhat.com", :parent_fact=>"mountpoints::/"}, possible unmatched constraints: [:parent_fact] " "Oops, we're sorry but something went wrong No route matches {:action=>"index", :controller=>"fact_values", :host_id=>"vm249-255.gsslab.pnq2.redhat.com", :parent_fact=>"partitions::/dev/mapper/rhel_vm249--255-root"}, possible unmatched constraints: [:parent_fact] " Expected results: Facts should be shown. Additional info: Logs captured in Production.log ==> /var/log/foreman/production.log <== 2018-12-21T05:09:29 [I|app|fe1b5] Rendered collection of fact_values/_fact.html.erb [7 times] (8.2ms) 2018-12-21T05:09:29 [I|app|fe1b5] Rendered fact_values/index.html.erb within layouts/application (253.0ms) 2018-12-21T05:09:29 [W|app|fe1b5] Action failed ActionView::Template::Error: No route matches {:action=>"index", :controller=>"fact_values", :host_id=>"vm249-255.gsslab.pnq2.redhat.com", :parent_fact=>"mountpoints::/"}, possible unmatched constraints: [:parent_fact] /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/action_dispatch/journey/formatter.rb:55:in `generate' /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/action_dispatch/routing/route_set.rb:748:in `generate'
Still present in 6.4.2, exactly as described by Avijit.
Upstream bug assigned to mhulan@redhat.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/16818 has been resolved.
The patch is tiny and easy to backport, if the need be.
The fix works, it is now possible to click on mountpoint/partitions/"facts with / in it", but there is an edge case, where a fact is processed incorrectly. Normally, clicking on a mountpoint fact shows detailed facts about the mountpoint (size, size_bytes, capacity, used, etc.). This works for all sub-mounts - /home, /boot, /dev etc. But clicking on the root partition (/) doesn't show these detailed facts, and goes back to the main fact page for the given host instead. Satellite interprets a lone "/" incorrectly, even when it is a part of a "mountpoint" fact.
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-2020:1454