Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

initDb error #30

Closed
fbalicchia opened this issue Mar 19, 2021 · 3 comments · Fixed by #33
Closed

initDb error #30

fbalicchia opened this issue Mar 19, 2021 · 3 comments · Fixed by #33

Comments

@fbalicchia
Copy link

Hello I'm trying to use fate-operator and use it with KinD at rev aa71232.
After deploy operator and applying

  • kubectl apply -f config/samples/rbac-config.yaml
  • kubectl apply -f config/samples/kubefate-secret.yaml
  • k create ns fate-9999
  • k create ns fatejob-sample

if check log in opertor seems that It can accesso to db

2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:89 > logLevel: debug
2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:90 > api version: v1
2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:91 > service version: v1.3.0
2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:92 > DbType: mysql
2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:93 > LogNocolor: true
2021-03-19T17:16:06Z INF workspace/pkg/api/service.go:94 > server: [0.0.0.0:8080]
2021-03-19T17:16:21Z ERR workspace/pkg/api/service.go:98 > initDb error,  error="initialization failed: Error 1045: Access denied for user 'kubefate'@'10.244.0.6' (using password: YES)"
initialization failed: Error 1045: Access denied for user 'kubefate'@'10.244.0.6' (using password: YES)

Thanks

--Filippo

@owlet42
Copy link
Contributor

owlet42 commented Mar 22, 2021

Check if the pod status corresponding to mariadb is Running

@fbalicchia
Copy link
Author

fbalicchia commented Mar 22, 2021

yes it seems up

kubefate-kubefate-kubefate-sample-54fd448c58-mq6hc   0/1     Error     1          48s
kubefate-mariadb-kubefate-sample-5b6b4798fc-ktzgs    1/1     Running   0          48s

2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:89 > logLevel: debug
2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:90 > api version: v1
2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:91 > service version: v1.3.0
2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:92 > DbType: mysql
2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:93 > LogNocolor: true
2021-03-22T12:58:38Z INF workspace/pkg/api/service.go:94 > server: [0.0.0.0:8080]
2021-03-22T12:58:53Z ERR workspace/pkg/api/service.go:98 > initDb error,  error="initialization failed: Error 1045: Access denied for user 'kubefate'@'10.244.0.7' (using password: YES)"
initialization failed: Error 1045: Access denied for user 'kubefate'@'10.244.0.7' (using password: YES)

These are steps i have done:

cat clusterconfig-1.18.yaml << EOF > clusterconfig-1.18.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  image: kindest/node:v1.18.8
  extraPortMappings:
  - containerPort: 31080
    hostPort: 80
  - containerPort: 31443
    hostPort: 443
EOF


kind create cluster --config clusterconfig-1.18.yaml --name fate-operator
from fate-operator root folder
export IMG=federatedai/fate-controller:aa71232522c
make docker-build-without-test
kind load docker-image federatedai/fate-controller:aa71232522c  --name fate-operator
make deploy

k get pods -n fate-operator-system
fate-operator-controller-manager-6c479ff855-stmmp   2/2     Running   0          31s

kubectl apply -f config/samples/rbac-config.yaml
kubectl apply -f config/samples/kubefate-secret.yaml
k create ns fate-9999

kubectl create -f ./config/samples/app_v1beta1_kubefate.yaml
k get pods -n kube-fate

@LaynePeng
Copy link
Contributor

@fbalicchia Thanks for reporting the bug. We have fixed it with a PR: #33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants