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

Add new constraint for retiring-to-retired transition #143

Merged
merged 6 commits into from
Mar 4, 2019

Conversation

binoue
Copy link
Contributor

@binoue binoue commented Mar 1, 2019

No description provided.

@binoue binoue marked this pull request as ready for review March 1, 2019 10:37
@binoue binoue requested a review from ymmt2005 March 1, 2019 10:37
docs/api.md Outdated
@@ -299,6 +300,10 @@ The new state is given by contents of request body and should be one of:

HTTP status code: 400 Bad Request

- Disk encryption keys have not been deleted.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ちょっと伝わりにくいです。例えば

Suggested change
- Disk encryption keys have not been deleted.
- Transitioning a retiring server that still have disk encryption keys to be retired.

* Disk encryption keys of a machine can be deleted if the machine is in **Retiring** state.
* A machine transitions to **Retired** when its disk encryption keys are deleted.
* A **Retiring** machine can transition to **Retired** only when its disk encryption keys have been deleted.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* A **Retiring** machine can transition to **Retired** only when its disk encryption keys have been deleted.
* A **Retiring** machine can transition to **Retired** only when it has no disk encryption keys.

docs/sabactl.md Outdated
Deletes all keys of a machine, and make its status `retired`.
The command fails when the target machine's status is not `retiring`.
Deletes all keys of a machine.
The command fails when the target machine's status is not `retiring`, or when the target machine's disk encryption keys have not been deleted.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

追加部分の意味がわかりません。

models/etcd/storage.go Show resolved Hide resolved
web/crypts_test.go Show resolved Hide resolved
Copy link
Member

@ymmt2005 ymmt2005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ymmt2005 ymmt2005 merged commit 528c905 into master Mar 4, 2019
@ymmt2005 ymmt2005 deleted the add-new-transition-constraint branch March 4, 2019 05:51
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

4 participants