Skip to content

Commit

Permalink
Fix archive step
Browse files Browse the repository at this point in the history
nova-cloud-controller is in the control plane group, not data plane.
The wrong group was being passed,
so archive could not found the nova-cloud-controller units.

Fixes: #547
  • Loading branch information
samuelallan72 committed Sep 30, 2024
1 parent b3e40cc commit 3a2ef6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cou/steps/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def _get_archive_data_steps(analysis_result: Analysis, args: CLIargs) -> list[Pr
description="Archive old database data on nova-cloud-controller",
coro=archive(
analysis_result.model,
analysis_result.apps_data_plane,
analysis_result.apps_control_plane,
batch_size=args.archive_batch_size,
),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/steps/test_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def test_get_archive_data_steps(cli_args, model):
PreUpgradeStep(
description="Archive old database data on nova-cloud-controller",
coro=archive(
mock_analysis_result.model, mock_analysis_result.apps_data_plane, batch_size=2000
mock_analysis_result.model, mock_analysis_result.apps_control_plane, batch_size=2000
),
)
]
Expand Down

0 comments on commit 3a2ef6f

Please sign in to comment.