Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
09f509eb
Verified
Commit
09f509eb
authored
5 months ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Clean up unused state keys
parent
8b153ad4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!317
Update playbook verbs for pre- and post-deployment checks in P to PE promotion
Pipeline
#90737
passed
5 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Stage: trigger_jenkins_build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/router/promote_p_to_pe.py
+4
-18
4 additions, 18 deletions
gso/workflows/router/promote_p_to_pe.py
with
4 additions
and
18 deletions
gso/workflows/router/promote_p_to_pe.py
+
4
−
18
View file @
09f509eb
...
@@ -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
"
}
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment