Uh oh!
There was an error while loading. Please reload this page.
New feature: Add support to destroy/recover volumes - #3688
Conversation
…unged but not removed Steps to reproduce the issue (1) create a vm and stop it. check resource count of primary storage (2) download volume. resource count of primary storage is not changed. (3) expunge the vm, the volume will be Expunged state as there is a volume snapshot on secondary storage. The resource count of primary storage decreased. (4) update resource count of the account (or domain), the resource count of primary storage is reset to the value in step (2).
| "label.action.destroy.instance.processing": "正在销毁实例...", | ||
| "label.action.destroy.systemvm": "销毁系统 VM", | ||
| "label.action.destroy.systemvm.processing": "正在销毁系统 VM...", | ||
| "label.action.destroy.volume":"Destroy Volume", |
There was a problem hiding this comment.
You have your own to translate @DaanHoogland as well ;)
There was a problem hiding this comment.
@K0zka@cl-k-takahashi@svenvogel@nvazquez@pdion891@div8cn@GabrielBrascher
If you guys want to donate 5min of your life to translate those 2-3 lines to your languages - you are most welcome.
There was a problem hiding this comment.
@andrijapanicsb
"label.action.destroy.volume":"ボリュームの破棄",
"label.action.recover.volume":"ボリュームの復元",
"message.action.destroy.volume":"このボリュームを破棄してもよろしいですか?",
"message.action.recover.volume":"このボリュームを復元してもよろしいですか?",
There was a problem hiding this comment.
@andrijapanicsb here we go. 😄 (german)
"label.action.recover.volume":"Volume wiederherstellen","message.action.destroy.volume":"Bitte bestätigen, dass Sie das Volume zerstören wollen.","message.action.recover.volume":"Bitte bestätigen, dass die das Volume wiederherstellen wollen.",do we speak about this lines?
There was a problem hiding this comment.
@svenvogel one line is missing its translation...please add ASAP?
There was a problem hiding this comment.
"label.action.destroy.volume":"vernietig schijf",
"label.action.recover.volume":"herstel schijf",
"message.action.destroy.volume":"Bevestig alstublieft dat U deze schijf wilt vernietigen?",
"message.action.recover.volume":"Bevestig alstublieft dat U deze schijf wilt herstellen?",
there's Dutch for you @andrijapanicsb
There was a problem hiding this comment.
I took the liberty to capitalise those first 2, I'm sure it would be painful for you to see it lowercase @DaanHoogland
There was a problem hiding this comment.
We, the Dutch, are not getting high on capitalisation usually, @andrijapanicsb ! I did it exactly according to convention; start of sentence, 'U', personal names, geographical names. That's it.
DaanHoogland
commented
Nov 22, 2019
seems like a useful feature @ustcweizhou . I had a global look and saw some style issues but no real ones. I'll do a thourough review when I have time. @PaulAngus@andrijapanicsb any thoughts? |
yadvr
commented
Dec 7, 2019
@blueorangutan package |
blueorangutan
commented
Dec 7, 2019
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 7, 2019
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-438 |
andrijapanicsb
commented
Jan 3, 2020
@blueorangutan package |
andrijapanicsb
commented
Jan 4, 2020
@blueorangutan package |
blueorangutan
commented
Jan 4, 2020
@andrijapanicsb a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jan 4, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-532 |
andrijapanicsb
commented
Jan 4, 2020
@blueorangutan test |
blueorangutan
commented
Jan 4, 2020
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jan 5, 2020
Trillian test result (tid-695)
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DaanHoogland
commented
Jan 9, 2020
code looks good, two minor remarks @weizhouapache |
@weizhouapache I've been committing the translation messages directly to your branch - hope that is ok? (wouldn't dare to touch the code) |
yadvr
commented
Jan 28, 2020
@blueorangutan package |
blueorangutan
commented
Jan 28, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jan 28, 2020
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-666 |
yadvr
commented
Jan 29, 2020
@blueorangutan package |
blueorangutan
commented
Jan 29, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jan 29, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-690 |
DaanHoogland
commented
Jan 29, 2020
@blueorangutan test |
blueorangutan
commented
Jan 29, 2020
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jan 29, 2020
Trillian test result (tid-841)
|
weizhouapache
commented
Jan 30, 2020
@andrijapanicsb Thanks a lot for your translations ! |
weizhouapache
commented
Jan 30, 2020
@DaanHoogland Thanks for review ! I added a commit per your comments. |
yadvr
commented
Feb 3, 2020
@blueorangutan package |
blueorangutan
commented
Feb 3, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 3, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-739 |
DaanHoogland
commented
Feb 3, 2020
@rhtyd this passed all tests last week, do we need a retest? |
DaanHoogland
left a comment
There was a problem hiding this comment.
For what tis worth, the Dutch capitalisation convention; start of sentence, 'U', personal names, geographical names. That's it, not even month or weekday names not designations of conditions like nationality get capatalised. This means the translation in general is not exactly according to national standards. Having gotten that of my chest; I am not investing time in this now, so ... lgtm
andrijapanicsb
commented
Feb 7, 2020
2 approving changes, Merging. |
DaanHoogland
commented
Feb 11, 2020
@rhtyd are you referring to this with #3601 (comment) ? |
yadvr
commented
Feb 11, 2020
Yes @DaanHoogland maybe Wei can comment? |
weizhouapache
commented
Feb 11, 2020
@rhtyd @DaanHoogland and smoke/test_volumes.py on kvm and smoke/test_vm_life_cycle.py I have create a pr for travis test: #3880 |
yadvr
commented
Feb 12, 2020
Yes smoketests indeed pass on kvm but Travis runs tests against simulator. I'll review the PR. Thanks. |
* server: fix resource count of primary storage if some volumes are Expunged but not removed Steps to reproduce the issue (1) create a vm and stop it. check resource count of primary storage (2) download volume. resource count of primary storage is not changed. (3) expunge the vm, the volume will be Expunged state as there is a volume snapshot on secondary storage. The resource count of primary storage decreased. (4) update resource count of the account (or domain), the resource count of primary storage is reset to the value in step (2). * New feature: Add support to destroy/recover volumes * Add integration test for volume destroy/recover * marvin: check resource count of more types * messages translate to JP * Update messages for CN * translate message for NL * fix two issues per Daan's comments Co-authored-by: Andrija Panic <45762285+andrijapanicsb@users.noreply.github.com>
Description
cloudstack provides options to destroy and recover a vm. For volumes, we do not have similar operations. When we delete a volume, it will be removed from primary storage permanently.
With this change,
(1) we have option to destroy a volume (expunge=false) or delete a volume permanently (expunge=true)
(2) we are be able to recover a Destroy volume to Ready state.
(3) Destroy volume will be removed in storage clean up.
(4) when reinstall a vm, the old root volume will be Destroy state. It can be recovered to Ready state and attached to other vm so we can restore some data.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
destroy vm (expunge=false)
recover a Destroy vm
delete vm (same as destroy vm with expunge=True)
More test cases can be found in the integration tests.