Skip to content
Snippets Groups Projects
Verified Commit 09f509eb authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Clean up unused state keys

parent 8b153ad4
No related branches found
No related tags found
1 merge request!317Update playbook verbs for pre- and post-deployment checks in P to PE promotion
Pipeline #90737 passed
...@@ -61,19 +61,12 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: ...@@ -61,19 +61,12 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
@step("Run pre-deployment checks") @step("Run pre-deployment checks")
def run_pre_checks(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState: def run_pre_checks(subscription: dict[str, Any]) -> LSOState:
"""Run pre-deployment checks.""" """Run pre-deployment checks."""
extra_vars = {
"dry_run": False,
"subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - pre-deployment checks",
"verb": "pre_checks",
}
return { return {
"playbook_name": "gap_ansible/playbooks/promote_p_to_pe.yaml", "playbook_name": "gap_ansible/playbooks/promote_p_to_pe.yaml",
"inventory": {"all": {"hosts": {subscription["router"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["router"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": {"subscription": subscription, "verb": "pre_checks"},
} }
...@@ -200,19 +193,12 @@ def deploy_routing_instances_real(subscription: dict[str, Any], tt_number: str, ...@@ -200,19 +193,12 @@ def deploy_routing_instances_real(subscription: dict[str, Any], tt_number: str,
@step("Run post-deployment checks") @step("Run post-deployment checks")
def run_post_checks(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState: def run_post_checks(subscription: dict[str, Any]) -> LSOState:
"""Run post-deployment checks.""" """Run post-deployment checks."""
extra_vars = {
"dry_run": False,
"subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Run post-deployment checks",
"verb": "post_checks",
}
return { return {
"playbook_name": "gap_ansible/playbooks/promote_p_to_pe.yaml", "playbook_name": "gap_ansible/playbooks/promote_p_to_pe.yaml",
"inventory": {"all": {"hosts": {subscription["router"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["router"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": {"subscription": subscription, "verb": "post_checks"},
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment