I was trying to make docker-build, but since test is failing docker build is failing too.
Since tests are not working, I am not able to build docker container and test the operator.
make e2e-test is failing
make e2e-test
Your active configuration is: [rahul]
kubectl get namespace airflowop-system || kubectl create namespace airflowop-system
Error from server (NotFound): namespaces "airflowop-system" not found
namespace/airflowop-system created
go test -v -timeout 20m test/e2e/base/base_test.go --namespace airflowop-system
=== RUN Test
Running Suite: AirflowBase Suite
================================
Random Seed: 1583520410
Will run 2 of 2 specs
STEP: creating a new AirflowBase:
• Failure [0.289 seconds]
AirflowBase controller tests
/Users/rahul/airflow-on-k8s-operator/test/e2e/base/base_test.go:70
creating a AirflowBase with mysql [It]
/Users/rahul/airflow-on-k8s-operator/test/e2e/base/base_test.go:76
failed to create CR : AirflowBase.airflow.apache.org "" is invalid: metadata.name: Required value: name or generateName is required
Unexpected error:
<*errors.StatusError | 0xc00023e1e0>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {
SelfLink: "",
ResourceVersion: "",
Continue: "",
RemainingItemCount: nil,
},
Status: "Failure",
Message: "AirflowBase.airflow.apache.org \"\" is invalid: metadata.name: Required value: name or generateName is required",
Reason: "Invalid",
Details: {
Name: "",
Group: "airflow.apache.org",
Kind: "AirflowBase",
UID: "",
Causes: [
{
Type: "FieldValueRequired",
Message: "Required value: name or generateName is required",
Field: "metadata.name",
},
],
RetryAfterSeconds: 0,
},
Code: 422,
},
}
AirflowBase.airflow.apache.org "" is invalid: metadata.name: Required value: name or generateName is required
occurred
/Users/rahul/airflow-on-k8s-operator/vendor/sigs.k8s.io/controller-reconciler/pkg/test/framework.go:178
------------------------------
STEP: creating a new AirflowBase:
• Failure [0.094 seconds]
AirflowBase controller tests
/Users/rahul/airflow-on-k8s-operator/test/e2e/base/base_test.go:70
creating a AirflowBase with postgres [It]
/Users/rahul/airflow-on-k8s-operator/test/e2e/base/base_test.go:88
failed to create CR : AirflowBase.airflow.apache.org "" is invalid: metadata.name: Required value: name or generateName is required
Unexpected error:
<*errors.StatusError | 0xc00023ebe0>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {
SelfLink: "",
ResourceVersion: "",
Continue: "",
RemainingItemCount: nil,
},
Status: "Failure",
Message: "AirflowBase.airflow.apache.org \"\" is invalid: metadata.name: Required value: name or generateName is required",
Reason: "Invalid",
Details: {
Name: "",
Group: "airflow.apache.org",
Kind: "AirflowBase",
UID: "",
Causes: [
{
Type: "FieldValueRequired",
Message: "Required value: name or generateName is required",
Field: "metadata.name",
},
],
RetryAfterSeconds: 0,
},
Code: 422,
},
}
AirflowBase.airflow.apache.org "" is invalid: metadata.name: Required value: name or generateName is required
occurred
/Users/rahul/airflow-on-k8s-operator/vendor/sigs.k8s.io/controller-reconciler/pkg/test/framework.go:178
------------------------------
Failure [0.000 seconds]
[AfterSuite] AfterSuite
/Users/rahul/airflow-on-k8s-operator/test/e2e/base/base_test.go:56
failed to delete CR : resource name may not be empty
Unexpected error:
<*errors.errorString | 0xc000261260>: {
s: "resource name may not be empty",
}
resource name may not be empty
occurred
/Users/rahul/airflow-on-k8s-operator/vendor/sigs.k8s.io/controller-reconciler/pkg/test/framework.go:132
------------------------------
Summarizing 2 Failures:
[Fail] AirflowBase controller tests [It] creating a AirflowBase with mysql
/Users/rahul/airflow-on-k8s-operator/vendor/sigs.k8s.io/controller-reconciler/pkg/test/framework.go:178
[Fail] AirflowBase controller tests [It] creating a AirflowBase with postgres
/Users/rahul/airflow-on-k8s-operator/vendor/sigs.k8s.io/controller-reconciler/pkg/test/framework.go:178
Ran 2 of 2 Specs in 4.759 seconds
FAIL! -- 0 Passed | 2 Failed | 0 Pending | 0 Skipped
--- FAIL: Test (4.76s)
FAIL
FAIL command-line-arguments 5.610s
FAIL
make: *** [e2e-test] Error 1
Ignoring test, I tried to build the contianer image then got following error:
Sending build context to Docker daemon 82.96MB
Step 1/14 : FROM golang:1.13 as builder
1.13: Pulling from library/golang
50e431f79093: Pull complete
dd8c6d374ea5: Pull complete
c85513200d84: Pull complete
55769680e827: Pull complete
15357f5e50c4: Pull complete
e2d9b328fba5: Pull complete
f8e0159fc852: Pull complete
Digest: sha256:43f859b58af8c84c8aef288809204cfbd7cb88dbd4b0cf473dd4fb86693403ad
Status: Downloaded newer image for golang:1.13
---> 3a7408f53f79
Step 2/14 : WORKDIR /workspace
---> Running in 0cef2decd14f
Removing intermediate container 0cef2decd14f
---> 0db260c9e127
Step 3/14 : COPY go.mod go.mod
---> 326f43338f87
Step 4/14 : COPY go.sum go.sum
---> b5ddeaf773e0
Step 5/14 : RUN go mod download
---> Running in 6b1a0d9e30b0
go: sigs.k8s.io/controller-reconciler@v0.0.0-00010101000000-000000000000: parsing vendor/sigs.k8s.io/controller-reconciler/go.mod: open /workspace/vendor/sigs.k8s.io/controller-reconciler/go.mod: no such file or directory
The command '/bin/sh -c go mod download' returned a non-zero code: 1
make: *** [docker-build] Error 1
I was trying to
make docker-build
, but since test is failing docker build is failing too.Since tests are not working, I am not able to build docker container and test the operator.
make e2e-test is failing
Ignoring test, I tried to build the contianer image then got following error: