1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PowerVSにてPER対応ワークスペースへの移行を試してみた

Posted at

背景

今まで無償で使用できたCloud Connectionですが、使用期限は無期限になったものの、7月以降のDirect Link接続の利用は有償になるという発表がありました。

料金を回避するには、2025年7月1日までにPower Edge Router(PER)対応ワークスペース移行する必要があるため、現在出ている、以下のガイドに沿って、CLIでCloud Connectionを利用しているワークスペースをPER対応ワークスペースに移行してみました。

やってみた

ドキュメントの手順に基づいて実施してみました。

①以下の接続を外す:
・ワークスペースのデータセンターに接続されているお客様のアカウントの仮想プライベートネットワーク(VPN)。
・サポートチケットを開いて手動でVLANを設定。
・ワークスペース内の重複するサブネットCIDR。

VPN接続がないことを確認
image.png

手動で設定したVLANもワークスペース内で重複するCIDRもなし
image.png

②ibmcloud pi workspace target CLIコマンドを使用して、移行するワークスペースの IBM Cloud リソース名(CRN)の値を設定します.

CRNを確認

> ibmcloud pi ws ls
ユーザーXXXXXXのアカウントYYYYYYYYのワークスペースをリストしています...
ID                                     名前                CRN
ef505604-0e8c-4287-815b-45b9687092fd   xxxxxxxxxxxx         crn:v1:bluemix:public:power-iaas:us-south:a/528aa1cb0f3a4109ac0de69144428266:ef505604-0e8c-4287-815b-45b9687092fd::

③ibmcloud pi workspace action コマンドで per-migrate-start の値を使用して移行を開始します。

移行コマンドの実行。コマンドの記法的にワークスペースのIDを指定しないとうまくいかなかったため、前述のCRNの確認・設定は不要かもしれません

> ibmcloud pi workspace action 221d7059-88d2-4e52-8713-635368b0c9ba --operation per-migrate-start
ユーザーXXXXXXのアカウントYYYYYYYYの下でワークスペース 221d7059-88d2-4e52-8713-635368b0c9ba に対してアクション per-migrate-start を実行しています ...
OK
ワークスペース 221d7059-88d2-4e52-8713-635368b0c9ba に対するアクション migrate-start が完了しました。

ステータスの変遷をみてみます。

移行前

> ibmcloud pi workspace get 221d7059-88d2-4e52-8713-635368b0c9ba --json
{
    "capabilities": {
        "cloud-connections": true,
        "network-security-groups": false,
        "power-edge-router": false,
        "power-vpn-connections": true,
        "transit-gateway-connection": false
    },
    "details": {
        "creationDate": "2022-10-25T07:53:46.044Z",
        "crn": "crn:v1:bluemix:public:power-iaas:dal12:a/528aa1cb0f3a4109ac0de69144428266:221d7059-88d2-4e52-8713-635368b0c9ba::"
    },
    "id": "221d7059-88d2-4e52-8713-635368b0c9ba",
    "location": {
        "region": "dal12",
        "type": "data-center",
        "url": "https://us-south.power-iaas.cloud.ibm.com"
    },
    "name": "pvs-ise-dal12",
    "status": "active",
    "type": "off-premises"
}

移行後

> ibmcloud pi workspace get 221d7059-88d2-4e52-8713-635368b0c9ba --json
{
    "capabilities": {
        "cloud-connections": true,
        "network-security-groups": false,
        "power-edge-router": false,
        "power-vpn-connections": true,
        "transit-gateway-connection": false
    },
    "details": {
        "creationDate": "2022-10-25T07:53:46.044Z",
        "crn": "crn:v1:bluemix:public:power-iaas:dal12:a/528aa1cb0f3a4109ac0de69144428266:221d7059-88d2-4e52-8713-635368b0c9ba::",
        "powerEdgeRouter": {
            "migrationStatus": "migrating",
            "state": "user-validation",
            "type": "automated"
        }
    },
    "id": "221d7059-88d2-4e52-8713-635368b0c9ba",
    "location": {
        "region": "dal12",
        "type": "data-center",
        "url": "https://us-south.power-iaas.cloud.ibm.com"
    },
    "name": "pvs-ise-dal12",
    "status": "active",
    "type": "off-premises"
}

移行後にはdetailspowerEdgeRouterの情報が追加されています。

④ワークスペースを Transit Gatewayにアタッチして、他のワークスペースとの接続性を検証する。

対象のワークスペースがTransit Gatewayにアタッチできることを確認
2a41faee-29fa-4a14-8db7-d695c30fd274.png

⑤Transit Gateway からクラウド接続を削除する。

GUIから実行
9cb206f7-3702-4d0a-ac8a-c43619452cf8.png

cc24a80e-ce33-4184-9cd2-3f26e8ae342c.png

⑥ibmcloud pi workspace action コマンドで per-migrate-validate の値を使用して、ネットワーク データベースからクラウド接続を削除します。

いわれるがままにやってみると失敗しました。

> ibmcloud pi workspace action 221d7059-88d2-4e52-8713-635368b0c9ba --operation per-migrate-validate
ユーザーXXXXXXのアカウントYYYYYYYYの下でワークスペース 221d7059-88d2-4e52-8713-635368b0c9ba に対してアクション per-migrate-validate を実行しています ...
失敗
Error: Post "https://dal.power-iaas.cloud.ibm.com/v1/workspaces/221d7059-88d2-4e52-8713-635368b0c9ba/power-edge-router/action": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

が、GUIで確認できるところだとDirect Linkから移行対象のものは削除されていて、問題なさそうです。
c9046bbb-5c85-4c4d-b56d-d8a567681322.png

CLI応答では、 migrationStatus プロパティが含まれず、 state プロパティが Active 状態に設定されると、移行処理は完了し、ワークスペースとネットワークの操作を再開できます。

ステータスを確認すると移行処理は完了ステータスとなっています。

> ibmcloud pi workspace get 221d7059-88d2-4e52-8713-635368b0c9ba --json

{
    "capabilities": {
        "cloud-connections": true,
        "network-security-groups": false,
        "power-edge-router": false,
        "power-vpn-connections": true,
        "transit-gateway-connection": true
    },
    "details": {
        "creationDate": "2022-10-25T07:53:46.044Z",
        "crn": "crn:v1:bluemix:public:power-iaas:dal12:a/528aa1cb0f3a4109ac0de69144428266:221d7059-88d2-4e52-8713-635368b0c9ba::",
        "powerEdgeRouter": {
            "state": "active",
            "type": "automated"
        }
    },
    "id": "221d7059-88d2-4e52-8713-635368b0c9ba",
    "location": {
        "region": "dal12",
        "type": "data-center",
        "url": "https://us-south.power-iaas.cloud.ibm.com"
    },
    "name": "pvs-ise-dal12",
    "status": "active",
    "type": "off-premises"
}

ここには記載していませんが、最後に通信が問題なくできることを確認して、検証終了です。

1
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?