Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
ed2b4b80
Unverified
Commit
ed2b4b80
authored
4 years ago
by
Etienne Champetier
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix reset when using containerd (#7308)
Signed-off-by:
Etienne Champetier
<
e.champetier@ateme.com
>
parent
8375aa72
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/reset/tasks/main.yml
+15
-10
15 additions, 10 deletions
roles/reset/tasks/main.yml
with
15 additions
and
10 deletions
roles/reset/tasks/main.yml
+
15
−
10
View file @
ed2b4b80
...
@@ -132,6 +132,7 @@
...
@@ -132,6 +132,7 @@
-
container_manager == "containerd"
-
container_manager == "containerd"
ignore_errors
:
true
ignore_errors
:
true
-
block
:
-
name
:
reset | force remove all cri pods
-
name
:
reset | force remove all cri pods
command
:
"
{{
bin_dir
}}/crictl
rmp
-a
-f"
command
:
"
{{
bin_dir
}}/crictl
rmp
-a
-f"
register
:
remove_all_cri_containers
register
:
remove_all_cri_containers
...
@@ -143,6 +144,10 @@
...
@@ -143,6 +144,10 @@
-
crictl.stat.exists
-
crictl.stat.exists
-
container_manager == "containerd"
-
container_manager == "containerd"
rescue
:
-
name
:
reset | force remove all cri pods (rescue)
shell
:
"
ip
netns
list
|
cut
-d'
'
-f
1
|
xargs
-n1
ip
netns
delete
&&
{{
bin_dir
}}/crictl
rmp
-a
-f"
-
name
:
reset | stop etcd services
-
name
:
reset | stop etcd services
service
:
service
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
...
...
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