ops-cli.py import of a dashboard to all users hangs for hours or indefinitely
search cancel

ops-cli.py import of a dashboard to all users hangs for hours or indefinitely

book

Article ID: 409553

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Attempting to import a dashboard using the ops-cli.py command
    $VMWARE_PYTHON_3_BIN '/usr/lib/vmware-vcops/tools/opscli/ops-cli.py' 'dashboard' 'import' all '/tmp/dashboard.zip' '--force'

    results in the process hanging indefinitely or for multiple hours.

Environment

VMware Aria Operations 8.x

Cause

Importing the dashboard to all users leads to stuck threads in the internal Gemfire process resulting in long delays before command completion.

Resolution

Use the Content Import feature to import the dashboard

  1. Log in to the Aria Operations UI and navigate to Administration > Control Panel > Content Management > Import
  2. Click BROWSE and locate the exported dashboard zip file
  3. Select the desired behavior In case of conflict and click IMPORT

Use the REST API to import the dashboard

  1. Log in to the Aria Operations UI and navigate to Home > Launchpad > Developer Center then click API documentation in the API tile
  2. Expand Content Management
  3. Expand POST /api/content/operations/import
  4. Follow the instructions to upload and import the exported dashboard zip file

Use ops-cli.py to import the dashboard to a single user and then share it with all users

  1. SCP copy the dashboard zip file to the /tmp directory of the primary node
  2. Log in to the primary node as root via SSH
  3. Import the dashboard as admin and share with all users
    $VMWARE_PYTHON_3_BIN /usr/lib/vmware-vcops/tools/opscli/ops-cli.py dashboard import admin /tmp/dashboard.zip --force --share Everyone

Additional Information