-
Notifications
You must be signed in to change notification settings - Fork 419
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
Setup issues with release 0.40.0 in K8s and installation with Helm #4416
Comments
Hi @odedsCoolScripts, thank you for this detailed report. Issue 1: #4431 |
Thanks @yesnault Regards |
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
For your issue 2, it's a lack of documentation, fixed here #4459 I will now make the same steps as you to reproduce the bug and investigate. Just to know, when you say you updated the config.toml. Do you do that with the config.toml on your local desk and then push via helm upgrade ? Or directly edit in the pod ? |
I edited through my desk. First option Thanks |
Hello @odedsCoolScripts I come back to you. I try to reproduce your issue but without "success". What I can recommend is to try to delete and re install a brand new CDS with helm install with the bitbucketcloud configuration already in your config.toml. For your information in my config.toml I just put this: [vcs.servers.bitbucketcloud]
[vcs.servers.bitbucketcloud.bitbucketcloud]
# Bitbucket Cloud OAuth Key
clientId = "XXX"
# Bitbucket Cloud OAuth Secret
clientSecret = "XXX"
# Does webhooks are supported by VCS Server
disableWebHooks = false
# Does webhooks creation are supported by VCS Server
disableWebHooksCreation = false
#proxyWebhook = "https://myproxy.com/"
[vcs.servers.bitbucketcloud.bitbucketcloud.Status]
# Set to true if you don't want CDS to push statuses on the VCS server
disable = false
# Set to true if you don't want CDS to push CDS URL in statuses on the VCS server
showDetail = false at this line https://github.com/ovh/cds/blob/master/contrib/helm/cds/config.toml#L506 with good clientId and clientSecret |
Thanks a lot. Working in that now |
Thanks a lot for the support. I tried many times, linked to bitbucket successfully (as far as I can see in the GUI green message) but I see no repositories in the drop down list: I'm uploading my config file, replaced the credentials with string BTW, After pressing on 'grant access', I'm redirected to a blank page with on line: error logs from api pod: Oded |
Can you send me also the logs from vcs service and elasticsearch service please ? Via https://pastebin.com/ in order to have a better view of your logs :) |
Thanks a lot @bnjjj |
Hi everyone, any update? |
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
Ok I spotted the bug which gives you a 403 Forbidden and force you to indicate the code. But I don't know if it will fix your bug about empty list of repositories because I can't reproduce with a new fresh install on a k8s cluster. BTW it seems your elasticsearch pods are not correctly spawned. Here is the corresponding PR: #4496 |
I have the same issue 3 as OP. I'm running on Windows 10, downloaded binary |
a new release will be available this week to fix this issue |
HI Guys,
Thanks for the new features in version 0.40.0
Although, I can say that I'm having a very hard time to set CDS up no my k8s cluster.
I'll describe my setup steps and point where thing gone wrong:
I have a k8s cluster on aws-eks
Helm, kubectl, tiller and aws cli installed and configured correctly on my Mac
cloned the git repo - https://github.com/ovh/cds.git to my home directory
inside ~/cds, git checkout 0.40.0. Now I'm in release 0.40. 0
in contrib/helm/cds, installed CDS with helm
helm dependency update
helm install --name cds-weka .
Issue 1:
in helm/cds directory, tag values in values.yaml for cds image are 0.39.2, therefore, the installation resulted with older version - 0.39.2. 'app version' in Charts.yaml is also 0.39.2
I deleted the helm installation- 'helm delete cds-weka --purge'
modified values.yaml and Charts.yaml to the correct version -0.40.0
helm dependency update
helm install --name cds-weka .
Now, version 0.40.0 is installed.
added the bitbucketcloud section to config.toml, cluentid and secret and delete api and vcs pods. exactly as written in this guide:
https://ovh.github.io/cds/docs/integrations/bitbucketcloud/
issue 2:
open the cds ui--> enter a project advanced tab--> see no 'bitbucketcloud' in the 'Link to a repository manager' drop-down-list.
I think there's missing documentation for how to enable the service.
Go back to condig.toml- give a name to the 'name' field in 'CDS VCS Settings'- cds-weka-cds-vcs.
kill api and vcs pods
Finally, see bitbucketcloud in project's advanced tab.
Connect to bitbucket--> 'grant access' in the bitbucket redirected page.
Enter the code that is found url to 'validate' field in cds UI
see the message - linked successfully to repository.
now, trying to synchronise my repo list (drop down list) leads to:
issue 3:
the repositories drop down list is empty! authentication to my bitbucket cloud account probably not authorized...
looking at the api pod logs, I see this:
Reading configuration file config.toml 2019-07-02 07:32:36 [INFO] Directory /app/keys has been created 2019-07-02 07:32:36 [INFO] api> Service registered 2019-07-02 07:32:36 [INFO] Starting CDS API Server 0.40.0+cds.9951 2019-07-02 07:32:36 [INFO] Initializing mail driver... 2019-07-02 07:32:36 [INFO] Initializing feature flipping with izanami 2019-07-02 07:32:36 [INFO] Initializing local objectstore... 2019-07-02 07:32:36 [INFO] ObjectStore> Initialize Filesystem driver on directory: /app/artifacts 2019-07-02 07:32:36 [INFO] Initializing database connection... Starting service api 2019-07-02 07:32:36 [INFO] Bootstrapping database... 2019-07-02 07:32:36 [INFO] Initializing redis cache on weka-cds-devops-redis-master:6379... 2019-07-02 07:32:36 [INFO] Initializing HTTP router 2019-07-02 07:32:36 [INFO] Initializing Events broker 2019-07-02 07:32:36 [INFO] api> Stats initialized 2019-07-02 07:32:36 [INFO] Initializing Metrics 2019-07-02 07:32:36 [INFO] api> Metrics initialized 2019-07-02 07:32:36 [INFO] Initializing Authentication driver... 2019-07-02 07:32:36 [INFO] Auth> Initializing driver (local) 2019-07-02 07:32:36 [INFO] Auth> Connecting to session store 2019-07-02 07:32:36 [INFO] Initializing event broker... 2019-07-02 07:32:36 [INFO] Initializing internal routines... 2019-07-02 07:32:36 [INFO] Migration> CleanArtifactBuiltinActions> Already done (status: DONE) 2019-07-02 07:32:36 [INFO] Migration> WorkflowOldStruct> Already done (status: DONE) 2019-07-02 07:32:36 [INFO] Starting GRPC services on :8082 2019-07-02 07:32:36 [INFO] Migration> StageConditions> Already done (status: DONE) 2019-07-02 07:32:36 [INFO] Migration> WorkflowNotification> Already done (status: DONE) 2019-07-02 07:32:36 [INFO] Migration> ActionModelRequirements> Already done (status: DONE) 2019-07-02 07:32:36 [INFO] Starting CDS API HTTP Server on :8081 2019-07-02 07:35:06 [WARN] pprofLabel>recoverWrap>Handle>attachRepositoriesManagerHandler: repository not found (caused by: attachRepositoriesManager> Cannot get repo undefined: pprofLabel>recoverWrap>Handle>attachRepositoriesManagerHandler>RepoByFullname>doJSONRequest: resource not found (caused by: unable to get repo undefined from bitbucketcloud: pprofLabel>recoverWrap>Handle>attachRepositoriesManagerHandler>RepoByFullname>doJSONRequest>DoJSONRequest>doJSONRequest>ErrorWithFallback>NewErrorWithStack: wrong request (from: Unable to perform request on service weka-cds-devops-cds-vcs (vcs)) (caused by: Request Failed))) error_uuid=e9769dc1-9c9b-11e9-bd2e-76f3b50cd5a9 method=POST request_uri=/project/DEVOPTE/repositories_manager/bitbucketcloud/application/devops-test-app/attach?fullname=undefined stack_trace=attachRepositoriesManager> Cannot get repo undefined: pprofLabel>recoverWrap>Handle>attachRepositoriesManagerHandler>RepoByFullname>doJSONRequest: resource not found (caused by: unable to get repo undefined from bitbucketcloud: pprofLabel>recoverWrap>Handle>attachRepositoriesManagerHandler>RepoByFullname>doJSONRequest>DoJSONRequest>doJSONRequest>ErrorWithFallback>NewErrorWithStack: wrong request (from: Unable to perform request on service weka-cds-devops-cds-vcs (vcs)) (caused by: Request Failed)) github.com/ovh/cds/sdk.WrapError /go/src/github.com/ovh/cds/sdk/error.go:732 github.com/ovh/cds/engine/api.(*API).attachRepositoriesManagerHandler.func1 /go/src/github.com/ovh/cds/engine/api/repositories_manager.go:476 github.com/ovh/cds/engine/api.(*Router).Handle.func1 /go/src/github.com/ovh/cds/engine/api/router.go:245 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:1995 github.com/ovh/cds/engine/api.(*Router).recoverWrap.func1 /go/src/github.com/ovh/cds/engine/api/router.go:152 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:1995 github.com/ovh/cds/vendor/github.com/gorilla/handlers.CompressHandlerLevel.func1 /go/src/github.com/ovh/cds/vendor/github.com/gorilla/handlers/compress.go:143 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:1995 github.com/ovh/cds/engine/api.(*Router).pprofLabel.func1 /go/src/github.com/ovh/cds/engine/api/router.go:89 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:1995 github.com/ovh/cds/vendor/github.com/gorilla/mux.(*Router).ServeHTTP /go/src/github.com/ovh/cds/vendor/github.com/gorilla/mux/mux.go:114 net/http.serverHandler.ServeHTTP
I tried many times since then, couldn't fix it.
Please assist guys, thank you for your effort.
The text was updated successfully, but these errors were encountered: