Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to solve these problems?(create and use PV) #973

Open
BetterManXJS opened this issue Jun 11, 2024 · 2 comments
Open

[QUESTION] How to solve these problems?(create and use PV) #973

BetterManXJS opened this issue Jun 11, 2024 · 2 comments
Labels
kind/question Further information is requested

Comments

@BetterManXJS
Copy link

Question

kubectl logs juicefs-hpc-master-pvc-5465ef2b-1a8c-4456-be67-6998fa3d58e4-lentka -n juicefs
--->
object storage: Can't read default config file: rados: ret=2, No such file or directory [format.go:469]
database is not formatted, please run juicefs format ... first [main.go:31]

What help did you want:
create and use PV

Environment:

  • JuiceFS CSI Driver version (which image tag did your CSI Driver use): 0.24.0
  • Kubernetes version (e.g. kubectl version): 1.24.17
  • Object storage (cloud provider and region): ceph version 17.2.7
  • Metadata engine info (version, cloud provider managed or self maintained): Redis server v=6.0.16
  • Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage): JuiceFS to metadata engine
  • Others:

juicefs-csi-log

@BetterManXJS BetterManXJS added the kind/question Further information is requested label Jun 11, 2024
@BetterManXJS BetterManXJS changed the title [QUESTION] How to solve these problems? [QUESTION] How to solve these problems?(create and use PV) Jun 11, 2024
@zwwhdls
Copy link
Member

zwwhdls commented Jun 11, 2024

Please refer to this doc: https://juicefs.com/docs/csi/ceph

@BetterManXJS
Copy link
Author

BetterManXJS commented Jun 12, 2024

Please refer to this doc: https://juicefs.com/docs/csi/ceph

i tried it step by step, but new problem occured

some logs are here,please take a look,thank you~

root@hpc-node-1:/home/xjs/jiaocheng# kubectl get pods -n juicefs
NAME                                                                 READY   STATUS              RESTARTS          AGE
juicefs-app                                                          0/1     ContainerCreating   0                 150m
juicefs-csi-controller-0                                             3/3     Running             243 (5d18h ago)   6d20h
juicefs-csi-controller-1                                             3/3     Running             1 (27h ago)       27h
juicefs-csi-dashboard-7f7c45fc6c-5kmm6                               1/1     Running             0                 6d20h
juicefs-csi-node-2cf4s                                               3/3     Running             290 (5d18h ago)   6d20h
juicefs-csi-node-hmmng                                               3/3     Running             298 (6d2h ago)    6d20h
juicefs-csi-node-j6dlt                                               3/3     Running             279 (6d4h ago)    6d20h
juicefs-csi-node-m2w25                                               3/3     Running             285 (20h ago)     6d20h
juicefs-hpc-master-pvc-02117cb7-f90d-4efc-a9cc-d1450a26c8d6-exacfo   0/1     CrashLoopBackOff    34 (44s ago)      150m
root@hpc-node-1:/home/xjs/jiaocheng# kubectl logs juicefs-hpc-master-pvc-02117cb7-f90d-4efc-a9cc-d1450a26c8d6-exacfo -n juicefs
2024/06/12 06:14:11.249488 juicefs[7] <INFO>: Meta address: redis://10.110.163.22:6379/2 [interface.go:497]
2024/06/12 06:14:11.251232 juicefs[7] <WARNING>: AOF is not enabled, you may lose data if Redis is not shutdown properly. [info.go:84]
2024/06/12 06:14:11.251477 juicefs[7] <INFO>: Ping redis latency: 185.426µs [redis.go:3600]
unable to parse addrs in '[v2:10.110.163.34:3300/0,v1:10.110.163.34:6789/0] [v2:10.110.163.35:3300/0,v1:10.110.163.35:6789/0] [v2:10.110.163.23:3300/0,v1:10.110.163.23:6789/0] [v2:10.110.163.74:3300/0,v1:10.110.163.74:6789/0] [v2:10.110.163.22:3300/0,v1:10.110.163.22:6789/0]'
2024/06/12 06:14:11.262391 juicefs[7] <FATAL>: object storage: Can't connect to cluster ceph: rados: ret=22, Invalid argument [format.go:469]
server name not found: [v2:10.110.163.34:3300/0 (Name or service not known)
2024/06/12 06:14:11.834072 juicefs[29] <INFO>: Meta address: redis://10.110.163.22:6379/2 [interface.go:497]
2024/06/12 06:14:11.835791 juicefs[29] <WARNING>: AOF is not enabled, you may lose data if Redis is not shutdown properly. [info.go:84]
2024/06/12 06:14:11.836073 juicefs[29] <INFO>: Ping redis latency: 184.361µs [redis.go:3600]
unable to parse addrs in '[v2:10.110.163.34:3300/0,v1:10.110.163.34:6789/0] [v2:10.110.163.35:3300/0,v1:10.110.163.35:6789/0] [v2:10.110.163.23:3300/0,v1:10.110.163.23:6789/0] [v2:10.110.163.74:3300/0,v1:10.110.163.74:6789/0] [v2:10.110.163.22:3300/0,v1:10.110.163.22:6789/0]'
2024/06/12 06:14:11.851185 juicefs[29] <FATAL>: object storage: Can't connect to cluster ceph: rados: ret=22, Invalid argument [main.go:31]
server name not found: [v2:10.110.163.34:3300/0 (Name or service not known)
root@hpc-node-1:/home/xjs/jiaocheng# ./csi-doctor.sh debug juicefs-app -n juicefs
CSI Controller Image: 
Application Pod Event
LAST SEEN   TYPE      REASON        OBJECT            MESSAGE
15m         Warning   FailedMount   pod/juicefs-app   Unable to attach or mount volumes: unmounted volumes=[juicefs-pv], unattached volumes=[juicefs-pv kube-api-access-wssvv]: timed out waiting for the condition
5m4s        Warning   FailedMount   pod/juicefs-app   Unable to attach or mount volumes: unmounted volumes=[juicefs-pv], unattached volumes=[kube-api-access-wssvv juicefs-pv]: timed out waiting for the condition
10m         Warning   FailedMount   pod/juicefs-app   (combined from similar events): MountVolume.SetUp failed for volume "pvc-02117cb7-f90d-4efc-a9cc-d1450a26c8d6" : rpc error: code = Internal desc = Could not mount juicefs: mount redis://10.110.163.22:6379/2 at /jfs/pvc-02117cb7-f90d-4efc-a9cc-d1450a26c8d6-exacfo failed, mountpod: juicefs-hpc-master-pvc-02117cb7-f90d-4efc-a9cc-d1450a26c8d6-exacfo, failed log: 2024/06/12 06:03:58.238218 juicefs[7] <INFO>: Meta address: redis://10.110.163.22:6379/2 [interface.go:497]...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants