You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
I installed Gerrit using the one click deploy. Out of the box, it does not work because it is missing the "gerrit-admin-ssh" and "gerrit-users-ssh-keys". So it fails to start. But I think overall it is broken. I tried messing with the yml file as well, to tweak it as the namespace is wrong and I wanted different default credentials.
So I went and generated a priv/pub key pair and created the secrets manually for "gerrit-admin-ssh" and "gerrit-users-ssh-keys". I just used the same keys for both for testing purposes.
I removed the Gerrit app runtime and then ran my yml again to install it.
Still no luck. The container is crashing but the errors are not clear as why it might be happening.
kubectl -n app describe pods gerrit-1386751604-ld9wy
Name: gerrit-1386751604-ld9wy
Namespace: app
Node: gke-forge-paas-default-pool-0b253c51-2yqj/10.128.0.3
Start Time: Sat, 26 Nov 2016 05:59:50 -0700
Labels: group=io.fabric8.devops.apps
pod-template-hash=1386751604
project=gerrit
provider=fabric8
version=2.2.297
Status: Running
IP: 10.0.1.52
Controllers: ReplicaSet/gerrit-1386751604
Containers:
gerrit:
Container ID: docker://0903e458cfdb447ea512af466872587c9d5edffb987d183e571443ec251b891a
Image: fabric8/gerrit:2.2.297
Image ID: docker://sha256:11b359a11bc5e0510b49543bdee449b9c0581c96864fb6b59077a142a5774e7d
Port: 8080/TCP
Limits:
cpu: 0
memory: 0
Requests:
cpu: 0
memory: 0
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Sat, 26 Nov 2016 06:02:07 -0700
Finished: Sat, 26 Nov 2016 06:02:15 -0700
Ready: False
Restart Count: 4
Volume Mounts:
/home/gerrit/ssh-keys from gerrit-users-ssh-keys (rw)
/root/.ssh from gerrit-admin-ssh-key (rw)
/var/run/secrets/kubernetes.io/serviceaccount from gerrit-token-ieunl (ro)
Environment Variables:
GERRIT_PUBLIC_KEYS_PATH: /home/gerrit/ssh-keys
GIT_SERVER_PASSWORD: RedHat$1
GERRIT_ADMIN_FULLNAME: Administrator
GERRIT_ACCOUNTS: jenkins,jenkins,[email protected],secret,Non-Interactive Users:Administrators;sonar,sonar,[email protected],secret,Non-Interactive Users
GERRIT_ADMIN_USER: <set to the key 'gerrit-admin-user' of config map 'gerrit'>
GIT_SERVER_IP: gogs.app.svc.cluster.local
GERRIT_ADMIN_PRIVATE_KEY: /root/.ssh/id_rsa
GERRIT_REPO_DESCRIPTION: <set to the key 'gerrit-repo-description' of config map 'gerrit'>
GERRIT_SSH_PATH: /root/.ssh
GERRIT_ADMIN_EMAIL: [email protected]
GERRIT_GIT_REMOTEPATH: ssh://admin@localhost:29418/All-Projects
GIT_SERVER_PROJ_ROOT: gogsadmin
GERRIT_ADMIN_PWD: <set to the key 'gerrit-admin-pwd' of config map 'gerrit'>
GERRIT_GIT_PROJECT_CONFIG: /home/gerrit/configs/project.config
GIT_SERVER_PORT: 80
GERRIT_INITIAL_COMMIT: <set to the key 'gerrit-initial-commit' of config map 'gerrit'>
GERRIT_USER_PUBLIC_KEY_SUFFIX: -rsa.pub
GIT_SERVER_USER: gogsadmin
GERRIT_GIT_LOCALPATH: /home/gerrit/git
GERRIT_USER_PUBLIC_KEY_PREFIX: id-
AUTH_TYPE: DEVELOPMENT_BECOME_ANY_ACCOUNT
KUBERNETES_NAMESPACE: app (v1:metadata.namespace)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
gerrit-admin-ssh-key:
Type: Secret (a volume populated by a Secret)
SecretName: gerrit-admin-ssh
gerrit-users-ssh-keys:
Type: Secret (a volume populated by a Secret)
SecretName: gerrit-users-ssh-keys
gerrit-token-ieunl:
Type: Secret (a volume populated by a Secret)
SecretName: gerrit-token-ieunl
QoS Class: BestEffort
Tolerations: <none>
Events:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Pulling pulling image "fabric8/gerrit:2.2.297"
2m 2m 1 {default-scheduler } Normal Scheduled Successfully assigned gerrit-1386751604-ld9wy to gke-forge-paas-default-pool-0b253c51-2yqj
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Pulled Successfully pulled image "fabric8/gerrit:2.2.297"
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Created Created container with docker id 4216ed0d1bd8; Security:[seccomp=unconfined]
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Started Started container with docker id 4216ed0d1bd8
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Started Started container with docker id 5d6468df51c9
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Created Created container with docker id 5d6468df51c9; Security:[seccomp=unconfined]
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "gerrit" with CrashLoopBackOff: "Back-off 10s restarting failed container=gerrit pod=gerrit-1386751604-ld9wy_app(37500b26-b3d8-11e6-bf41-42010a8000de)"
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Created Created container with docker id 7074e385b8ac; Security:[seccomp=unconfined]
2m 2m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Started Started container with docker id 7074e385b8ac
1m 1m 2 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "gerrit" with CrashLoopBackOff: "Back-off 20s restarting failed container=gerrit pod=gerrit-1386751604-ld9wy_app(37500b26-b3d8-11e6-bf41-42010a8000de)"
1m 1m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Started Started container with docker id 530d5fd4c789
1m 1m 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Created Created container with docker id 530d5fd4c789; Security:[seccomp=unconfined]
1m 50s 3 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "gerrit" with CrashLoopBackOff: "Back-off 40s restarting failed container=gerrit pod=gerrit-1386751604-ld9wy_app(37500b26-b3d8-11e6-bf41-42010a8000de)"
2m 37s 4 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Pulled Container image "fabric8/gerrit:2.2.297" already present on machine
37s 37s 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Created Created container with docker id 0903e458cfdb; Security:[seccomp=unconfined]
37s 37s 1 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Normal Started Started container with docker id 0903e458cfdb
2m 13s 8 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} spec.containers{gerrit} Warning BackOff Back-off restarting failed docker container
28s 13s 2 {kubelet gke-forge-paas-default-pool-0b253c51-2yqj} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "gerrit" with CrashLoopBackOff: "Back-off 1m20s restarting failed container=gerrit pod=gerrit-1386751604-ld9wy_app(37500b26-b3d8-11e6-bf41-42010a8000de)"
I think we need to update gofabric8 secrets so that it runs on kubernetes and checks the installed catalog configmaps to see if we need to generate the secrets.
moved issue from: fabric8io/gofabric8#304
I installed Gerrit using the one click deploy. Out of the box, it does not work because it is missing the "gerrit-admin-ssh" and "gerrit-users-ssh-keys". So it fails to start. But I think overall it is broken. I tried messing with the yml file as well, to tweak it as the namespace is wrong and I wanted different default credentials.
So I went and generated a priv/pub key pair and created the secrets manually for "gerrit-admin-ssh" and "gerrit-users-ssh-keys". I just used the same keys for both for testing purposes.
I removed the Gerrit app runtime and then ran my yml again to install it.
Still no luck. The container is crashing but the errors are not clear as why it might be happening.
Here is my yml:
The text was updated successfully, but these errors were encountered: