Bug 802897 - ElasticSearch indexing broken on machines with dashes in facts.cpu.numa_node0_cpu(s)
ElasticSearch indexing broken on machines with dashes in facts.cpu.numa_node0...
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
Unspecified Unspecified
high Severity high (vote)
: Unspecified
: 6.0
Assigned To: Justin Sherrill
Katello QA List
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2012-03-13 13:07 EDT by Jordan OMara
Modified: 2014-11-09 17:55 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-15 14:57:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jordan OMara 2012-03-13 13:07:14 EDT
I think some of the ElasticSearch fact formatters are not chosen correctly. They should probably be strings instead of "dates". Here's what happens when you try to index a system with something it doesn't like in this field:

{"error":"MapperParsingException[Failed to parse [facts.cpu.numa_node0_cpu(s)]]; nested: MapperParsingException[failed to parse date field, tried both date format [dateOptionalTime], and timestamp number]; nested: IllegalArgumentException[Invalid format: \"0,2,4,6,8,10\" is malformed at \",2,4,6,8,10\"]; ","status":400}

A customer installed RHSM on a variety of HP servers, some of which report this field as a comma-separated list, some of which report this field as a range (0-3). Regardless, this field should be more flexible.

The system does get saved correctly in Katello, but it is not indexed and does not show up on the "Systems" page as a result
Comment 2 Justin Sherrill 2012-03-13 17:32:31 EDT
    Prior to this system fact types were set automatically in
    the search server, so certain facts could be detected poorly
    as dates.  This resulted in some systems failing to index
    properly due to their facts not being able to be interpreted
    as dates.

    By setting a dynamic template on the index,
    everything under facts will be automatically set to the
    string type and keyword analyzer.

Comment 5 Jeff Weiss 2012-03-16 21:07:10 EDT
Registered a system with "cpu.numa_node0_cpu(s)" "0-3"
was able to see the system and search for facts and see that system in the filtered list.
Verified, CloudForms System Engine Version: 0.1.304-1.el6
Comment 6 errata-xmlrpc 2012-05-15 14:57:29 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.