Skip to content

[BUG]: refreshing installations on the existing workspace crashes the install for corrupt installations instead of proceeding #1601

@nfx

Description

@nfx

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Do you use Terraform to deploy your infrastructure? (default: no): 
Comma-separated list of databases to migrate. If not specified, we'll use all databases in hive_metastore (default: <ALL>): 
Do you want to trigger assessment job after installation? (default: no): 
19:42:03  INFO [d.l.ucx.install] Fetching installations...
Traceback (most recent call last):
...
line 626, in __call__
    raise ValueError(
ValueError: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method.
The above exception was the direct cause of the following exception:
...
  File ".databricks/labs/ucx/lib/src/databricks/labs/ucx/install.py", line 270, in configure
    return self._configure_new_installation(default_config)
  File "~.databricks/labs/ucx/lib/src/databricks/labs/ucx/install.py", line 295, in _configure_new_installation
    self._check_inventory_database_exists(default_config.inventory_database)
  File "~/.databricks/labs/ucx/lib/src/databricks/labs/ucx/install.py", line 384, in _check_inventory_database_exists
    config = installation.load(WorkspaceConfig)
...
  File "~/.databricks/labs/ucx/state/venv/lib/python3.10/site-packages/databricks/labs/blueprint/installation.py", line 636, in _unmarshal
    return databricks.sdk.core.Config(**inst)  # type: ignore[return-value]
  File "~/.databricks/labs/ucx/state/venv/lib/python3.10/site-packages/databricks/sdk/config.py", line 109, in __init__
    raise ValueError(message) from e
ValueError: default auth: cannot configure default credentials, please check https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication to configure credentials for your preferred authentication method. Config: host=https://~.cloud.databricks.com, token=***, auth_type=runtime. Env: DATABRICKS_HOST, DATABRICKS_TOKEN

Expected Behavior

raise a warning for corrupt installations

Steps To Reproduce

No response

Cloud

AWS

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions