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

[WIP] Implement virtualmachine's shutdown operation #124

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

Conversation

kyontan
Copy link
Member

@kyontan kyontan commented Feb 19, 2019

What / 変更点

  • agent と api の ShutdownVirtualMachine を実装した
  • func (q Qemu) HardShutdown() error の実装がおそらくおかしかったため修正した
  • TODO: シャットダウンリクエストを同期的に行う
    • QEMU がシャットダウンステータスになるまで待つ
    • タイムアウトは60秒で固定
      • タイムアウトした場合はその時点での QEMU のステータスをデータストアに書き込む

Why / 変更した理由

未実装だったため

How (Optional) / 概要

How affect / 影響範囲

特になし

シャットダウンが終了することは保証しないため、これに依存するDAGで起動等をすると失敗することは考えられる (新規実装部分であるため、既存影響はない)

@h-otter h-otter added this to To do in Triage Feb 22, 2019
@h-otter h-otter moved this from Unorganized to In progress in Triage Feb 22, 2019
@h-otter
Copy link
Member

h-otter commented Feb 24, 2019

実際シャットダウンしたか確認するべきだと思うけど、libvirtみたいにタイムアウトを待つ必要がありそうだしどうしようか…

@kyontan kyontan changed the title Implement virtualmachine's shutdown operation [WIP] Implement virtualmachine's shutdown operation Feb 24, 2019
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