Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
44ae7aa4
Commit
44ae7aa4
authored
Sep 29, 2022
by
Brad Davidson
Committed by
Brad Davidson
Oct 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump info on coredns when deployment rollout fails
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
a75bbf5f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
2 deletions
+71
-2
Vagrantfile
tests/install/centos-7/Vagrantfile
+10
-0
Vagrantfile
tests/install/fedora-coreos/Vagrantfile
+10
-0
Vagrantfile
tests/install/opensuse-leap/Vagrantfile
+10
-0
Vagrantfile
tests/install/opensuse-microos/Vagrantfile
+10
-0
Vagrantfile
tests/install/rocky-8/Vagrantfile
+10
-0
Vagrantfile
tests/install/ubuntu-focal/Vagrantfile
+11
-2
Vagrantfile
tests/snapshotter/btrfs/opensuse-leap/Vagrantfile
+10
-0
No files found.
tests/install/centos-7/Vagrantfile
View file @
44ae7aa4
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
...
tests/install/fedora-coreos/Vagrantfile
View file @
44ae7aa4
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
...
tests/install/opensuse-leap/Vagrantfile
View file @
44ae7aa4
...
@@ -44,6 +44,16 @@ Vagrant.configure("2") do |config|
...
@@ -44,6 +44,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns); do sleep 5; done'
timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns); do sleep 5; done'
SHELL
SHELL
end
end
...
...
tests/install/opensuse-microos/Vagrantfile
View file @
44ae7aa4
...
@@ -45,6 +45,16 @@ Vagrant.configure("2") do |config|
...
@@ -45,6 +45,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
...
tests/install/rocky-8/Vagrantfile
View file @
44ae7aa4
...
@@ -43,6 +43,16 @@ Vagrant.configure("2") do |config|
...
@@ -43,6 +43,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
...
tests/install/ubuntu-focal/Vagrantfile
View file @
44ae7aa4
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
...
@@ -42,6 +42,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
@@ -97,4 +107,4 @@ Vagrant.configure("2") do |config|
...
@@ -97,4 +107,4 @@ Vagrant.configure("2") do |config|
v
.
gui
=
false
v
.
gui
=
false
v
.
check_guest_additions
=
false
v
.
check_guest_additions
=
false
end
end
end
end
\ No newline at end of file
tests/snapshotter/btrfs/opensuse-leap/Vagrantfile
View file @
44ae7aa4
...
@@ -73,6 +73,16 @@ Vagrant.configure("2") do |config|
...
@@ -73,6 +73,16 @@ Vagrant.configure("2") do |config|
sh
.
inline
=
<<~
SHELL
sh
.
inline
=
<<~
SHELL
#!/usr/bin/env bash
#!/usr/bin/env bash
set -eu -o pipefail
set -eu -o pipefail
function describe-coredns {
RC=$?
if [[ $RC -ne 0 ]]; then
kubectl describe node
kubectl --namespace kube-system describe pod -l k8s-app=kube-dns
kubectl --namespace kube-system logs -l k8s-app=kube-dns
fi
exit $RC
}
trap describe-coredns EXIT
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
time timeout 300 bash -c 'while ! (kubectl --namespace kube-system rollout status --timeout 10s deploy/coredns 2>/dev/null); do sleep 5; done'
SHELL
SHELL
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment