Comments (8)
@smallteeths backend merged.
from longhorn.
@shreesha21 Can you document the API reference for the restoration status for UI here?
from longhorn.
@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.
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.
@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.
@smallteeths longhorn/longhorn-manager#355 has been merged, now API shows replica name instead of IP.
from longhorn.
@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.
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, ClickCreate 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 setNumber of replicas
, and clickOK
Expected result: Restoration should start, and restoration progress should be visible in
1 -Volume Details
page atVolume Details
section
2 -Volume Details
page atReplicas
section for every volume replica.
3 -Volume
page under volume status.
from longhorn.
Related Issues (20)
- [BUG] Volume with v1.5.x engine not worked well in v1.6.0-rc1 HOT 2
- [BUG][v1.6.0-rc1] Error message in longhorn-uninstall job logs HOT 3
- [BUG][v1.6.0-rc1] Some Longhorn resources remaining after longhorn-uninstall job completed HOT 3
- [TEST] rocky linux pipeline not working due to "accept terms and subscribe" HOT 1
- [BUG] Volume with v1.5.x engine not worked well in master-head HOT 7
- [TEST] Update test case `PVC provisioning with insufficient storage` HOT 1
- [TEST] Support latest Linux distributions for 1.6
- [IMPROVEMENT] Flooding error messages `failed to sync setting for.....` HOT 3
- [BUG] Update the description of v2-data-engine setting
- [BUG] Longhorn deploys pods on Windows nodes when installed with Helm
- [BUG] Uninstallation job stuck forever if the MutatingWebhookConfigurations or ValidatingWebhookConfigurations already deleted HOT 2
- [BACKPORT][v1.5.4][BUG] Uninstallation job stuck forever if the MutatingWebhookConfigurations or ValidatingWebhookConfigurations already deleted
- [BACKPORT][v1.4.5][BUG] Uninstallation job stuck forever if the MutatingWebhookConfigurations or ValidatingWebhookConfigurations already deleted
- waiting with nfs server start, volume is not attached HOT 4
- [BACKPORT][v1.5.4][BUG][v1.6.0-rc1] Some Longhorn resources remaining after longhorn-uninstall job completed
- [BACKPORT][v1.4.5][BUG][v1.6.0-rc1] Some Longhorn resources remaining after longhorn-uninstall job completed
- [CI] Create 1.6.x e2e pipelines
- [DOC] Update actively supported branches (1.5 and 1.4) supporting SLES 15 SP5 and SLE Micro 5.5
- [TASK] Update the descriptions of setting variables in chart after doc review HOT 1
- [BUG] File system freeze impossible HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longhorn.