cloud-barista / cb-operator

The Operator for Cloud-Barista system
Apache License 2.0
6 stars 6 forks source link

[K8s mode] "etcdserver: user name is empty" #146

Closed jihoon-seo closed 3 years ago

jihoon-seo commented 3 years ago

What happened :

❯ ./create-all.sh mock 1 jhseo

{
  "message": "etcdserver: user name is empty"
}
❯ kubectl logs cloud-barista-etcd-0 -n cloud-barista | grep "user name is empty"
{"level":"warn","ts":"2021-08-03T05:25:24.339Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"27.337µs","request":"header:<ID:13082810727413219904 > put:<key:\"config/agent_interval\" value_size:1 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.347Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"11.033µs","request":"header:<ID:13082810727413219905 > put:<key:\"config/monitoring_policy\" value_size:10 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.353Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"9.491µs","request":"header:<ID:13082810727413219906 > put:<key:\"config/max_host_count\" value_size:1 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.362Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.65µs","request":"header:<ID:13082810727413219907 > put:<key:\"config/puller_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.368Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.849µs","request":"header:<ID:13082810727413219908 > put:<key:\"config/deploy_type\" >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.373Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.317µs","request":"header:<ID:13082810727413219909 > put:<key:\"config/collector_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.376Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"6.847µs","request":"header:<ID:13082810727413219910 > put:<key:\"config/default_policy\" value_size:4 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.379Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"6.682µs","request":"header:<ID:13082810727413219911 > put:<key:\"config/puller_aggregate_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.382Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"6.229µs","request":"header:<ID:13082810727413219912 > put:<key:\"config/aggregate_type\" value_size:3 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:24.816Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.814µs","request":"header:<ID:13082810727413219914 > put:<key:\"collectorGroupTopic/0\" >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:35.819Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"113.324763ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"config/collector_interval\" ","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:45.443Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"124.449749ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"config/collector_interval\" ","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:25:45.639Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"188.890307ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"collectorGroupTopic/0\" ","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:26.164Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"30.285µs","request":"header:<ID:13082810727413226281 > put:<key:\"/cloud-info-spaces/drivers/mock-driver01/MOCK\" value_size:19 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.553Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"10.541µs","request":"header:<ID:13082810727413226300 > put:<key:\"config/agent_interval\" value_size:1 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.563Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"10.416µs","request":"header:<ID:13082810727413226301 > put:<key:\"config/collector_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.566Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"9.813µs","request":"header:<ID:13082810727413226302 > put:<key:\"config/max_host_count\" value_size:1 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.568Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.618µs","request":"header:<ID:13082810727413226303 > put:<key:\"config/default_policy\" value_size:4 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.573Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.707µs","request":"header:<ID:13082810727413226304 > put:<key:\"config/puller_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.576Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.952µs","request":"header:<ID:13082810727413226305 > put:<key:\"config/aggregate_type\" value_size:3 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.580Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.476µs","request":"header:<ID:13082810727413226306 > put:<key:\"config/monitoring_policy\" value_size:10 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.585Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.511µs","request":"header:<ID:13082810727413226307 > put:<key:\"config/puller_aggregate_interval\" value_size:2 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:51.591Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.685µs","request":"header:<ID:13082810727413226308 > put:<key:\"config/deploy_type\" >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:59.722Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"10.688µs","request":"header:<ID:13082810727413226315 > put:<key:\"/cloud-info-spaces/credentials/mock-credential01/MOCK/MockName\" value_size:32 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:59.756Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.841µs","request":"header:<ID:13082810727413226316 > put:<key:\"/cloud-info-spaces/regions/mock-seoul/MOCK/Region\" value_size:7 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:29:59.793Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"7.816µs","request":"header:<ID:13082810727413226318 > put:<key:\"/cloud-info-spaces/connection-configs/mock-seoul/MOCK/mock-driver01/mock-credential01/mock-seoul\" >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:30:00.147Z","caller":"etcdserver/util.go:123","msg":"failed to apply request","took":"8.942µs","request":"header:<ID:13082810727413226320 > put:<key:\"/ns/cb\" value_size:69 >","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:30:54.500Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"127.467171ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"/ns\" range_end:\"/nt\" ","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:31:54.498Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"386.696501ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"/ns\" range_end:\"/nt\" ","response":"","error":"auth: user name is empty"}
{"level":"warn","ts":"2021-08-03T05:33:10.885Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"510.795435ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"/ns\" range_end:\"/nt\" ","response":"","error":"auth: user name is empty"}

What you expected to happen :

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

  1. 로컬 개발 환경에 minikube K8s 클러스터 생성
  2. cb-operator로 Cloud-Barista 실행
  3. 실행된 Cloud-Barista 의 CB-Ladybug을 이용하여 AWS+GCP에 K8s 클러스터 생성 ("인셉션")
  4. CB-Tumblebug 테스트 스크립트 중 src/testclient/scripts/sequentialFullTest/create-all.sh mock 1 jhseo 실행

Anything else we need to know? : cf) 위의 2번의 Cloud-Barista 에 CB-Tumblebug 테스트 스크립트 중 src/testclient/scripts/sequentialFullTest/create-all.sh mock 1 jhseo 실행하면 정상적으로 동작함.

Environment

Proposed solution : cb-operator/helm-chart/values.yaml 을 다음과 같이 수정

# sub-chart : etcd
etcd:
  enabled: true
  persistence:
    enabled: false
  auth:
    rbac:
      enabled: false
      allowNoneAuthentication: true
      rootPassword: ""

Any other context :