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

replication: requeue if any error in secondary state #124

Merged
merged 1 commit into from Oct 26, 2021

Conversation

Madhu-1
Copy link
Member

@Madhu-1 Madhu-1 commented Oct 25, 2021

if the resync failed (marking the image as secondary)
failed, requeue the request for 15 seconds as this can
also increases the recovery time.

address #123 (comment)

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

if the resync failed (marking the image as secondary)
failed, requeue the request for 15 seconds as this can
also increases the recovery time.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1
Copy link
Member Author

Madhu-1 commented Oct 25, 2021

logs to confirm the requeue in case of error.

{"level":"info","timestamp":"2021-10-25T13:59:17.226Z","logger":"controllers.VolumeReplication","caller":"controller/controller.go:298","msg":"volume handle","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","VolumeHandleName":"0001-0009-rook-ceph-0000000000000002-d033a6ae-3551-11ec-8181-0242ac110005"}
{"level":"error","timestamp":"2021-10-25T13:59:17.477Z","logger":"controllers.VolumeReplication","caller":"controllers/volumereplication_controller.go:241","msg":"failed to resync volume","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","error":"rpc error: code = Internal desc = not resyncing. image is in unknown state"}
{"level":"error","timestamp":"2021-10-25T13:59:17.477Z","logger":"controllers.VolumeReplication","caller":"controller/controller.go:298","msg":"failed to Replicate","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","ReplicationState":"secondary","error":"rpc error: code = Internal desc = not resyncing. image is in unknown state"}

{"level":"info","timestamp":"2021-10-25T13:59:32.504Z","logger":"controllers.VolumeReplication","caller":"controller/controller.go:298","msg":"volume handle","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","VolumeHandleName":"0001-0009-rook-ceph-0000000000000002-d033a6ae-3551-11ec-8181-0242ac110005"}
{"level":"error","timestamp":"2021-10-25T13:59:32.632Z","logger":"controllers.VolumeReplication","caller":"controllers/volumereplication_controller.go:241","msg":"failed to resync volume","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","error":"rpc error: code = Internal desc = not resyncing. image is in unknown state"}
{"level":"error","timestamp":"2021-10-25T13:59:32.632Z","logger":"controllers.VolumeReplication","caller":"controller/controller.go:298","msg":"failed to Replicate","Request.Name":"pvc-volumereplication-restore","Request.Namespace":"default","ReplicationState":"secondary","error":"rpc error: code = Internal desc = not resyncing. image is in unknown state"}

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.

None yet

2 participants