Skip to content
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

skaffold dev not working with bazel artifact and helm deployment #961

Closed
enriched opened this issue Sep 7, 2018 · 6 comments
Closed

skaffold dev not working with bazel artifact and helm deployment #961

enriched opened this issue Sep 7, 2018 · 6 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@enriched
Copy link

enriched commented Sep 7, 2018

Expected behavior

Running skaffold dev with bazel artifact and helm deploy works.

Actual

Running skaffold dev produces:

Cleaning up...
Error: release: "my-service" not found
Cleanup complete in 170.72637ms
FATA[0000] watching files for deployer: listing files: unable to stat file : stat : no such file or directory

Information

  • Skaffold version: v0.13.0
  • Operating system: macOS 10.13.6
  • Contents of skaffold.yaml:
apiVersion: skaffold/v1alpha2
kind: Config
build:
  artifacts:
    - imageName: my.repo.com/my-service
      workspace: .
      bazel:
        target: //services/my-service:image.tar
  local: {}
deploy:
  helm:
    releases:
      - name: my-service
        chartPath: helm/my-service

Steps to reproduce the behavior

  1. Pull example here
  2. run skaffold deploy
  3. run skaffold dev
@bryanlarsen
Copy link
Contributor

bryanlarsen commented Sep 10, 2018

Same problem exists using the helm-deployment example repo in the skaffold repository.

@dgageot dgageot self-assigned this Sep 11, 2018
@dgageot dgageot added the kind/bug Something isn't working label Sep 11, 2018
@dgageot
Copy link
Contributor

dgageot commented Sep 11, 2018

@enriched @bryanlarsen I couldn't reproduce this issue on the helm-deployment example repo, not could I reproduce on Intelight/bazel-javascript

Could you also paste the full output of running skaffold dev?

@enriched
Copy link
Author

This is what shows up when I run skaffold dev

Cleaning up...
Error: release: "my-service" not found
Cleanup complete in 170.72637ms
FATA[0000] watching files for deployer: listing files: unable to stat file : stat : no such file or directory

@dgageot
Copy link
Contributor

dgageot commented Sep 11, 2018 via email

@enriched
Copy link
Author

With skaffold dev -v debug:

INFO[0000] Skaffold &{Version:v0.13.0 GitVersion: GitCommit:3cfdf8901c0b2057c2f6cc1331462ad329cd7e2b GitTreeState:clean BuildDate:2018-09-03T03:14:46Z GoVersion:go1.11 Compiler:gc Platform:darwin/amd64}
INFO[0000] Using kubectl context: docker-for-desktop
DEBU[0000] Using builder: local
DEBU[0000] skipPush value not present. defaulting to cluster default true (minikube=true, d4d=true, gke=false)
DEBU[0000] Running command: [bazel query kind('source file', deps('//services/my-service:image.tar')) union buildfiles('//services/my-service:image.tar') --noimplicit_deps --order_output=no]
DEBU[0002] Command output: stdout //:yarn.lock
//:package.json
@node_alpine_image//image:002.tar.gz
//services/my-service/server:server.ts
@node_alpine_image//image:config.json
@node_alpine_image//image:000.tar.gz
@node_alpine_image//image:001.tar.gz
//:tsconfig.json
//libs/shared-package:greeter.ts
@io_bazel_rules_docker//container:push.bzl
@io_bazel_rules_docker//skylib:filetype.bzl
@bazel_tools//tools/build_defs/repo:http.bzl
@io_bazel_rules_docker//container:BUILD
@io_bazel_rules_docker//skylib:zip.bzl
@io_bazel_rules_docker//container:layer.bzl
@bazel_tools//tools/build_defs/hash:hash.bzl
@io_bazel_rules_docker//container:load.bzl
//services/my-service:BUILD.bazel
@bazel_tools//tools/build_defs/repo:BUILD
@io_bazel_rules_docker//container:bundle.bzl
@io_bazel_rules_docker//skylib:BUILD
@bazel_tools//tools/build_defs/repo:utils.bzl
@io_bazel_rules_docker//container:container.bzl
@io_bazel_rules_docker//container:layer_tools.bzl
@io_bazel_rules_docker//container:pull.bzl
@io_bazel_rules_docker//container:providers.bzl
@io_bazel_rules_docker//skylib:serialize.bzl
@io_bazel_rules_docker//skylib:path.bzl
@io_bazel_rules_docker//container:flatten.bzl
@io_bazel_rules_docker//skylib:label.bzl
@io_bazel_rules_docker//container:image.bzl
@io_bazel_rules_docker//container:import.bzl
@bazel_tools//tools/build_defs/hash:BUILD
, stderr: Starting local Bazel server and connecting to it...

INFO[0002] Using kubectl context: docker-for-desktop
DEBU[0002] Using builder: local
DEBU[0002] skipPush value not present. defaulting to cluster default true (minikube=true, d4d=true, gke=false)
Cleaning up...
DEBU[0002] Executing template &{envTemplate 0xc0002a0300 0xc0002fedc0  } with environment map[HOME:/Users/rich PATH:/Users/rich/bin/google-cloud-sdk/bin:/Users/rich/.pyenv/shims:/Users/rich/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/users/rich/golang/bin:/Users/rich/bin:/usr/local/opt/python@2/bin SSH_AUTH_SOCK:/private/tmp/com.apple.launchd.Wb1nB5YMDa/Listeners TMPDIR:/var/folders/x6/2f1dxr313d3c3ktlxbpmjcs00000gn/T/ GOPATH:/Users/rich/golang EDITOR:vim PYENV_SHELL:fish SECURITYSESSIONID:186a7 COLORTERM:truecolor SHELL:/usr/local/bin/fish LOGNAME:rich NPM_TOKEN:a6402c3d-a5bd-464e-853e-da16857314a9 SHLVL:1 TERM_PROGRAM_VERSION:3.2.0 __CF_USER_TEXT_ENCODING:0x0:0:0 ITERM_PROFILE:Default PWD:/Users/rich/dev/bazel-javascript/examples/node-typescript-app COLORFGBG:7;0 VISUAL:vim XPC_FLAGS:0x0 TERM_SESSION_ID:w0t4p0:EFA29A60-DAA3-4D18-ADD7-F47891841093 ITERM_SESSION_ID:w0t4p0:EFA29A60-DAA3-4D18-ADD7-F47891841093 LANG:en_US.UTF-8 USER:rich Apple_PubSub_Socket_Render:/private/tmp/com.apple.launchd.kBfGRCBR9E/Render TERM:xterm-256color TERM_PROGRAM:iTerm.app XPC_SERVICE_NAME:0 PYENV_ROOT:/Users/rich/.pyenv]
DEBU[0002] Running command: [helm --kube-context docker-for-desktop delete my-service --purge]
Error: release: "my-service" not found
DEBU[0002] deleting release my-service: exit status 1

Cleanup complete in 196.249493ms
FATA[0002] watching files for deployer: listing files: unable to stat file : stat : no such file or directory

@enriched
Copy link
Author

Based on what I saw in #930 I added in a valuesFilePath in the helm release and that seems to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants