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

Databricks CLI v0.232.0 databricks bundle deploy fails #1867

Closed
sassai opened this issue Oct 30, 2024 · 6 comments · Fixed by #1866
Closed

Databricks CLI v0.232.0 databricks bundle deploy fails #1867

sassai opened this issue Oct 30, 2024 · 6 comments · Fixed by #1866
Assignees
Labels
Bug Something isn't working DABs DABs related issues

Comments

@sassai
Copy link

sassai commented Oct 30, 2024

Describe the issue

databricks bundle deploy -t dev fails with Error: Path (/Shared/bundle/<redacted>/dev/resources) doesn't exist.

With v0.231.0 the deployment was successful.

Steps to reproduce the behavior

  1. Set workspace.root_path in databricks.yml to /Shared/bundle/${bundle.name}/${bundle.target}
  2. Run databricks databricks bundle deploy -t dev
  3. See error

With the default target the deployment is successful, though.

Expected Behavior

Bundle deployment is successful with each target

Actual Behavior

Bundle deployment fails with error

Uploading bundle files to /Workspace/Shared/bundle/<redacted>/dev/files...
Error: Path (/Shared/bundle/<redacted>/dev/resources) doesn't exist.

databricks.yml

---
bundle:
  name: "<redacted>"

include:
  - "resources/*.yml"


targets:
  own:
    mode: "development"
    default: "true"
    workspace:
      host: "https://adb-<redacted>.azuredatabricks.net"
    variables:
      url: "abfss://<redacted>@<redacted>.dfs.core.windows.net"
      catalog: "<redacted>"
      metadata_catalog: "<redacted>"
      config_dir: "${workspace.file_path}/sql"
      service_principal_group: "<redacted>"
    run_as:
      user_name: "${workspace.current_user.userName}"
    sync:
      include:
        - "sql/"


  dev:
    mode: "production"
    workspace:
      host: "https://adb-<redacted>.azuredatabricks.net"
      root_path: "/Shared/bundle/${bundle.name}/${bundle.target}"
    variables:
      url: "abfss://<redacted>@<redacted>.dfs.core.windows.net"
      catalog: "<redacted>"
      metadata_catalog: "<redacted>"
      config_dir: "${workspace.file_path}/sql"
      service_principal_group: "<redacted>"
    run_as:
      service_principal_name: "<redacted>"
    permissions:
      - level: "CAN_MANAGE"
        service_principal_name: "<redacted>"
      - level: "CAN_RUN"
        group_name: "<redacted>"
    sync:
      include:
        - "sql/"

OS and CLI version

Databricks CLI v.0.232.0 (Linux and Windows)

Is this a regression?

Yes, with v.0.231.0 everything was fine

@sassai sassai added the CLI CLI related issues label Oct 30, 2024
@pietern
Copy link
Contributor

pietern commented Oct 30, 2024

Thanks for reporting. We're working on a fix and patch release to address this.

In the meantime, you can workaround the issue by prefixing your root_path setting with /Workspace, such that it looks like /Workspace/Shared/....

@andrewnester andrewnester added Bug Something isn't working DABs DABs related issues and removed CLI CLI related issues labels Oct 30, 2024
@andrewnester andrewnester self-assigned this Oct 30, 2024
github-merge-queue bot pushed a commit that referenced this issue Oct 30, 2024
## Changes
`/Workspace` prefix needs to be added to `resource_path` as well.

Fixes the issue mentioned here:
#1822 (comment)

Fixes #1867 

## Tests
Added regression test
@pietern
Copy link
Contributor

pietern commented Oct 30, 2024

GitHub auto-closed this issue because the fix is on the main branch.

We're now working on getting it out as a patch release v0.232.1.

@pietern pietern reopened this Oct 30, 2024
@pietern
Copy link
Contributor

pietern commented Oct 30, 2024

Re-opening to keep this at the top of the issue list.

@sassai
Copy link
Author

sassai commented Oct 30, 2024

Thanks for the quick response and fix!

@andrewnester
Copy link
Contributor

andrewnester commented Oct 30, 2024

@sassai the patch release containing the fix (0.232.1) was just released, please give it a try

@sassai
Copy link
Author

sassai commented Oct 30, 2024

@andrewnester I can confirm that it's working again as expected! Thanks again for the quick response and fix!

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

Successfully merging a pull request may close this issue.

3 participants