Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAmaani S Karimi
2019-01-15 14:05:52 UTC
Description of problem:
"Host configuration chart for Puppet" on Dashboard shows 100% ok, even though there are eg. 2 out of 1000 hosts in "out of sync".
The problem here is: When it says 100% ok, it should mean *all* - not almost all.
This problem is probably due to a roundup function that makes everything above and equal to 99.5% into 100% in the graph.
While the calculation is mathematically correct, it is pretty misleading, since you can not have fractions of a host.
Examples:
* When 99.75% out of 1000 hosts are OK, it should show 99% and not 100%.
Version-Release number of selected component (if applicable):
Red Hat Satellite 6.3.4
How reproducible:
100%
Actual results:
When it says 100% ok, it should mean *all* whereas it is not the case here.
Expected results:
It should not show 100% if some host is still not proper this could mislead.
I'm sorry, we can't guarantee any specific version at this point. We have someone looking at this right now. Given it's in a library that is used by others, the patch will probably need to make the behavior configurable, as other usages of the charting library may want keeping the rounding. Based on how complicated/risky the cherrypicking of the patch can be, we can estimate whether it's possible to backport to existing stable versions.
FYI: Since patches usually needs to be applied every time we update/upgrade, we will have to keep the amount of patches to a bare minimum.
We are in contact with another customer of yours, who are using the Satellite with 3500 hosts connected. If I calculate this right, this would result in the percentage of "ok hosts" is still showing 100%, even though 17 hosts is "out of sync".
We can't be the only user/customer finding this behavior weird and annoying, and yet you consider making this *bugfix* configurable?
An update: the PR with the fix was opened at https://github.com/patternfly/patternfly-react/pull/2375 if anyone wants to follow the progress. This was reported on 6.4 which may be more problematic to backport the fix to. How possible it is to upgrade to 6.5?
We're already at Sat 6.5, so a fix for that version would be just fine for us.
But: With the "precision=1" mentioned in the PR, won't we just move the problem to the next "decimal"? (EXP+1, from 199 hosts out of 200, to 1990 out of 2000 hosts)?
Even with "precision=2", we will meet the same problem when having 19999 out of 20000, right? But for Sat that would probably not be the largest problem :-)
(Disclaimer: Calculations may be wrong)
How about using a "~" to signify an approximate? Or maybe "<" and ">" for use with 100% and 0%, respectively?
The patch meanwhile changed so that the rounding shouldn't occur even on bigger numbers. So it would say 99.99%, while correctly it's 99.9999%. I hope this would be acceptable.
Created attachment 1711285[details]
Puppet chart
Tested on Sat 6.8 Snap 10. Even with 1000 of hosts, and only one synced (it is easier to get 1000 host not-synced and only one synced than the opposite :-) ), the chart shows less than 100% - see the attached screenshot.
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 (Important: Satellite 6.7.4 Async Bug Fix Update), 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:4127