Skip to content

Draft: update replace_host logic to reuse host objects

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

The host can appear in both the old (offline) and new (online) lists and during a discovery update the existing app connection pool gets discarded which unnecessarily resets the connection pool and sets the host to online without a log message if the host was offline before.

Please see issue for more details: #497226

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Irina Bronipolsky

Merge request reports

Loading