Skip to content

✨ VNF-3903 Add support for system update rollback and change plan actions in load balancer - #56

Open
KobayashiNozomi wants to merge 2 commits into
nttcom:masterfrom
KobayashiNozomi:feature/VNF-3903_mlb_day5
Open

✨ VNF-3903 Add support for system update rollback and change plan actions in load balancer#56
KobayashiNozomi wants to merge 2 commits into
nttcom:masterfrom
KobayashiNozomi:feature/VNF-3903_mlb_day5

Conversation

@KobayashiNozomi

@KobayashiNozomi KobayashiNozomi commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This pull request supports Managed Load Balancer Day 5.

Reference

nttcom/terraform-provider-ecl#142

Related Pull Requests

Test Results

v2
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/certificates[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/certificates/testing	0.194s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/health_monitors	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/health_monitors/testing	0.279s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/listeners	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/listeners/testing	0.431s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/load_balancers	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/load_balancers/testing	0.737s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/operations	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/operations/testing	0.878s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/plans	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/plans/testing0.577s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/policies	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/policies/testing	0.948s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/routes	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/routes/testing	1.045s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/rules	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/rules/testing1.180s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/system_updates	[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/system_updates/testing	1.183s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/target_groups[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/target_groups/testing	1.216s
?   	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/tls_policies[no test files]
ok  	github.com/nttcom/eclcloud/v2/ecl/managed_load_balancer/v1/tls_policies/testing	1.058s
v3
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/certificates[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/certificates/testing	0.223s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/health_monitors	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/health_monitors/testing	0.197s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/listeners	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/listeners/testing	0.388s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/load_balancers	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/load_balancers/testing	0.321s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/operations	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/operations/testing	0.679s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/plans	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/plans/testing0.494s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/policies	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/policies/testing	0.747s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/routes	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/routes/testing	0.924s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/rules	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/rules/testing1.107s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/system_updates	[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/system_updates/testing	1.097s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/target_groups[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/target_groups/testing	1.165s
?   	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/tls_policies[no test files]
ok  	github.com/nttcom/eclcloud/v3/ecl/managed_load_balancer/v1/tls_policies/testing	1.347s
v4
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/certificates[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/certificates/testing	0.688s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/health_monitors	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/health_monitors/testing	0.252s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/listeners	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/listeners/testing	0.309s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/load_balancers	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/load_balancers/testing	0.709s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/operations	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/operations/testing	0.496s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/plans	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/plans/testing1.199s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/policies	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/policies/testing	0.835s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/routes	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/routes/testing	1.388s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/rules	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/rules/testing1.652s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/system_updates	[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/system_updates/testing	1.018s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/target_groups[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/target_groups/testing	1.761s
?   	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/tls_policies[no test files]
ok  	github.com/nttcom/eclcloud/v4/ecl/managed_load_balancer/v1/tls_policies/testing	1.739s

@yamashita-hiroto yamashita-hiroto left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

  • 以下パラメータの追加
    • ActionLB での system-update の rollback
    • ActionLB での change-plan および plan_id
    • SystemUpdate の request 時の query パラメータおよび response に is_rollback_allowed を追加
  • SystemUpdate の rollback および change-plan を実行する LoadBalancer のテストケースを追加
    • plan_id は mock のレスポンスであるだけなので、既存で使っているものと変える必要はない認識
  • v2,v3,v4 で修正内容は共通

@hico-horiuchi hico-horiuchi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

VNF-3903 のレビューです。

Day 5 の API 差分を mVNA API リファレンスの x-release: 5 と突き合わせ、次のとおり対応漏れが無いことを確認しました。

API リファレンスの x-release: 5 対応状況
LoadBalancerActionsystem-update.rollback 対応済み
LoadBalancerActionchange-plan.plan_id 対応済み
SystemUpdate.is_rollback_allowed (レスポンス) 対応済み
is_rollback_allowed (List のクエリ) 対応済み
OperationWithRequestBodychange-plan Operation.RequestBodymap[string]interface{} のため対応不要
SystemUpdateAction.rollback 同上
SystemUpdateCreate / SystemUpdateUpdateis_rollback_allowed Admin only のため対象外

v2 / v3 / v4 のすべてに反映されています。
リポジトリルートの ecl/ には managed_load_balancer が無いため、こちらは対象外です。

実装に問題は見つかりませんでした。
以下は NITS のみです。

[NITS] doc.go の追記例の桁を揃える

v2 / v3 / v4ecl/managed_load_balancer/v1/load_balancers/doc.go で、追記された例の Rollback: の位置が周囲の例と揃っていません。
doc comment 内のコードブロックなので、gofmt では整形されません。

 	rollback := true
 	systemUpdate := load_balancers.ActionOptsSystemUpdate{
 		SystemUpdateID: "31746df7-92f9-4b5e-ad05-59f6684a54eb",
-		Rollback: &rollback,
+		Rollback:       &rollback,
 	}

rollback := true
systemUpdate := load_balancers.ActionOptsSystemUpdate{
SystemUpdateID: "31746df7-92f9-4b5e-ad05-59f6684a54eb",
Rollback: &rollback,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[NITS] doc.go の追記例の桁を揃える

修正しました

@KobayashiNozomi
KobayashiNozomi force-pushed the feature/VNF-3903_mlb_day5 branch from 6cd3bc4 to 74cc9a4 Compare August 21, 2026 06:04
rollback := true
systemUpdate := load_balancers.ActionOptsSystemUpdate{
SystemUpdateID: "31746df7-92f9-4b5e-ad05-59f6684a54eb",
Rollback: &rollback,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[NITS] doc.go の追記例の桁を揃える

修正しました

rollback := true
systemUpdate := load_balancers.ActionOptsSystemUpdate{
SystemUpdateID: "31746df7-92f9-4b5e-ad05-59f6684a54eb",
Rollback: &rollback,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[NITS] doc.go の追記例の桁を揃える

修正しました

@KobayashiNozomi
KobayashiNozomi force-pushed the feature/VNF-3903_mlb_day5 branch from 74cc9a4 to d5ee945 Compare August 21, 2026 08:38

@hico-horiuchi hico-horiuchi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

d5ee945 で v2 / v3 / v4 の 3 ファイルとも桁が揃ったことを確認しました。
対応ありがとうございます。私からは以上です。

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants