From 858f1e7f0b61be0dd390bd690bcb13e368c335c4 Mon Sep 17 00:00:00 2001 From: Marek Aufart Date: Mon, 24 Jul 2023 11:16:19 +0200 Subject: [PATCH 1/4] Update install script with debug output Signed-off-by: Marek Aufart --- hack/install-tackle.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/install-tackle.sh b/hack/install-tackle.sh index 7cbd91a..8687cae 100755 --- a/hack/install-tackle.sh +++ b/hack/install-tackle.sh @@ -100,7 +100,11 @@ kubectl wait \ --namespace konveyor-tackle \ --for=condition=Successful \ --timeout=600s \ - tackles.tackle.konveyor.io/tackle + tackles.tackle.konveyor.io/tackle \ +|| kubectl get \ + --namespace konveyor-tackle \ + -o yaml + tackles.tackle.konveyor.io/tackle # Print debug output when waiting failed # Now wait for all the tackle deployments kubectl wait \ From 4991761cf7996e9f44c5f45e07b6569b921f7973 Mon Sep 17 00:00:00 2001 From: Marek Aufart Date: Tue, 25 Jul 2023 08:47:58 +0200 Subject: [PATCH 2/4] Fix get cmd Signed-off-by: Marek Aufart --- hack/install-tackle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install-tackle.sh b/hack/install-tackle.sh index 8687cae..67ca275 100755 --- a/hack/install-tackle.sh +++ b/hack/install-tackle.sh @@ -103,7 +103,7 @@ kubectl wait \ tackles.tackle.konveyor.io/tackle \ || kubectl get \ --namespace konveyor-tackle \ - -o yaml + -o yaml \ tackles.tackle.konveyor.io/tackle # Print debug output when waiting failed # Now wait for all the tackle deployments From 33d918f3933c950d880032379799823d3be98955 Mon Sep 17 00:00:00 2001 From: Marek Aufart Date: Wed, 26 Jul 2023 08:39:57 +0200 Subject: [PATCH 3/4] Add debug output for pods Signed-off-by: Marek Aufart --- hack/install-tackle.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hack/install-tackle.sh b/hack/install-tackle.sh index 67ca275..68f6eca 100755 --- a/hack/install-tackle.sh +++ b/hack/install-tackle.sh @@ -104,7 +104,7 @@ kubectl wait \ || kubectl get \ --namespace konveyor-tackle \ -o yaml \ - tackles.tackle.konveyor.io/tackle # Print debug output when waiting failed + tackles.tackle.konveyor.io/tackle # Print tackle debug when timed out # Now wait for all the tackle deployments kubectl wait \ @@ -112,4 +112,10 @@ kubectl wait \ --selector="app.kubernetes.io/part-of=tackle" \ --for=condition=Available \ --timeout=600s \ - deployments.apps + deployments.apps \ +|| kubectl get \ + --namespace konveyor-tackle \ + --selector="app.kubernetes.io/part-of=tackle" \ + --field-selector=status.phase!=Running \ + -o yaml \ + pods # Print not running tackle pods when timed out From 8073f3333ca708dfc60b95dc20d817c13a8859b0 Mon Sep 17 00:00:00 2001 From: Marek Aufart Date: Wed, 26 Jul 2023 08:51:44 +0200 Subject: [PATCH 4/4] Add subscription debug output Signed-off-by: Marek Aufart --- hack/install-tackle.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/install-tackle.sh b/hack/install-tackle.sh index 68f6eca..902c894 100755 --- a/hack/install-tackle.sh +++ b/hack/install-tackle.sh @@ -70,7 +70,8 @@ spec: sourceNamespace: konveyor-tackle EOF # If on MacOS, need to install `brew install coreutils` to get `timeout` -timeout 600s bash -c 'until kubectl get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done' +timeout 600s bash -c 'until kubectl get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done' \ +|| kubectl get subscription --namespace konveyor-tackle -o yaml konveyor-operator # Print subscription details when timed out # Create, and wait for, tackle kubectl wait \