Bug 1174855
Summary: | CFME 3.1 Zone level log collection not working as expected | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Thomas Hennessy <thenness> | |
Component: | Appliance | Assignee: | Joe Rafaniello <jrafanie> | |
Status: | CLOSED ERRATA | QA Contact: | Jan Krocil <jkrocil> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 5.3.0 | CC: | jhardy, jocarter, jrafanie, mfeifer, xlecauch | |
Target Milestone: | GA | |||
Target Release: | 5.4.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | 5.4.0.0.11 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1182782 (view as bug list) | Environment: | ||
Last Closed: | 2015-06-16 12:46: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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1182782 |
Description
Thomas Hennessy
2014-12-16 15:46:29 UTC
Thanks for the great description! Work in progress branch: https://github.com/jrafanie/manageiq/compare/zone_collecting_only_one_server_logs_n_times Need to add some tests to verify the new behavior works as originally intended. Upstream pull request: https://github.com/ManageIQ/manageiq/pull/1277 New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/4511cac601dc80cb0c70b390eb8f2e9a50e4bd78 commit 4511cac601dc80cb0c70b390eb8f2e9a50e4bd78 Author: Joe Rafaniello <jrafanie> AuthorDate: Mon Dec 22 17:18:58 2014 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Dec 22 17:29:30 2014 -0500 Move specific setup out of the general LogManagement context. https://bugzilla.redhat.com/show_bug.cgi?id=1174855 vmdb/spec/models/miq_server/log_management_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/e3fd51da79beadc98597081fc7c08177aa2d9a09 commit e3fd51da79beadc98597081fc7c08177aa2d9a09 Author: Joe Rafaniello <jrafanie> AuthorDate: Thu Dec 18 18:41:44 2014 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Tue Dec 23 15:29:46 2014 -0500 Pass the server receiving the synchronize_logs message. https://bugzilla.redhat.com/show_bug.cgi?id=1174855 If initiated from a zone, we want to create one miq_queue and miq_tasks row for each server in the Zone. Without this change, it will create N number of rows for the server receiving the web request, MiqServer.my_server, where N is the number of active servers in the zone. It will never request logs for the other servers in the zone. This is fairly easy to recreate: 1) Setup a Zone with 2 or more "active" appliances (miq_servers) 2) Request log collection for the Zone 3) Look at the log depot and find only the logs from the server receiving the web request. vmdb/app/models/miq_server/log_management.rb | 4 +++- vmdb/spec/models/miq_server/log_management_spec.rb | 20 +++++++++++++++++++- vmdb/spec/models/shared_examples/log_collection.rb | 6 +++--- 3 files changed, 25 insertions(+), 5 deletions(-) New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=3fa2063c234ac5ec9994dbb839e33b6744253e3c commit 3fa2063c234ac5ec9994dbb839e33b6744253e3c Author: Joe Rafaniello <jrafanie> AuthorDate: Mon Dec 22 17:18:58 2014 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Thu Jan 15 16:47:30 2015 -0500 Move specific setup out of the general LogManagement context. https://bugzilla.redhat.com/show_bug.cgi?id=1174855 vmdb/spec/models/miq_server/log_management_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6031ef8866183e4828e645dd6a3fe53b18e7067f commit 6031ef8866183e4828e645dd6a3fe53b18e7067f Author: Joe Rafaniello <jrafanie> AuthorDate: Thu Dec 18 18:41:44 2014 -0500 Commit: Joe Rafaniello <jrafanie> CommitDate: Thu Jan 15 16:47:36 2015 -0500 Pass the server receiving the synchronize_logs message. https://bugzilla.redhat.com/show_bug.cgi?id=1174855 If initiated from a zone, we want to create one miq_queue and miq_tasks row for each server in the Zone. Without this change, it will create N number of rows for the server receiving the web request, MiqServer.my_server, where N is the number of active servers in the zone. It will never request logs for the other servers in the zone. This is fairly easy to recreate: 1) Setup a Zone with 2 or more "active" appliances (miq_servers) 2) Request log collection for the Zone 3) Look at the log depot and find only the logs from the server receiving the web request. vmdb/app/models/miq_server/log_management.rb | 4 +++- vmdb/spec/models/miq_server/log_management_spec.rb | 20 +++++++++++++++++++- vmdb/spec/models/shared_examples/log_collection.rb | 6 +++--- 3 files changed, 25 insertions(+), 5 deletions(-) Verified fixed in 5.4.0.4 (5.4.0.4.20150528174021_88cc76c). With current behavior, appliance log depot must be unset for zone log depot to be used during zone log collection, otherwise appliance log depot is prioritized. More information can be found here https://github.com/ManageIQ/manageiq/issues/1962 in the "Existing behavior" section. 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://rhn.redhat.com/errata/RHBA-2015-1100.html |