litmus icon indicating copy to clipboard operation
litmus copied to clipboard

agent installation error

Open santhoshissa opened this issue 3 years ago • 2 comments

Hi Team, When I trying to install litmus on my k8s clusters facing an agent installation issue

Kubectl logs -f subscriber-55cbccdd65-bjknm -n litmus

root@k8server:~# kubectl logs -f subscriber-55cbccdd65-bjknm -n litmus time="2022-07-15T11:37:18Z" level=info msg="Go Version: go1.16.15" time="2022-07-15T11:37:18Z" level=info msg="Go OS/Arch: linux/amd64" time="2022-07-15T11:37:18Z" level=info msg="All agent deployments are up" time="2022-07-15T11:37:18Z" level=info msg="Starting the subscriber" time="2022-07-15T11:37:18Z" level=fatal msg="Failed to check cluster confirmed status" error="secrets \"agent-secret\" is forbidden: User \"system:serviceaccount:litmus:litmus\" cannot get resource \"secrets\" in API group \"\" in the namespace \"litmus\""

after this issue deleted all cluster clusterrolebinding and clusterrole even same issue

image

image

santhoshissa avatar Jul 15 '22 11:07 santhoshissa

Same issue for me with V 2.11.0

ashmilhussain avatar Jul 26 '22 09:07 ashmilhussain

Could you try to run it?

kubectl create clusterrolebinding litmus-cluster-admin --clusterrole=litmus-admin --serviceaccount=litmus:litmus

dyegowermelinger avatar Jul 26 '22 17:07 dyegowermelinger

Hi @santhoshissa, will you join the Litmus community Slack channel in k8s Slack? We usually help each other troubleshoot problems there. https://k8s.slack.com/

neelanjan00 avatar Sep 22 '22 12:09 neelanjan00

Hi @santhoshissa, are you still facing this issue? What it seems is that the service account doesn't have permission to read the secret. If you are still facing this issue, can you mention the litmus version and also share how you are trying to install litmus?

avaakash avatar Oct 13 '22 06:10 avaakash

Closing this issue due to no response, if the problem is still not resolved, feel free to re-open this.

avaakash avatar Nov 14 '22 05:11 avaakash