Application Already Exists Error (Gerrit VCS)
Problem​
User receives an error message when creating applications using Gerrit as a Git Server provider.
Cause​
Gerrit operator might get stuck during its work.
Solution​
Restarting the Gerrit-related pods can be a solution to the problem:
-
Check the
GerritProject
,CodebaseImageStream
,CodebaseBranch
, andCodebase
custom resources related to the previously created application:kubectl get CodebaseBranch -n edp
kubectl get CodebaseImageStream -n edp
kubectl get Codebase -n edp
kubectl get GerritProject -n edp -
Delete the custom resources that relate to the problem application using the
kubectl delete
command. -
Check the pods in your project namespace:
kubectl get pods -n edp
-
Delete the
gerrit-operator
andgerrit
pods so the replica set will be able to spin up new pods:kubectl get pods -n edp
-
Create the application again. Now it is supposed to create application successfully.