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

fix(backup): ensure volume attached before taking backup #2181

Conversation

ChanYiLin
Copy link
Contributor

ref: longhorn/longhorn#6699

need to ensure engine status and desired statue are the same before taking backup

ref: longhorn/longhorn6699

Signed-off-by: Jack Lin <jack.lin@suse.com>
Copy link
Member

@innobead innobead left a comment

Choose a reason for hiding this comment

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

LGTM.

It would be better to improve VerifyAttachment to ensure the ticket is really satisfied, even though it seems insufficient info to achieve this. (currently, we only have the node ID to attach and the volume status.)

/controller/backup_controller.go#L624-L627

	ok, err := bc.VerifyAttachment(backup, volume.Name)
	if err != nil {
		return nil, err
	}

@innobead
Copy link
Member

innobead commented Oct 2, 2023

@mergify backport v1.5.x

@mergify
Copy link

mergify bot commented Oct 2, 2023

backport v1.5.x

✅ Backports have been created

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