Skip to content

Instantly share code, notes, and snippets.

@yiqigao217
yiqigao217 / test-issue-605.sh
Created April 7, 2020 13:51
Result of the running test-issue-605.sh
----------------------------------------------------
Trying to clean up from last run (this may fail, and that's fine)
Error from server (NotFound): namespaces "parent-605" not found
Error from server (NotFound): namespaces "child-605" not found
Error from server (NotFound): namespaces "grandchild-605" not found
Error from server (NotFound): namespaces "greatgrandchild-605" not found
----------------------------------------------------
Setting up hierarchy with rolebinding that HNC doesn't have permission to copy
namespace/parent-605 created
namespace/child-605 created
@yiqigao217
yiqigao217 / log-test-issue-605.sh
Created April 7, 2020 14:02
Logs of running the test-issue-605.sh
2020-04-07T13:49:36.780810354Z {"level":"info","logger":"reconcilers.HNCConfiguration","msg":"Updating the singleton on apiserver","ts":1586267376.7803853} E
2020-04-07T13:49:36.774199382Z {"msg":"Updating the singleton on apiserver","ts":1586267376.7736707,"level":"info","logger":"reconcilers.HNCConfiguration"} E
2020-04-07T13:49:36.774168292Z {"level":"info","logger":"reconcilers.HNCConfiguration","reason":"Syncing NumPropagatedObjects and/or NumSourceObjects in the status","msg":"Enqueuing for reconciliation","ts":1586267376.7735436} E
2020-04-07T13:49:35.049922601Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"greatgrandchild-605","ts":1586267375.049818,"rid":487} E
2020-04-07T13:49:35.045675984Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"grandchild-605","ts":1586267375.0455534,"rid":486} E
2020-04-07T13:49:35.041313276Z {"level":"info","logger":"reconcilers.Hierarchy","ts":1586267375.0411427,"ns":"parent-605","rid":485,"msg":"R
E 2020-04-07T15:43:07.264283618Z {"stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.0/pkg/internal/controller/controller.go:258\ns…
E 2020-04-07T15:42:17.789518602Z {"ns":"grandchild-605","ts":1586274137.7893863,"rid":1321,"msg":"Remove finalizers since there's no HNS instance in the namespace.","level":"info","logger":"reconcilers.Hierarchy"}
E 2020-04-07T15:42:17.787121377Z {"logger":"reconcilers.RoleBinding","reason":"Removed condition","ts":1586274137.7869637,"affected":"grandchild-605","msg":"Enqueuing for reconciliation","trigger":"grandchild-605/cluster-admin-rb","level":"info"}
E 2020-04-07T15:42:17.711248141Z {"ns":"greatgrandchild-605","ts":1586274137.711094,"rid":1320,"msg":"Remove finalizers since there's no HNS instance in the namespace.","level":"info","logger":"reconcilers.Hierarchy"}
E 2020
----------------------------------------------------
Trying to clean up from last run (this may fail, and that's fine)
Error from server (NotFound): namespaces "parent-605" not found
Error from server (NotFound): namespaces "child-605" not found
Error from server (NotFound): namespaces "grandchild-605" not found
Error from server (NotFound): namespaces "greatgrandchild-605" not found
----------------------------------------------------
Setting up hierarchy with rolebinding that HNC doesn't have permission to copy
namespace/parent-605 created
namespace/child-605 created
E 2020-04-07T18:09:52.730707603Z {"msg":"Updating the singleton on apiserver","ts":1586282992.7303166,"level":"info","logger":"reconcilers.HNCConfiguration"}
E 2020-04-07T18:09:52.717800462Z {"logger":"reconcilers.HNCConfiguration","msg":"Updating the singleton on apiserver","ts":1586282992.7172546,"level":"info"}
E 2020-04-07T18:09:52.717767598Z {"msg":"Enqueuing for reconciliation","ts":1586282992.7171028,"level":"info","logger":"reconcilers.HNCConfiguration","reason":"Syncing NumPropagatedObjects and/or NumSourceObjects in the status"}
E 2020-04-07T18:09:52.490180968Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"grandchild-605","ts":1586282992.4899323,"rid":1704}
E 2020-04-07T18:09:52.481321659Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"greatgrandchild-605","ts":1586282992.4811182,"rid":1703}
E 2020-04-07T18:09:52.458082182Z {"ns":"grandchild-605","ts":1586282992.4578063,"rid":1700,"msg":"Remove finalizers since there's no HNS
@yiqigao217
yiqigao217 / result-90dff44a36f18e9216204ff35a69cfddee05da08
Created April 8, 2020 16:54
The result of running hnc/hack/test-issue-605.sh before #605 is fixed.
----------------------------------------------------
Trying to clean up from last run (this may fail, and that's fine)
Error from server (NotFound): namespaces "parent-605" not found
Error from server (NotFound): namespaces "child-605" not found
Error from server (NotFound): namespaces "grandchild-605" not found
Error from server (NotFound): namespaces "greatgrandchild-605" not found
----------------------------------------------------
Setting up hierarchy with rolebinding that HNC doesn't have permission to copy
namespace/parent-605 created
namespace/child-605 created
----------------------------------------------------
Trying to clean up from last run (this may fail, and that's fine)
Error from server (NotFound): namespaces "parent-605" not found
Error from server (NotFound): namespaces "child-605" not found
Error from server (NotFound): namespaces "grandchild-605" not found
Error from server (NotFound): namespaces "greatgrandchild-605" not found
----------------------------------------------------
Setting up hierarchy with rolebinding that HNC doesn't have permission to copy
namespace/parent-605 created
namespace/child-605 created
2020-04-09T14:02:25.418544377Z {"msg":"Updating the singleton on apiserver","ts":1586440945.4180872,"level":"info","logger":"reconcilers.HNCConfiguration"} E
2020-04-09T14:02:25.411267366Z {"level":"info","logger":"reconcilers.HNCConfiguration","msg":"Updating the singleton on apiserver","ts":1586440945.410578} E
2020-04-09T14:02:25.411233896Z {"msg":"Enqueuing for reconciliation","ts":1586440945.410427,"level":"info","logger":"reconcilers.HNCConfiguration","reason":"Syncing NumPropagatedObjects and/or NumSourceObjects in the status"} E
2020-04-09T14:02:24.403436993Z {"ns":"greatgrandchild-605","ts":1586440944.4032974,"rid":92,"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy"} E
2020-04-09T14:02:24.398020434Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"child-605","ts":1586440944.3978565,"rid":91} E
2020-04-09T14:02:24.379295169Z {"msg":"Removed namespace","level":"info","logger":"reconcilers.Hierarchy","ns":"parent-605","ts":1586440944.379158,"
E 2020-04-15T17:26:42.436029535Z {"ts":1586971602.4358392,"level":"info","logger":"cert-rotation","msg":"no cert refresh needed"}
E 2020-04-15T17:26:27.437072247Z {"msg":"no cert refresh needed","ts":1586971587.436889,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:26:12.435731217Z {"msg":"no cert refresh needed","ts":1586971572.435561,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:25:57.436006290Z {"msg":"no cert refresh needed","ts":1586971557.4358137,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:25:42.437601Z {"msg":"no cert refresh needed","ts":1586971542.4374034,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:25:27.436123151Z {"msg":"no cert refresh needed","ts":1586971527.4359667,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:25:12.436330729Z {"msg":"no cert refresh needed","ts":1586971512.4361079,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:24:57.436007886Z {"logger":"cert-rotation","msg":"no cert refresh needed","ts":1586971497.43582,
E 2020-04-15T17:32:28.518610949Z {"ts":1586971948.5185285,"level":"info","logger":"cert-rotation","msg":"stopping cert rotator controller"}
E 2020-04-15T17:32:28.518474060Z {"level":"info","logger":"cert-rotation","msg":"certs refreshed, restarting server","ts":1586971948.5182822}
E 2020-04-15T17:32:27.708648802Z {"msg":"refreshing CA and server certs","ts":1586971947.708468,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:32:12.703794240Z {"msg":"no cert refresh needed","ts":1586971932.7036536,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:32:12.687280163Z {"ts":1586971932.6872275,"level":"info","logger":"cert-rotation","msg":"starting cert rotator controller"}
E 2020-04-15T17:32:06.423422480Z {"msg":"stopping cert rotator controller","ts":1586971926.4233615,"level":"info","logger":"cert-rotation"}
E 2020-04-15T17:32:06.423292888Z {"level":"info","logger":"cert-rotation","msg":"certs refreshed, restarting server","ts":1586971926.4231486}
E 2020-04-15T17:32:05.434176969Z {"level":"inf