Coder Social home page Coder Social logo

openyurtio / yurt-device-controller Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 15.0 1.17 MB

This repository contains the device-controller that leverages EdgeX Foundry to manage edge devices

License: Apache License 2.0

Makefile 2.15% Go 93.10% Shell 4.74%

yurt-device-controller's People

Contributors

beiwei30 avatar charleszheng44 avatar gnunu avatar huiwq1990 avatar lavenderqaq avatar lindayu17 avatar lwmqwer avatar peeknut avatar qclc avatar rambohe-ch avatar theonefx avatar wawlian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yurt-device-controller's Issues

[BUG] make test cannot work properly

What happened:
error occurred when executing make test

What you expected to happen:

make test works fine

How to reproduce it (as minimally and precisely as possible):

just execute make test

Anything else we need to know?:

error logs:

Run make test
go: creating new go.mod: module tmp
Downloading sigs.k[8](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:9)s.io/controller-tools/cmd/[email protected]
go: downloading sigs.k8s.io/controller-tools v0.4.1
go: downloading github.com/spf13/cobra v1.0.0
go: downloading github.com/gobuffalo/flect v0.2.0
go: downloading k8s.io/apiextensions-apiserver v0.18.2
go: downloading k8s.io/apimachinery v0.18.2
go: downloading golang.org/x/tools v0.0.0-202006161[9](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:10)5046-dc31b401abb5
go: downloading github.com/fatih/color v1.7.0
go: downloading k8s.io/api v0.18.2
go: downloading gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading k8s.io/utils v0.0.0-202003242[10](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:11)504-a9aa75ae1b89
go: downloading sigs.k8s.io/structured-merge-diff/v3 v3.0.0
go: downloading github.com/google/gofuzz v1.1.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading github.com/mattn/go-colorable v0.1.2
go: downloading github.com/mattn/go-isatty v0.0.8
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/json-iterator/go v1.1.8
go: downloading golang.org/x/mod v0.2.0
go: downloading golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7
go: downloading golang.org/x/net v0.0.0-20200226121028-0de0cce0169b
go: downloading golang.org/x/text v0.3.2
go generate ./...
/home/runner/work/yurt-device-controller/yurt-device-controller/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" \
	paths="./apis/device.openyurt.io/v1alpha1/device_types.go" \
	paths="./apis/device.openyurt.io/v1alpha1/deviceservice_types.go" \
	paths="./apis/device.openyurt.io/v1alpha1/deviceprofile_types.go" \
	paths="./apis/device.openyurt.io/v1alpha1/groupversion_info.go"
go fmt ./...
go vet ./...
go: downloading github.com/onsi/ginkgo v1.16.4
go: downloading github.com/go-logr/zapr v0.4.0
go: downloading go.uber.org/zap v1.18.1
go: downloading go.uber.org/atomic v1.7.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading github.com/nxadm/tail v1.4.8
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
/home/runner/work/yurt-device-controller/yurt-device-controller/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
mkdir -p /home/runner/work/yurt-device-controller/yurt-device-controller/testbin
test -f /home/runner/work/yurt-device-controller/yurt-device-controller/testbin/setup-envtest.sh || curl -sSLo /home/runner/work/yurt-device-controller/yurt-device-controller/testbin/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.0/hack/setup-envtest.sh
source /home/runner/work/yurt-device-controller/yurt-device-controller/testbin/setup-envtest.sh; fetch_envtest_tools /home/runner/work/yurt-device-controller/yurt-device-controller/testbin; setup_envtest_env /home/runner/work/yurt-device-controller/yurt-device-controller/testbin; go test ./... -coverprofile cover.out
/bin/sh: 1: source: not found
/bin/sh: 1: fetch_envtest_tools: not found
/bin/sh: 1: setup_envtest_env: not found
?   	github.com/openyurtio/device-controller	[no test files]
?   	github.com/openyurtio/device-controller/apis/device.openyurt.io/v1alpha1	[no test files]
?   	github.com/openyurtio/device-controller/cmd/yurt-device-controller/app	[no test files]
?   	github.com/openyurtio/device-controller/cmd/yurt-device-controller/options	[no test files]
?   	github.com/openyurtio/device-controller/pkg/clients	[no test files]
?   	github.com/openyurtio/device-controller/pkg/clients/edgex-foundry	[no test files]
Running Suite: Controller Suite
===============================
Random Seed: 1659944196
Will run 0 of 0 specs

STEP: bootstrapping test environment
2022-08-08T07:36:36.800Z	DEBUG	controller-runtime.test-env	starting control plane
2022-08-08T07:36:36.802Z	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 0, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"}
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:330
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:260
github.com/openyurtio/device-controller/pkg/controllers.glob..func1
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:60
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:[11](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:12)3
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/suite_nodes.go:25
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runBeforeSuite
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:[12](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:13)3
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:63
github.com/onsi/ginkgo/internal/suite.(*Suite).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79
github.com/onsi/ginkgo.runSpecsWithCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221
github.com/openyurtio/device-controller/pkg/controllers.TestAPIs
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47
testing.tRunner
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203
2022-08-08T07:36:36.802Z	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 1, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"}
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:330
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:260
github.com/openyurtio/device-controller/pkg/controllers.glob..func1
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:60
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:1[13](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:14)
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/suite_nodes.go:25
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runBeforeSuite
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:123
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:63
github.com/onsi/ginkgo/internal/suite.(*Suite).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79
github.com/onsi/ginkgo.runSpecsWithCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221
github.com/openyurtio/device-controller/pkg/controllers.TestAPIs
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47
testing.tRunner
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203
2022-08-08T07:36:36.803Z	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 2, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"}
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:330
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:260
github.com/openyurtio/device-controller/pkg/controllers.glob..func1
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:60
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:113
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/suite_nodes.go:25
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runBeforeSuite
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:123
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:63
github.com/onsi/ginkgo/internal/suite.(*Suite).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79
github.com/onsi/ginkgo.runSpecsWithCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221
github.com/openyurtio/device-controller/pkg/controllers.TestAPIs
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47
testing.tRunner
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203
2022-08-08T07:36:36.804Z	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 3, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"}
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:330
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:260
github.com/openyurtio/device-controller/pkg/controllers.glob..func1
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:60
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:113
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/suite_nodes.go:25
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runBeforeSuite
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:123
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:63
github.com/onsi/ginkgo/internal/suite.(*Suite).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79
github.com/onsi/ginkgo.runSpecsWithCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221
github.com/openyurtio/device-controller/pkg/controllers.TestAPIs
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47
testing.tRunner
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203
2022-08-08T07:36:36.804Z	ERROR	controller-runtime.test-env	unable to start the controlplane	{"tries": 4, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"}
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:330
sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start
	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:260
github.com/openyurtio/device-controller/pkg/controllers.glob..func1
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:60
github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:113
github.com/onsi/ginkgo/internal/leafnodes.(*runner).run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64
github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/suite_nodes.go:25
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runBeforeSuite
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:123
github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:63
github.com/onsi/ginkgo/internal/suite.(*Suite).Run
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79
github.com/onsi/ginkgo.runSpecsWithCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238
github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters
	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221
github.com/openyurtio/device-controller/pkg/controllers.TestAPIs
	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47
testing.tRunner
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203
Failure [0.004 seconds]
[BeforeSuite] BeforeSuite 
/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:52

  Unexpected error:
      <*fmt.wrapError | 0xc00007d6e0>: {
          msg: "unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory",
          err: <*fmt.wrapError | 0xc00007d6c0>{
              msg: "failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory",
              err: <*fs.PathError | 0xc0000d2a80>{
                  Op: "fork/exec",
                  Path: "/usr/local/kubebuilder/bin/etcd",
                  Err: <syscall.Errno>0x2,
              },
          },
      }
      unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory
  occurred

  /home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:61
------------------------------
STEP: tearing down the test environment
Panic [0.000 seconds]
[AfterSuite] AfterSuite 
/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:84

  Test Panicked
  runtime error: invalid memory address or nil pointer dereference
  /opt/hostedtoolcache/go/1.16.15/x64/src/runtime/panic.go:212

  Full Stack Trace
  sigs.k8s.io/controller-runtime/pkg/internal/testing/controlplane.(*APIServer).Stop(0xc0003dc000, 0x4b6eed, 0x18a208a)
  	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/testing/controlplane/apiserver.go:417 +0x2d
  sigs.k8s.io/controller-runtime/pkg/internal/testing/controlplane.(*ControlPlane).Stop(0xc00046b900, 0x4f7200, 0xc0004[14](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:15)fb0)
  	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/testing/controlplane/plane.go:87 +0x1e5
  sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Stop(0xc00046b900, 0x21, 0x0)
  	/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:194 +0xa5
  github.com/openyurtio/device-controller/pkg/controllers.glob..func2()
  	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:86 +0x5b
  github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync(0xc00041c6c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:113 +0xa3
  github.com/onsi/ginkgo/internal/leafnodes.(*runner).run(0xc00041c6c0, 0x14cbc80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:64 +0x[15](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:16)c
  github.com/onsi/ginkgo/internal/leafnodes.(*simpleSuiteNode).Run(0xc0005e3e00, 0x1, 0x1, 0x0, 0x0, 0x0)
  	/home/runner/go/pkg/mod/github.com/onsi/ginkgo@v1.[16](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:17).4/internal/leafnodes/suite_nodes.go:25 +0x8f
  github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).runAfterSuite(0xc000438f20, 0x0)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:138 +0xd9
  github.com/onsi/ginkgo/internal/specrunner.(*SpecRunner).Run(0xc000438f20, 0xc000467a38)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/specrunner/spec_runner.go:71 +0xd4
  github.com/onsi/ginkgo/internal/suite.(*Suite).Run(0xc0005f5810, 0x7fcb503fcaa0, 0xc0002c9080, 0x[18](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:19)9c18c, 0x10, 0xc00007d020, 0x2, 0x2, 0x1ab7eb8, 0xc00003dec0, ...)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/internal/suite/suite.go:79 +0x546
  github.com/onsi/ginkgo.runSpecsWithCustomReporters(0x1a7ed00, 0xc0002c9080, 0x189c18c, 0x10, 0xc00007d000, 0x2, 0x2, 0x2)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:238 +0x218
  github.com/onsi/ginkgo.RunSpecsWithDefaultAndCustomReporters(0x1a7ed00, 0xc0002c9080, 0x189c18c, 0x10, 0xc000431f60, 0x1, 0x1, 0x62f0bd04)
  	/home/runner/go/pkg/mod/github.com/onsi/[email protected]/ginkgo_dsl.go:221 +0x136
  github.com/openyurtio/device-controller/pkg/controllers.TestAPIs(0xc0002c9080)
  	/home/runner/work/yurt-device-controller/yurt-device-controller/pkg/controllers/suite_test.go:47 +0xcd
  testing.tRunner(0xc0002c9080, 0x[19](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:20)4f158)
  	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1[20](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:21)3 +0xe5
  created by testing.(*T).Run
  	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1[24](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:25)8 +0x2b3
------------------------------


Ran 0 of 0 Specs in 0.005 seconds
FAIL! -- 0 Passed | 0 Failed | 0 Pending | 0 Skipped
You're using deprecated Ginkgo functionality:
=============================================
Ginkgo 2.0 is under active development and will introduce (a small number of) breaking changes.
To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md
To comment, chime in at https://github.com/onsi/ginkgo/issues/711

  You are using a custom reporter.  Support for custom reporters will likely be removed in V2.  Most users were using them to generate junit or teamcity reports and this functionality will be merged into the core reporter.  In addition, Ginkgo 2.0 will support emitting a JSON-formatted report that users can then manipulate to generate custom reports.

  If this change will be impactful to you please leave a comment on https://github.com/onsi/ginkgo/issues/711
  Learn more at: https://github.com/onsi/ginkgo/blob/v2/docs/MIGRATING_TO_V2.md#removed-custom-reporters

To silence deprecations that can be silenced set the following environment variable:
  ACK_GINKGO_DEPRECATIONS=1.16.4

--- FAIL: TestAPIs (0.01s)
FAIL
coverage: 0.0% of statements
FAIL	github.com/openyurtio/device-controller/pkg/controllers	0.0[27](https://github.com/openyurtio/yurt-device-controller/runs/7720810583?check_suite_focus=true#step:7:28)s
?   	github.com/openyurtio/device-controller/pkg/controllers/util	[no test files]
FAIL
make: *** [test] Error 1
Makefile:19: recipe for target 'test' failed

/kind bug

[feature request] Create an End-to-End reference solution with camera management and video analytics

What would you like to be added:
A reference e2e solution uncovering how to manage cameras using edgex and feed the video stream to the backend workload, like video AI analytics pipeline.

Why is this needed:
Video analytics is a typical edge scenario. A somewhat general reference solution is good for users to understand how to manage things and deploy workloads onto OpenYurt cloud-edge infrastructure.

others
/kind feature

[BUG] device cr repeated when create device from k8s

If i create a new device from k8s as yaml below:

apiVersion: "device.openyurt.io/v1alpha1"
kind: "Device"
metadata:
  labels:
    device-controller/edgex-object.name: "d1"
  name: "np7800702af3f84b8793731d53c49d96c9-d1"
  namespace: "edge-paas-edge"
spec:
  description: "d1"
  adminState: "UNLOCKED"
  operatingState: "UP"
  protocols:
    mqtt: {}
  labels: []
  location: "??"
  serviceName: "device-virtual"
  profileName: "Random-Float-Device"
  notify: false
  managed: true
  nodePool: "np7800702af3f84b8793731d53c49d96c9"
  deviceProperties: {}

then, device-controller will create two device with name:

  • np7800702af3f84b8793731d53c49d96c9-d1
  • np7800702af3f84b8793731d53c49d96c9-np7800702af3f84b8793731d53c49d96c9-d1

Environment:

  • OpenYurt version:
  • Kubernetes version (use kubectl version):
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

others

/kind bug

How user deploy their device services

In edgex, the device service is device connectors for EdgeX. And we can use the device serivce sdk to create the service [link](device connectors for EdgeX). In openyurt, how the user deploy their device service?

[BUG] Errors in synchronization process of deviceprofile between cloud and edge

What happened:

  • Problem one: After deleting the deviceprofile through edgex-core-metadata, the corresponding deviceprofile on openyurt will not be deleted;
  • Problem two: With the restart of yurt-device-controller, openyurt may have a deviceprofile with two nodepool prefixes in its name.

What you expected to happen:

  1. After deleting the deviceprofile through edgex-core-metadata, the corresponding deviceprofile on openyurt will be deleted;
  2. During the synchronization process, no deviceprofiles whose names contain the two nodepool prefixes will appear.

How to reproduce it (as minimally and precisely as possible):

  • Problem one:
    1. Delete a deviceprofile object via edgex-core-metadata as follows:
      curl -X 'DELETE' 'http://edgex-core-metadata:30081/api/v1/deviceprofile/name/[device profile name]' -H 'accept: */*'
  • Problem two:
    1. The operating environment is normal, and the cloud-edge resources are consistent;
    2. Delete a deviceprofile object via edgex-core-metadata;
    3. Restart yurt-device-controller, then openyurt will have a deviceprofile with two nodepool prefixes in its name.

Anything else we need to know?:

Environment:

  • OpenYurt version:
  • Kubernetes version (use kubectl version):
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

others

/kind bug

[BUG] sync failed when deviceservice set instancename

When deviceservice set instance name. Edgex concatenates the original name with the instance name using the character _.
As code below:

func setServiceName(name string) string {
	envValue := os.Getenv(EnvInstanceName)
	if len(envValue) > 0 {
		instanceName = envValue
	}

	if len(instanceName) > 0 {
		name = name + "_" + instanceName
	}

	return name
}

The Yurt-device-controller creates a deviceservice CR and uses the name in Edgex as the name of the cr.
But, the character _ is illegal in k8s.
image

/kind bug

[BUG] some items in deviceProperties do not have value

What happened:
when checking status of device with kubectl get device xxx -o yaml, some of the items in status.deviceProperties do not have values while the response of EdgeX API contains value. Here is and example below:
image

image

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):
Just create a device and check the status.

Anything else we need to know?:

Environment:

  • OpenYurt version: v0.5.0
  • Kubernetes version (use kubectl version): 1.18.8

others

/kind bug

[Question]Is there the demo:edgex device creating by k8s API?

What happened: I dont know how to create device/deviceprofile by k8s API when i want integrate openyurt with thingsboard cloud like.So I can compare the two device provide way: k8s API and MQTT API
What you expected to happen: give the demo by k8s API with java client better
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Is there any project about cloud web consol which can manage device/device profile/edgex instances /protocals such like IoT Cloud ManageMent Suite(for Edgex or Other Gateway)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.