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

Implement virtualmachine's hard-reboot (hard-reset) operation #125

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kyontan
Copy link
Member

@kyontan kyontan commented Feb 19, 2019

What / 変更点

  • agent と api の RebootVirtualMachine を実装した
  • func (q Qemu) HardReset() error については q.m. SystemReset() でリセット後に起動してくるため、 Boot() を呼ばないよう修正

Why / 変更した理由

未実装だったため

How (Optional) / 概要

  • hard reboot (hard reset) についてはそのまま実装した
  • soft reboot の方法が分からなかったため実装せず Unimplemented のままとした

How affect / 影響範囲

}

return q.Boot()
return q.m.SystemReset()
Copy link
Member

Choose a reason for hiding this comment

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

起動 -> 起動は Systemreser() でいいとして、未起動 -> 起動 もrebootとしては正常に動作してもいいのではと思ったときに書いたものだった

どっちがいいんだろう

ライブラリを使う側がそういうのは制御するべきなような気もする

Copy link
Member Author

Choose a reason for hiding this comment

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

どちらでも良い気がしますが、この操作をしたあとに電源が入っていることをユーザは期待しそうなので起動にしたほうがよいですかね

Copy link
Member Author

Choose a reason for hiding this comment

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

直した

}
} else {
// TODO: soft-reboot のやり方を調べる
return nil, grpcutil.WrapGrpcErrorf(codes.Unimplemented, "")
Copy link
Member

Choose a reason for hiding this comment

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

とりあえず Unimplemented でいいと思います

@h-otter
Copy link
Member

h-otter commented Feb 21, 2019

手が空いたときに見ます 🙇

@h-otter h-otter added this to In progress in Triage Feb 22, 2019
@h-otter
Copy link
Member

h-otter commented Mar 7, 2019

すまん、ついでにcliにサブコマンドを生やしてくれませんか

テストがめんどくさいし、結局必要があると思うので

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Triage
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants