Skip to content
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

Continue refresh if cis_connect fails #917

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

agrare
Copy link
Member

@agrare agrare commented Jul 12, 2024

The CIS vsphere-automation endpoint allows us to get tags and content libraries that aren't present in the VIM API. If there is a failure connecting to this endpoint for whatever reason we shouldn't fail the rest of the refresh.

@Fryguy
Copy link
Member

Fryguy commented Jul 12, 2024

How will we know if it's having trouble connecting though? Is there like a warning we can issue in the UI or on the authentication? Maybe put refresh status to yellow? I didn't mind merging as is, but I am concerned this will "hide" real issues.

@agrare
Copy link
Member Author

agrare commented Jul 12, 2024

I can log a warning, I don't think we have a way to set the refresh status to "warning" though. We have last_refresh_error nil or present and the UI shows a warning if there are no errors but the last_refresh_date is > N days ago

@agrare agrare force-pushed the handle_cis_connect_failure branch from 9b13395 to 1708722 Compare July 12, 2024 16:09
@miq-bot
Copy link
Member

miq-bot commented Jul 12, 2024

Checked commit agrare@1708722 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@Fryguy
Copy link
Member

Fryguy commented Jul 12, 2024

Might be interesting to have a last_refresh_warning and be able to show warning status. Or perhaps last_refresh_error plus success is interpreted as a warning.

This is fine for now though.

@Fryguy Fryguy merged commit 097e546 into ManageIQ:master Jul 12, 2024
4 checks passed
@agrare agrare deleted the handle_cis_connect_failure branch July 12, 2024 16:36
@agrare
Copy link
Member Author

agrare commented Jul 12, 2024

Yeah I was thinking we could replace last_refresh_error (which has the message) to last_refresh_status=success/error/warning and last_refresh_message

@Fryguy
Copy link
Member

Fryguy commented Jul 12, 2024

Backported to radjabov in commit e98c62e.

commit e98c62e8b7ba1bc32c807cafb6233d78abb36925
Author: Jason Frey <[email protected]>
Date:   Fri Jul 12 12:21:44 2024 -0400

    Merge pull request #917 from agrare/handle_cis_connect_failure
    
    Continue refresh if cis_connect fails
    
    (cherry picked from commit 097e54688200ae5de00e66108a3813709d0e221a)

Fryguy added a commit that referenced this pull request Jul 12, 2024
Continue refresh if cis_connect fails

(cherry picked from commit 097e546)
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.

3 participants