Code Monkey home page Code Monkey logo

Comments (5)

longhorn-io-github-bot avatar longhorn-io-github-bot commented on May 28, 2024

Pre Ready-For-Testing Checklist

from longhorn.

roger-ryao avatar roger-ryao commented on May 28, 2024

Verified on v1.6.x-head 20240223

The test steps

Test Method 1 : #7945 (comment)

  1. Launch 2 clusters and both have Longhorn installed
  2. Set up a backup target.
  3. Create two volumes and write data in the 1st cluster. Then create volumes' backups.
  4. Restore two backup files as DR volumes in the 2nd cluster.
  5. Modify the backup poll interval to a large value.
  6. Write more data for the volumes in the 1st cluster, and create the 2nd backup.
  7. Activate one of the DR volumes in the 2nd cluster. Then verify the data

Test Method 2 refer:#7947 (comment)

Result
Hi @shuo-wu
The activated DR volume does not contain the latest data. However, manually updating backupVolume.Spec.SyncRequestedAt causes the DR volume to sync up with the latest backup.
Could you help to check it?

supportbundle_91df4b65-3a16-4cb1-8d8f-d901ffb280da_2024-02-23T10-10-56Z.zip
volume name : pvc-3da73260-6e9d-4a18-80ac-ae63864ed6c2

from longhorn.

shuo-wu avatar shuo-wu commented on May 28, 2024

Weird...
The activation is triggered (and finished) at 2024-02-23T10:06:23Z. backupVolume.Spec.SyncRequestedAt should be the same timestamp. But its value in the support bundle is 2024-02-23T10:06:25Z. I have not found that which one updates it again. BTW, the 2nd backup backup-8fefd2d832114dcb creation time is 2024-02-23T10:06:24Z

2024-02-23T10:06:23.531811509Z time="2024-02-23T10:06:23Z" level=info msg="Activating volume pvc-3da73260-6e9d-4a18-80ac-ae63864ed6c2 with frontend blockdev" func="manager.(*VolumeManager).Activate" file="volume.go:422"
2024-02-23T10:06:23.849213385Z time="2024-02-23T10:06:23Z" level=info msg="Restore/DR volume finished with the last restored backup backup-c0d99731ad034d59" func="controller.(*VolumeController).checkAndFinishVolumeRestore" file="volume_controller.go:3214" accessMode=rwx controller=longhorn-volume frontend=blockdev migratable=false node=ryao-16x-w1-29d1f2d8-bwq5j owner=ryao-16x-w1-29d1f2d8-bwq5j shareEndpoint= shareState=stopped state=attached volume=pvc-3da73260-6e9d-4a18-80ac-ae63864ed6c2

Is this case always reproducible? Can this be reproduced in other versions (master or v1.5.x)?

from longhorn.

roger-ryao avatar roger-ryao commented on May 28, 2024

Weird... The activation is triggered (and finished) at 2024-02-23T10:06:23Z. backupVolume.Spec.SyncRequestedAt should be the same timestamp. But its value in the support bundle is 2024-02-23T10:06:25Z. I have not found that which one updates it again. BTW, the 2nd backup backup-8fefd2d832114dcb creation time is 2024-02-23T10:06:24Z

2024-02-23T10:06:23.531811509Z time="2024-02-23T10:06:23Z" level=info msg="Activating volume pvc-3da73260-6e9d-4a18-80ac-ae63864ed6c2 with frontend blockdev" func="manager.(*VolumeManager).Activate" file="volume.go:422"
2024-02-23T10:06:23.849213385Z time="2024-02-23T10:06:23Z" level=info msg="Restore/DR volume finished with the last restored backup backup-c0d99731ad034d59" func="controller.(*VolumeController).checkAndFinishVolumeRestore" file="volume_controller.go:3214" accessMode=rwx controller=longhorn-volume frontend=blockdev migratable=false node=ryao-16x-w1-29d1f2d8-bwq5j owner=ryao-16x-w1-29d1f2d8-bwq5j shareEndpoint= shareState=stopped state=attached volume=pvc-3da73260-6e9d-4a18-80ac-ae63864ed6c2

Is this case always reproducible? Can this be reproduced in other versions (master or v1.5.x)?

I built up the test environment 3 times, and the issue could be reproduced on v1.6.x. However, I didn't observe the issue on v1.5.4-rc3. I think I should test it on v1.5.4-rc4. I didn't test it with the master-head yet.

from longhorn.

roger-ryao avatar roger-ryao commented on May 28, 2024

Verified on v1.6.x-head 20240301

The test steps

Test Method 1 : #7945 (comment)

  1. Launch 2 clusters and both have Longhorn installed
  2. Set up a backup target.
  3. Create two volumes and write data in the 1st cluster. Then create volumes' backups.
  4. Restore two backup files as DR volumes in the 2nd cluster.
  5. Modify the backup poll interval to a large value.
  6. Write more data for the volumes in the 1st cluster, and create the 2nd backup.
  7. Activate one of the DR volumes in the 2nd cluster. Then verify the data

Test Method 2 refer:#7947 (comment)

Result Passed

from longhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.