Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Openstack testing cleanup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
linuxsupport
Testing
Openstack testing cleanup
Merge requests
!3
Cleanup for all cases
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cleanup for all cases
all_types_cleanup
into
master
Overview
5
Commits
5
Pipelines
4
Changes
4
All threads resolved!
Show all comments
Merged
Daniel Juarez Gonzalez
requested to merge
all_types_cleanup
into
master
4 years ago
Overview
5
Commits
5
Pipelines
4
Changes
4
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
master
version 3
5a39889b
4 years ago
version 2
67079acc
4 years ago
version 1
c059b495
4 years ago
master (base)
and
latest version
latest version
3e01ff4a
5 commits,
4 years ago
version 3
5a39889b
4 commits,
4 years ago
version 2
67079acc
3 commits,
4 years ago
version 1
c059b495
2 commits,
4 years ago
4 files
+
153
−
59
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci.yml
+
7
−
4
Options
@@ -37,9 +37,12 @@ testing_cleanup:
only
:
-
schedules
script
:
# Required to use ai-tools and delete puppet managed machines
-
echo "${IMAGECI_PWD}" | kinit ${IMAGECI_USER}@CERN.CH
# Required to use openstack client and delete non-puppet machines
-
export OS_USERNAME=${IMAGECI_USER}
-
export OS_PASSWORD=${IMAGECI_PWD}
#
OS_TENANT_ID corresponds to "IT Linux Support - CI VMs"
tenant
.
# P
ython
clients cannot escape spaces in tenant's name
-
export OS_TENANT_ID=8e35e961-f888-4622-bf7d-5fe9eb8cf563
-
python
/cleanup.py
#
Run against the Virtual machines
tenant
-
p
ython
3 ./cleanup.py --tenant_name "IT Linux Support - CI VMs" --metadata_cleanup "centos_test_cleanup" --metadata_managed "puppet_managed"
# Run against the Physical machines tenant
-
python
3 .
/cleanup.py
--tenant_name "IT Linux Support - CI Physical" --metadata_cleanup "centos_test_cleanup" --metadata_managed "puppet_managed"
Loading