-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove legacy collection #4009
Conversation
08267a6
to
bfe8912
Compare
bfe8912
to
fd791b4
Compare
This PR requires corresponding modifications to the IQE test. Before this, the IQE test will always fail. |
Core collection should be disabled by default, unless | ||
the RPM version 3.1 or above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, how does this work with RHEL 6, which was shipped with Client 3.0.14?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For RHEL 6, or RHEL 7, any client installed with a version older than 3.0.14
, core_collect
will be set to True by default, after this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per my test, the oldest version of the insights-client insights-client-3.0.0-4
that we provided to the customers, works well with core_collect=True
on RHEL 6/7, for details please check the new comment to the RHINENG-6982
Can one of the admins verify this patch? |
b13ab9d
to
d322759
Compare
Hi @xiangce , the legacy collection change looks good to me. And I tried to run cli command FYI, the detail command output example:
|
a9d0e47
to
07854e1
Compare
Hi @JoySnow - thanks for reviewing. The issue you found was fixed in the latest commit, please have a look again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been able to run this Core on RHEL 6.10 system with Client 3.0.14. I don't think I have notes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @xiangce . The insights-collect
command works well now.
$ insights-collect
/tmp/insights-xiaoxwan-test321-rhel91.default-20240521082408
07854e1
to
09c8bd8
Compare
09c8bd8
to
c1af04c
Compare
0f7bd27
to
ee9368e
Compare
ee9368e
to
9d7bfed
Compare
test me |
2 similar comments
test me |
test me |
d4f02d9
to
6bc58a1
Compare
* Enhance httpd_conf mapper and shared reducer Mapper: - improved full_data field to store not only last found value, but also all previous ones in a list Reducer: - store parsed data in data field not only the last value, but also all found values as the list. - added methods get_active_setting, get_setting_list to get more complex data structures with more data than backward compatible method get_valid_setting https://bugzilla.redhat.com/show_bug.cgi?id=1455516 * Resolved review comments * Remove unused import
* Enhance httpd_conf to support nested sections - IfModule section is nest-able - Support all the sections (includes nested sections) - Re-define section name with a tuple in format of:('type', 'name') e.g.: ('IfModule', 'prefork.c') - Remove the useless data and rename the `full_data` to `data` - Remove the deprecated `get_valid_setting` from master branch `insights-plugin` does not depend on the master branch - Re-design the `get_active_setting` - Remove the filter: Do not filter httpd_conf from now on * WIP: Version 1 - supported all kinds of sections includes nest-able sections - revert get_setting_list() and enhance get_active_setting() * Move `ParsedData` to parser `httpd_conf.py` as a global type - by moving `ParsedData` simplify the logic of the two 'get_' in combiner - Improve the dostrings and examples - Enhance test coverage to 100% * Enhance get_setting_list and get_active_setting - get_setting_list returns empty list instead of None when nothing is found - get_active_setting: returns an empty list when section is specified and nothing is found returns None when section is not specified and nothing is found
* Adding method from LogFileOutput * Testing new method * Now use timestamp formats for error and regular times * Updated to time_format property, added standard and error formats for ProxyLog
- It's necessary to remove the `filters` because of some plugins, such as load_nfsmod_failed, need to check if their content is empty.
* New method in HttpdConfAll combiner to list sections. Needed by upcoming httpd hardening rule. * Fixed docstring, simplified code. * Fixed a docstring.
* Support mode was missing some config being passed in
The mounts combiner has one performance issue for IBM gpfs running hosts. As this combiner is not necessary, remove it by this MR. Use parsers.mount when you need mount information. IBM GPFS internal mount: https://www.ibm.com/support/pages/gpfs-internal-and-external-mount-states Signed-off-by: Chen lizhong <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
- and remove all dependent codes and relevant tests - update the script that generates the filters.yaml - see RHINENG-6982 Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
- as it's just deprecated but should supported for a while Signed-off-by: Xiangce Liu <[email protected]>
Signed-off-by: Xiangce Liu <[email protected]>
6bc58a1
to
a6683ba
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4009 +/- ##
==========================================
+ Coverage 76.69% 76.88% +0.19%
==========================================
Files 759 757 -2
Lines 41788 41342 -446
Branches 9603 9526 -77
==========================================
- Hits 32049 31787 -262
+ Misses 8639 8478 -161
+ Partials 1100 1077 -23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
- when collecting in py26 env, if the foreach_execute specs depends on DatasourceProvider, the provider will be in unicode type and causes the followed validate() fail - this change converted the unicode to string by force for all 'cmd' passed to CommandOutputProvider Signed-off-by: Xiangce Liu <[email protected]> rh-pre-commit.version: 2.3.1 rh-pre-commit.check-secrets: ENABLED
- and remove all dependent codes and relevant tests - update the script that generates the filters.yaml - see RHINENG-6982 Signed-off-by: Xiangce Liu <[email protected]> (cherry picked from commit 7ff8c5e)
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Add your description here