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

Add DirectFsAccess progress encoder #3315

Closed
wants to merge 5 commits into from

Conversation

JCZuurmond
Copy link
Contributor

@JCZuurmond JCZuurmond commented Nov 15, 2024

Changes

Add DirectFsAccessProgressEncoder to add the query problems to the history log for using it in the migration progress

Linked issues

Progresses #3045
Breaks up #3112

Functionality

  • modified existing workflow: table-migration-experimental

Tests

  • modified unit tests
  • modified integration tests

@JCZuurmond JCZuurmond requested a review from a team as a code owner November 15, 2024 12:58
@JCZuurmond JCZuurmond self-assigned this Nov 15, 2024
@JCZuurmond JCZuurmond requested a review from nfx November 15, 2024 12:58
@JCZuurmond JCZuurmond added the feat/migration-progress Issues related to the migration progress workflow label Nov 15, 2024
Copy link

❌ 50/54 passed, 4 failed, 23m44s total

❌ test_workflow_linter_lints_python_wheel_task: databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path' (1m26.942s)
... (skipped 15389 bytes)
 to start...
12:59 DEBUG [tests.integration.conftest] Waiting for clusters to start...
12:59 INFO [databricks.labs.ucx.install] Installing UCX v0.49.1+2020241115125939
12:59 INFO [databricks.labs.ucx.install] Creating ucx schemas...
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-legacy
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
12:59 INFO [databricks.labs.ucx.install] Creating dashboards...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main...
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.c3g9/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 CRITICAL [databricks.labs.blueprint.parallel] All 'installing dashboards' tasks failed!!!
12:59 ERROR [databricks.labs.blueprint.parallel] installing components task failed: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 540, in _create_database_and_dashboards
    Threads.strict("installing dashboards", list(self._get_create_dashboard_tasks()))
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 63, in strict
    raise ManyError(errs)
databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:00 ERROR [databricks.labs.blueprint.parallel] More than half 'installing components' tasks failed: 0% results available (0/2). Took 0:01:08.830320
13:00 INFO [databricks.labs.ucx.install] Deleting UCX v0.49.1+2020241115125939 from https://DATABRICKS_HOST
13:00 INFO [databricks.labs.ucx.install] Deleting inventory database dummy_sxgrt
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1076880262102163, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=312395347825548, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=807996740154707, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=925590035729909, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=35650689701556, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1018096270292092, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=13368999395853, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1106881116419755, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=446206730686467, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=444383711650981, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=582718466178846, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1092576940148237, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=363738726204526, as it is no longer needed
13:01 INFO [databricks.labs.ucx.install] Deleting cluster policy
13:01 INFO [databricks.labs.ucx.install] Deleting secret scope
13:01 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
[gw8] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_running_real_migration_progress_job: databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path' (1m49.131s)
... (skipped 16011 bytes)
rs to start...
12:59 DEBUG [tests.integration.conftest] Waiting for clusters to start...
12:59 INFO [databricks.labs.ucx.install] Installing UCX v0.49.1+2020241115125935
12:59 INFO [databricks.labs.ucx.install] Creating ucx schemas...
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-legacy
12:59 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
12:59 INFO [databricks.labs.ucx.install] Creating dashboards...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
12:59 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
12:59 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main...
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
12:59 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.CpU5/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
12:59 CRITICAL [databricks.labs.blueprint.parallel] All 'installing dashboards' tasks failed!!!
12:59 ERROR [databricks.labs.blueprint.parallel] installing components task failed: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 540, in _create_database_and_dashboards
    Threads.strict("installing dashboards", list(self._get_create_dashboard_tasks()))
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 63, in strict
    raise ManyError(errs)
databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:00 ERROR [databricks.labs.blueprint.parallel] More than half 'installing components' tasks failed: 0% results available (0/2). Took 0:01:09.524587
13:00 INFO [databricks.labs.ucx.install] Deleting UCX v0.49.1+2020241115125935 from https://DATABRICKS_HOST
13:00 INFO [databricks.labs.ucx.install] Deleting inventory database dummy_s8aji
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=715521268835662, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=684083181512841, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=636131715586922, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=960120253169412, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=801367340625140, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=980543925627380, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=517540995195361, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=221876869440708, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=804932824583752, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=555587134664988, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=838310094002855, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=775671861550865, as it is no longer needed
13:00 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=187349583161062, as it is no longer needed
13:00 INFO [databricks.labs.ucx.install] Deleting cluster policy
13:00 INFO [databricks.labs.ucx.install] Deleting secret scope
13:00 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
[gw2] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_fix_dashboard: databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path' (38.705s)
... (skipped 15700 bytes)
s to start...
13:01 DEBUG [tests.integration.conftest] Waiting for clusters to start...
13:01 INFO [databricks.labs.ucx.install] Installing UCX v0.49.1+2020241115130114
13:01 INFO [databricks.labs.ucx.install] Creating ucx schemas...
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-legacy
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
13:01 INFO [databricks.labs.ucx.install] Creating dashboards...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main...
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.jVBl/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 CRITICAL [databricks.labs.blueprint.parallel] All 'installing dashboards' tasks failed!!!
13:01 ERROR [databricks.labs.blueprint.parallel] installing components task failed: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 540, in _create_database_and_dashboards
    Threads.strict("installing dashboards", list(self._get_create_dashboard_tasks()))
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 63, in strict
    raise ManyError(errs)
databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 ERROR [databricks.labs.blueprint.parallel] More than half 'installing components' tasks failed: 0% results available (0/2). Took 0:00:13.130827
13:01 INFO [databricks.labs.ucx.install] Deleting UCX v0.49.1+2020241115130114 from https://DATABRICKS_HOST
13:01 INFO [databricks.labs.ucx.install] Deleting inventory database dummy_ss1iu
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=526627167236747, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=282762206368150, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=121044267027329, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=677886291100862, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=786123208070759, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1004040840363671, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=530512622053709, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=382185488615465, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=432983001566531, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=730921776953190, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=413074782865260, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=819966660505854, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=107330475027183, as it is no longer needed
13:01 INFO [databricks.labs.ucx.install] Deleting cluster policy
13:01 INFO [databricks.labs.ucx.install] Deleting secret scope
13:01 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
[gw0] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python
❌ test_workflow_linter_lints_job_with_wheel_dependency: databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path' (34.312s)
... (skipped 15389 bytes)
 to start...
13:01 DEBUG [tests.integration.conftest] Waiting for clusters to start...
13:01 INFO [databricks.labs.ucx.install] Installing UCX v0.49.1+2020241115130117
13:01 INFO [databricks.labs.ucx.install] Creating ucx schemas...
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-data-reconciliation
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-hiveserde-tables-in-place-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=validate-groups-permissions
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=assessment
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=scan-tables-in-mounts-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=remove-workspace-local-backup-groups
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=failing
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables-in-mounts-experimental
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-tables
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-external-tables-ctas
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migrate-groups-legacy
13:01 INFO [databricks.labs.ucx.installer.workflows] Creating new job configuration for step=migration-progress-experimental
13:01 INFO [databricks.labs.ucx.install] Creating dashboards...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/views...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration...
13:01 DEBUG [databricks.labs.ucx.install] Reading step folder /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main...
13:01 INFO [databricks.labs.ucx.install] Creating dashboard in /home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main...
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/CLOUD_ENV'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/groups'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/migration/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/interactive'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/estimates'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/progress/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 INFO [databricks.labs.ucx.installer.mixins] Fetching warehouse_id from a config
13:01 ERROR [databricks.labs.blueprint.parallel] installing dashboards(PosixPath('/home/runner/work/ucx/ucx/src/databricks/labs/ucx/queries/assessment/main'), parent_path='/Users/0a330eb5-dd51-4d97-b6e4-c474356b1d5d/.HQ9Z/dashboards') task failed: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 653, in _create_dashboard
    dashboard = Dashboards(self._ws).create_dashboard(
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/lsql/dashboards.py", line 1136, in create_dashboard
    sdk_dashboard = self._ws.lakeview.create(
TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 CRITICAL [databricks.labs.blueprint.parallel] All 'installing dashboards' tasks failed!!!
13:01 ERROR [databricks.labs.blueprint.parallel] installing components task failed: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
Traceback (most recent call last):
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 158, in inner
    return func(*args, **kwargs), None
  File "/home/runner/work/ucx/ucx/src/databricks/labs/ucx/install.py", line 540, in _create_database_and_dashboards
    Threads.strict("installing dashboards", list(self._get_create_dashboard_tasks()))
  File "/home/runner/work/ucx/ucx/.venv/lib/python3.10/site-packages/databricks/labs/blueprint/parallel.py", line 63, in strict
    raise ManyError(errs)
databricks.labs.blueprint.parallel.ManyError: Detected 7 failures: TypeError: LakeviewAPI.create() got an unexpected keyword argument 'parent_path'
13:01 ERROR [databricks.labs.blueprint.parallel] More than half 'installing components' tasks failed: 0% results available (0/2). Took 0:00:13.308638
13:01 INFO [databricks.labs.ucx.install] Deleting UCX v0.49.1+2020241115130117 from https://DATABRICKS_HOST
13:01 INFO [databricks.labs.ucx.install] Deleting inventory database dummy_snzp0
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=120683940687435, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=398164710072403, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=961665542824107, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=722816799671032, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=107008320721101, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=422505539412262, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=779666227104008, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=777696088649532, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=179640837659583, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1085844273849856, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=892425840215157, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=743306236712200, as it is no longer needed
13:01 INFO [databricks.labs.ucx.installer.workflows] Removing job_id=1098805096193115, as it is no longer needed
13:01 INFO [databricks.labs.ucx.install] Deleting cluster policy
13:01 INFO [databricks.labs.ucx.install] Deleting secret scope
13:01 INFO [databricks.labs.ucx.install] UnInstalling UCX complete
[gw2] linux -- Python 3.10.15 /home/runner/work/ucx/ucx/.venv/bin/python

Running from acceptance #7376

from databricks.labs.ucx.source_code.directfs_access import DirectFsAccessOwnership


class DirectFsAccessProgressEncoder(ProgressEncoder[DirectFsAccess]):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it belong to a notebook/sql query/dashboard, rather than being it's own top-level entity?

A direct filesystem is by definition a failure as it is not supported in Unity Catalog.
"""
historical = super()._encode_record_as_historical(record)
failure = "Direct filesystem access is not supported in Unity Catalog"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
failure = "Direct filesystem access is not supported in Unity Catalog"
failure = "Direct filesystem access is not supported in Unity Catalog: {record.path}"

and add it to a notebook/view/sql query/dashboard

@JCZuurmond
Copy link
Contributor Author

Closing this PR and moving the logic to become part of business resources like mentioned, see design doc

@JCZuurmond JCZuurmond closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/migration-progress Issues related to the migration progress workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants