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

専用サーバPHY対応 #873

Open
yamamoto-febc opened this issue Nov 18, 2021 · 0 comments
Open

専用サーバPHY対応 #873

yamamoto-febc opened this issue Nov 18, 2021 · 0 comments

Comments

@yamamoto-febc
Copy link
Member

sacloud/phy-goを用いて専用サーバPHYに対応する。

利用イメージ:

# サーバ一覧を表示
$ usacloud phy server ls

# 特定タグを持つサーバを一括起動
$ usacloud phy server boot <ID or Tag>

# 専用グローバルネットワークを一覧表示
$ usacloud phy global-network ls

# ローカルネットワーク一覧
$ usacloud phy private-network ls 

大まかな実装方針

Usacloudコマンドの第1引数をサービス種別を表すものに変更する。

# IaaS関連
$ usacloud iaas ...

# WebAccel
$ usacloud web-accel ...

# 専用サーバ
$ usacloud phy ...

移行措置として、

  • 第1引数を省略した場合は全サービスの中から該当する名前を検索
  • 複数見つかった場合は従来のIaaS向けのコマンドとみなす

基本的には従来のコマンドはそのまま使えるようにしたままでPHY対応をしていく。

検討事項

グローバルフラグの扱いやゾーンの扱い、セレクタ(ID or Name or Tags)の扱いをどうすべきかを検討

今回は実装しない範囲

本来はphy-goにもlibsacloudと揃えたserviceパッケージインターフェースを設けUsacloudはそのserviceパッケージの窓口となるべきだが、
phy-go側でまだserviceパッケージに対応していないこと & libsacloud側からもserviceを切り出す動きがあることなど、まだ開発が続くことから今回のUsacloud対応の中ではPHYの分についてはserviceパッケージにこだわらずに実装する。


検討事項を詰めた上でdesign/配下にドキュメントとしてまとめてから作業する。

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

No branches or pull requests

1 participant