Skip to content

show zone collect logs #8140

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

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

MelsHyrule
Copy link
Member

@MelsHyrule MelsHyrule commented Feb 24, 2022

Fixes #8135

Before

Screen Shot 2022-02-24 at 1 58 20 PM

After

Screen Shot 2022-02-24 at 1 57 13 PM

@miq-bot add-reviewer @kavyanekkalapu
@miq-bot assign @kavyanekkalapu

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I missed it in the screenshot...it's undefined method .started? for Zone. In that case we shouldn't catch an exception but should check for that explicitly. So I'm thinking we this should check the @selected_server is actually a server, or perhaps check if it responds_to?(:started?) (perhaps with try).

I'm also curious why @selected_server is a zone object. that seems weird to me...did something change in the controller?

@chessbyte chessbyte added the bug label Feb 24, 2022
@chessbyte
Copy link
Member

@Fryguy Since log collection does not work in Podified (users should use EFK) and it is not a core function of the product (but only assists in diagnostics), should it be added to the Chopping Block?

@MelsHyrule MelsHyrule force-pushed the show_zone_collect_logs branch from 1399840 to 23838db Compare February 24, 2022 21:35
@MelsHyrule MelsHyrule requested a review from Fryguy February 24, 2022 21:36
@MelsHyrule MelsHyrule force-pushed the show_zone_collect_logs branch from 103ed7c to 2888e15 Compare February 24, 2022 21:41
@Fryguy
Copy link
Member

Fryguy commented Feb 24, 2022

@chessbyte maybe not chopping block completely, but we should definitely discuss as it probably needs to be rethought. Users still need to get the logs somehow, but maybe a UI thing isn't the right way anymore. I still like the central logging idea we were going to do with journald remote on appliances.

@miq-bot
Copy link
Member

miq-bot commented Feb 24, 2022

Checked commit MelsHyrule@2888e15 with ruby 2.6.7, rubocop 1.19.1, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@MelsHyrule
Copy link
Member Author

why @selected_server is a zone object.

@Fryguy @selecter_server always had the case for being a Zone object you can find it here https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/ops_controller/diagnostics.rb#L600

@Fryguy
Copy link
Member

Fryguy commented Feb 25, 2022

Wild. Thanks for tracking that down.

@kavyanekkalapu kavyanekkalapu merged commit 439a5d3 into ManageIQ:master Feb 28, 2022
@Fryguy
Copy link
Member

Fryguy commented Feb 28, 2022

Backported to najdorf in commit bf777fc.

commit bf777fce809261607ea9d53373d419fc8cdb70fd
Author: Kavya Nekkalapu <[email protected]>
Date:   Mon Feb 28 14:14:25 2022 -0500

    Merge pull request #8140 from MelsHyrule/show_zone_collect_logs
    
    show zone collect logs
    
    (cherry picked from commit 439a5d33db1dcf1d090f7bef6e651c107951b5b2)

Fryguy pushed a commit that referenced this pull request Feb 28, 2022
show zone collect logs

(cherry picked from commit 439a5d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zone collect logs are not showing up
5 participants