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

CA-384936 attach static VDIs for redo-log #5235

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

lindig
Copy link
Contributor

@lindig lindig commented Nov 8, 2023

The redo-log without HA is missing to attach the static VDIs that
actually contain the redo log. Call the same code that we are using in
the HA case.

Christian Lindig added 2 commits November 7, 2023 16:03
We have a case where we don't know why the redo log is not found on
boot. We need this log entry to understand if any VDIs are found.

Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
The redo-log without HA is missing to attach the static VDIs that
actually contain the redo log. Call the same code that we are using in
the HA case.

Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
@@ -531,6 +531,7 @@ let start_redo_log () =
&& not (bool_of_string (Localdb.get Constants.ha_armed))
then (
debug "Redo log was enabled when shutting down, so restarting it" ;
Static_vdis.reattempt_on_boot_attach () ;
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to share init code in both cases instead of adding more actions here and comparing with the HA case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is pretty minimal; otherwise we would need to refactor all this redo log code. I suspect this fix is missing in the DR code as well.

@lindig
Copy link
Contributor Author

lindig commented Nov 9, 2023

The test that found this issue passes with this change.

@lindig lindig merged commit 893fd6d into xapi-project:master Nov 13, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants