Skip to content

Instantly share code, notes, and snippets.

@mserranom
Created March 18, 2020 10:14
Show Gist options
  • Save mserranom/1dc3b8aae5c40c6568e7a39539235257 to your computer and use it in GitHub Desktop.
Save mserranom/1dc3b8aae5c40c6568e7a39539235257 to your computer and use it in GitHub Desktop.
rake deploy:app[staging,tpdsworker,master,latest]
$ rake deploy:app[staging,tpdsworker,master,latest]    master
Looking for builds for tpdsworker/master:462e477 (Merge pull request #28 from overleaf/msm-update-deps)
Deploying tpdsworker:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9 to staging project ol-stag with gcloud tpdsworker
k8 cluster not set
setting tpdsworker app to use ol-gke-02
Secrets tpdsworker-secrets not changed
No change to ./kubernetes/secrets/staging/tpdsworker/redis-labs-tpdsworker-ssl.yaml
Old image: gcr.io/overleaf-ops/tpdsworker:master-2de9781_4acee9a9-8bbb-4124-a45e-029e5f16ed2a -> New image: gcr.io/overleaf-ops/tpdsworker:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9
Notifying slack channel #overleaf-deploys: "miguel: Deploying tpdsworker in staging"
gcloud --project ol-stag deployment-manager deployments update tpdsworker --template ./kubernetes/apps/tpdsworker/tpdsworker.jinja --properties=image:gcr.io/overleaf-ops/tpdsworker:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9,deployment:overleaf-staging,shortenv:stag,longenv:staging,project:ol-stag,region:us-east1,cluster:ol-gke-02,subnet:projects/ol-vpc-stag/regions/us-east1/subnetworks/ol-snet02-net01,build_version:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9,site_open:true,deployment_phase:full-deployment,web_svc_closed:,replicas:1,enable_debug_agent:false,enable_profile_agent:false,enable_trace_agent:false,deployed_at:2020-03-18T10:10:33Z,filestore-clusterIP:172.28.11.203,docstore-clusterIP:172.28.25.170,tpds-clusterIP:172.28.27.148,web-api-clusterIP:172.28.19.53,
The fingerprint of the deployment is qoaTyEi-hDZM0xdvOj_XVg==
Waiting for update [operation-1584526239502-5a11e43a49037-8d6a9517-fcca528d]...failed.
ERROR: (gcloud.deployment-manager.deployments.update) Error in Operation [operation-1584526239502-5a11e43a49037-8d6a9517-fcca528d]: errors:
- code: DESCRIPTOR_URL_FETCH_ERROR
location: /typeProviders/overleaf-staging-ol-gke-02-type-apps->$.descriptorUrl
message: "{\"originalResponse\":\"{\\\"paths\\\":[\\\"/apis\\\",\\\"/apis/\\\",\\\
\"/apis/apiextensions.k8s.io\\\",\\\"/apis/apiextensions.k8s.io/v1beta1\\\",\\\
\"/healthz\\\",\\\"/healthz/etcd\\\",\\\"/healthz/log\\\",\\\"/healthz/ping\\\"\
,\\\"/healthz/poststarthook/crd-informer-synced\\\",\\\"/healthz/poststarthook/generic-apiserver-start-informers\\\
\",\\\"/healthz/poststarthook/start-apiextensions-controllers\\\",\\\"/healthz/poststarthook/start-apiextensions-informers\\\
\",\\\"/metrics\\\",\\\"/openapi/v2\\\",\\\"/version\\\"]}\",\"reason\":\"The\
\ descriptor url 'https://35.231.142.169/swaggerapi/apis/apps/v1' for type provider\
\ 'overleaf-staging-ol-gke-02-type-apps' could not be fetched.\"}"
rake aborted!
Command failed with status (1): [gcloud --project ol-stag deployment-manage...]
/Users/miguel/workspace/dev-environment/google-ops/lib/cli_wrapper.rb:190:in `live_cmd'
/Users/miguel/workspace/dev-environment/google-ops/lib/k8_deployment.rb:441:in `deploy_k8_app'
/Users/miguel/workspace/dev-environment/google-ops/lib/k8_deployment.rb:143:in `smart_deploy'
/Users/miguel/workspace/dev-environment/google-ops/rakefile.rb:729:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
/usr/local/opt/ruby/bin/bundle:23:in `load'
/usr/local/opt/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => deploy:app
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment