プロトタイプ製造

もうちょい。今日はだらだら、と思ってはいたのですが手を動かしてみることに。

とりあえず

master を巻戻して feature を育てる方向。手を入れるのは以下なのか。

  • 何故か New VM なリンクが修正されているので正しいものに直す
  • 状態を表示させてみるか
  • 状態マターでリンク表示を変えるなど

む、戻りなナニを確認してみるに Destroyed って state もあるのか。つうかこれって platform 毎で status な文字列は異なる可能性はあるはずなので、何らかの配慮が必要ですね。

ソース入手してみるか

入手。

$ git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git

なんかでかそう。止め。state は以下で確認できました。

以下とのことです。

  • Starting("VM is being started. At this state, you should find host id filled which means it's being started on that host.")
  • Running("VM is running. host id has the host that it is running on")
  • Stopping("VM is being stopped. host id has the host that it is being stopped on.")
  • Stopped("VM is stopped. host id should be null.")
  • Migrating("VM is being migrated. host id holds to from host")
  • Error("VM is in error. Goes to this state when deployVm command fails")
  • Unknown("VM state is unknown.")
  • Shutdowned("VM is shutdowned from inside")

Vms in 2 states below, are never returned to the regular user

  • Destroyed("VM is marked for destroy. Vm in Destroyed state can be recovered by the admin")
  • Expunging("VM is being expunged. No recovery is possible at this point")

CloudStack objects states より引用
とりあえず view に state を表示させてみることに。

試験

development な DB を初期化してしまったのもありますが、何らかの不手際にて signup できなくなってますorz
どうにもならないので無理矢理ユーザ作成。

user=User.new
user.email="you@email.id"
user.password="yourPassword"
user.skip_confirmation!
user.save

これ、ステージングなナニはちゃんと動くのかなぁ。色々変更してしまったかもorz

引き続き

こちこち色々盛り込んでいるのですが、控えは別途ということにて。