-
Notifications
You must be signed in to change notification settings - Fork 106
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
harbor-core cannot find redis #786
Comments
Hi, can you provide your installation steps? |
@mpdevul Hi, can you provide redis operator logs and check whether redis cr has been created? |
I see forbidden errors, looks we may need some more RBAC updates ?
|
Upstream redis operator related issue: spotahome/redis-operator#98 |
@mpdevul Hi, can you share your redis clusterrole yaml? ( I think you can try to edit the clusterrole manually. ref: spotahome/redis-operator#161 |
@chlins the current clusterrole below, and thanks for the link, will update manually and try to deploy again as suggested
|
after updating the rbac permissions, i can see the redis pod running, but the core pod still goes into crashloopback
All the service details below
|
@mpdevul Can you check redis operator logs again, under normal circumstances, redis should setup two pods, but your redis pod only has one pod, so it can not work well, so harbor core can not connect to redis successfully and crash. |
In my environment rfr-harborcluster-sample-redis-0 1/1 Running 0 28h
rfs-harborcluster-sample-redis-6b7f4c4756-gl64f 1/1 Running 0 28h
|
@chlins below are the logs I see
Could the deployment manifest and its dependent objects be provided here, since i do not see any log of redis operator which shows that it is trying to create the deployment, i will try to create manually ?? |
@mpdevul Did your environement install any other validation webhooks? from the logs warn |
@chlins , i see the below for the statefulset, need to add rbac for pvc as well i believe, will try that and get back.
|
@chlins , updating RBAC didnt help, so created the PVC manually and the pod controlled by the statefuleset comes up but, the readiness probes fails, the core pods are still in crashloopback status.
Logs of the Redis pod.
|
@mpdevul It looks like redis is still not working properly, i think you can try to delete redis two pods then wait k8s recreate them(but i'm not sure the solution whether can help). |
Tried that did not help, could you please point to an article where i can try using redis in external mode
|
@mpdevul I will try to reproduce your issue in my environemnt to find out the root cause, if you want to use out-cluster redis service, currently we have no article for guiding the config, but you can see it from crd spec. code reference:
update your harborcluster cr to config external redis. A simple example: spec:
cache:
kind: Redis
spec:
redis:
host: 127.0.0.1
port: 6379 tips: if update harborcluster cr directly not work, maybe need delete harbor firstly and then re-apply harborcluster cr. |
Trying the release 1.1.1 on OpenShift cluster 4.7 the harbor core pod fails,
Logs below.
dont see any pod call rfs-harborcluster-sample-redis created or the corresponding service.
I did see the redis pod was getting created in the older release. Could this have been missed.
The text was updated successfully, but these errors were encountered: