Giter VIP home page Giter VIP logo

Comments (8)

yasker avatar yasker commented on May 22, 2024

@smallteeths backend merged.

from longhorn.

yasker avatar yasker commented on May 22, 2024

@shreesha21 Can you document the API reference for the restoration status for UI here?

from longhorn.

yasker avatar yasker commented on May 22, 2024

@smallteeths for now you should able to refer to https://github.com/longhorn/longhorn-manager/blob/master///api/model.go#L584

Each replica has it's own restoration status, and the volume can show the average.
Progress is in % as backup status.
State can be incomplete, complete, error. When it's incomplete, progress shows the detail percentage of completeness. When it's error, the error field should show the reason.

from longhorn.

shreesha21 avatar shreesha21 commented on May 22, 2024

Request: curl http://172.104.18.252:30766/v1/volumes
Response: The response contains all the fields of volume object along with restoreStatus as below:

   "data" : [
      {
         "restoreStatus" : [
            {
               "lastRestored" : "",
               "progress" : 0,
               "actions" : null,
               "replica" : "tcp://10.42.0.75:9502",
               "isRestoring" : false,
               "error" : "",
               "state" : "",
               "links" : null,
               "filename" : ""
            },
            {
               "replica" : "tcp://10.42.2.132:9502",
               "isRestoring" : true,
               "actions" : null,
               "progress" : 73,
               "lastRestored" : "",
               "filename" : "volume-snap-76cf801b-279e-4a0b-a36b-8c78cb279135.img",
               "links" : null,
               "error" : "",
               "state" : "incomplete"
            }
            ...
            ...
         ],
}

from longhorn.

yasker avatar yasker commented on May 22, 2024

@shreesha21 We need to update the replica field in the manager API to report the replica name instead of IP, otherwise it's hard for UI to figure out which is which. Only need to update the manager API, no change needed for the engine.

from longhorn.

yasker avatar yasker commented on May 22, 2024

@smallteeths longhorn/longhorn-manager#355 has been merged, now API shows replica name instead of IP.

from longhorn.

yasker avatar yasker commented on May 22, 2024

@smallteeths reports that the replica states during the restoration are switching between RW and ``(empty). We should report empty since it's not ready yet.

@shreesha21 ^^

from longhorn.

meldafrawi avatar meldafrawi commented on May 22, 2024

Validattion: PASSED

Steps to test:

  • Create a volume, attach it to a node, format it, mount it to a directory on attached node, write some data to it.
  • In Settings page, make sure backup target is correctly configured.
  • In Volume Details page, Click Create Backup, and wait for backup to complete.
  • In Backup page, click on volume name
  • From the right drop down menu of the backup, click Restore.
  • Enter Name, and set Number of replicas, and click OK

Expected result: Restoration should start, and restoration progress should be visible in
1 - Volume Details page at Volume Details section
2 - Volume Details page at Replicas section for every volume replica.
3 - Volume page under volume status.

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.