Created
October 13, 2021 21:05
-
-
Save edwarnicke/f18c2917a6afbb2e80facd03d6835787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestRunFeatureSuite/TestWebhook | |
time=2021-10-13T15:34:56-05:00 level=info msg=WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') | |
kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:56-05:00 level=info msg=pod/admission-webhook-k8s-7688b745d-tvbcg condition met TestRunFeatureSuite/TestWebhook=stdout | |
time=2021-10-13T15:34:56-05:00 level=info msg=NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/c49ab6a85c269e440be9f18e5b2facedb47ff10e/examples/features/namespace.yaml)[0]) | |
NAMESPACE=${NAMESPACE:10} TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:57-05:00 level=info msg=NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')) TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:57-05:00 level=info msg=cat > postgres-cl.yaml <<EOF | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: postgres-cl | |
annotations: | |
networkservicemesh.io: kernel://my-postgres-service/nsm-1 | |
labels: | |
app: postgres-cl | |
"spiffe.io/spiffe-id": "true" | |
spec: | |
containers: | |
- name: postgres-cl | |
image: postgres | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: POSTGRES_HOST_AUTH_METHOD | |
value: trust | |
nodeSelector: | |
kubernetes.io/hostname: ${NODES[0]} | |
EOF TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:57-05:00 level=info msg=cat > patch-nse.yaml <<EOF | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nse-kernel | |
spec: | |
template: | |
spec: | |
containers: | |
- name: postgres | |
image: postgres | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 5432 | |
env: | |
- name: POSTGRES_DB | |
value: test | |
- name: POSTGRES_USER | |
value: admin | |
- name: POSTGRES_PASSWORD | |
value: admin | |
- name: nse | |
env: | |
- name: NSM_SERVICE_NAMES | |
value: my-postgres-service | |
- name: NSM_CIDR_PREFIX | |
value: 172.16.1.100/31 | |
nodeSelector: | |
kubernetes.io/hostname: ${NODES[1]} | |
EOF TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:57-05:00 level=info msg=cat > kustomization.yaml <<EOF | |
--- | |
apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
namespace: ${NAMESPACE} | |
bases: | |
- https://github.com/networkservicemesh/deployments-k8s/apps/nse-kernel?ref=c49ab6a85c269e440be9f18e5b2facedb47ff10e | |
resources: | |
- postgres-cl.yaml | |
patchesStrategicMerge: | |
- patch-nse.yaml | |
EOF TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:34:57-05:00 level=info msg=kubectl apply -k . TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:35:01-05:00 level=info msg=deployment.apps/nse-kernel created | |
pod/postgres-cl created TestRunFeatureSuite/TestWebhook=stdout | |
time=2021-10-13T15:35:01-05:00 level=info msg=kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ${NAMESPACE} TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:35:07-05:00 level=info msg=pod/nse-kernel-798945ff49-764qx condition met TestRunFeatureSuite/TestWebhook=stdout | |
time=2021-10-13T15:35:07-05:00 level=info msg=kubectl wait --for=condition=ready --timeout=1m pod postgres-cl -n ${NAMESPACE} TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:36:07-05:00 level=info msg=error: timed out waiting for the condition on pods/postgres-cl TestRunFeatureSuite/TestWebhook=stderr | |
time=2021-10-13T15:36:07-05:00 level=info msg=1 TestRunFeatureSuite/TestWebhook=exitCode | |
time=2021-10-13T15:36:07-05:00 level=error msg=command didn't succeed until timeout cmd=kubectl wait --for=condition=ready --timeout=1m pod postgres-cl -n ${NAMESPACE} | |
suite.go:122: | |
Error Trace: suite.go:122 | |
suite.gen.go:231 | |
Error: Not equal: | |
expected: 0 | |
actual : 1 | |
Test: TestRunFeatureSuite/TestWebhook | |
time="2021-10-13T15:36:08-05:00" level=error msg="postgres-cl: An error while retrieving logs: the server rejected our request for an unknown reason (get pods postgres-cl)" | |
time="2021-10-13T15:36:08-05:00" level=error msg="admission-webhook-k8s-7688b745d-tvbcg: An error while retrieving logs: the server rejected our request for an unknown reason (get pods admission-webhook-k8s-7688b745d-tvbcg)" | |
time="2021-10-13T15:36:10-05:00" level=error msg="nse-kernel-798945ff49-764qx: An error while retrieving logs: the server rejected our request for an unknown reason (get pods nse-kernel-798945ff49-764qx)" | |
time="2021-10-13T15:36:11-05:00" level=error msg="registry-k8s-69884b5478-6wtcj: An error while retrieving logs: the server rejected our request for an unknown reason (get pods registry-k8s-69884b5478-6wtcj)" | |
time="2021-10-13T15:36:12-05:00" level=error msg="nsmgr-dffmm: An error while retrieving logs: context deadline exceeded" | |
time="2021-10-13T15:36:12-05:00" level=error msg="nsmgr-95dk7: An error while retrieving logs: context deadline exceeded" | |
time=2021-10-13T15:36:12-05:00 level=info msg=kubectl delete ns ${NAMESPACE} TestRunFeatureSuite/TestWebhook=stdin | |
time=2021-10-13T15:36:33-05:00 level=info msg=namespace "ns-6cwjh" deleted TestRunFeatureSuite/TestWebhook=stdout | |
time="2021-10-13T15:36:35-05:00" level=error msg="admission-webhook-k8s-7688b745d-tvbcg: An error while retrieving logs: the server rejected our request for an unknown reason (get pods admission-webhook-k8s-7688b745d-tvbcg)" | |
time="2021-10-13T15:36:38-05:00" level=error msg="nsmgr-95dk7: An error while retrieving logs: context deadline exceeded" | |
time="2021-10-13T15:36:38-05:00" level=error msg="registry-k8s-69884b5478-6wtcj: An error while retrieving logs: context deadline exceeded" | |
time="2021-10-13T15:36:38-05:00" level=error msg="forwarder-vpp-njxgd: An error while retrieving logs: context deadline exceeded" | |
time="2021-10-13T15:36:38-05:00" level=error msg="forwarder-vpp-5wmgv: An error while retrieving logs: context deadline exceeded" | |
time="2021-10-13T15:36:38-05:00" level=error msg="nsmgr-dffmm: An error while retrieving logs: context deadline exceeded" | |
time=2021-10-13T15:36:38-05:00 level=info msg=kubectl delete mutatingwebhookconfiguration --all | |
kubectl delete ns nsm-system TestRunFeatureSuite=stdin | |
time=2021-10-13T15:37:53-05:00 level=info msg=mutatingwebhookconfiguration.admissionregistration.k8s.io "admission-webhook-k8s-7688b745d-tvbcg" deleted | |
namespace "nsm-system" deleted TestRunFeatureSuite=stdout | |
time=2021-10-13T15:37:53-05:00 level=info msg=kubectl delete crd spiffeids.spiffeid.spiffe.io | |
kubectl delete ns spire TestRunFeatureSuite=stdin | |
time=2021-10-13T15:38:52-05:00 level=info msg=customresourcedefinition.apiextensions.k8s.io "spiffeids.spiffeid.spiffe.io" deleted | |
namespace "spire" deleted TestRunFeatureSuite=stdout | |
time=2021-10-13T15:38:52-05:00 level=info msg=kubectl delete ns prefetch TestRunFeatureSuite=stdin | |
time=2021-10-13T15:39:09-05:00 level=info msg=namespace "prefetch" deleted TestRunFeatureSuite=stdout | |
--- FAIL: TestRunFeatureSuite/TestWebhook (97.50s) | |
Expected :0 | |
Actual :1 | |
<Click to see difference> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment