The PDF is not generated when exporting metrics from Aria Operations Plugin in VMware Cloud Director
search cancel

The PDF is not generated when exporting metrics from Aria Operations Plugin in VMware Cloud Director

book

Article ID: 432229

calendar_today

Updated On:

Products

VMware Cloud Director VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • On Aria operation plugin for VMware Cloud Director (VCD), after selecting the metrics for under "Metric Selector", the PDF is not generated.
  • When clicking on "Save as PDF", the following empty screen is displayed and the PDF is not generated.



  • From the har file when the issue occurs, the content-length for the API call below exceeds 200 KB:

    POST https://cloud.example.com/ext-ui/tenant/{tenant name}/ariaops/ui/metricChart.action

Environment

VMware Cloud Director 10.6.x
VMware Aria Operation 8.18.x

Cause

VCD default parameters are responsible for the failure of the API calls with request size exceeding 200 KB.

Resolution

  1. Increase limit for request size for VCD webapp:

    a) SSH VCD primary cell.
    b) Set value to 2MB by running the command below:

    /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.security.request.size_limit -v 2097152

    Result:

    New property being stored: Property "restapi.security.request.size_limit" has value "2097152"

    c) Check the value has been correctly changed by running hte command below:

    /opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n restapi.security.request.size_limit -l

    Result:
    Property "restapi.security.request.size_limit" has value "2097152"


  2. Increase limit for request in server

    a) SSH VCD primary cell.

    b) Take a backup of the file /opt/vmware/vcloud-director/bin/vmware-vcd-cell-common by running the command below:

    cp /opt/vmware/vcloud-director/bin/vmware-vcd-cell-common /opt/vmware/vcloud-director/bin/vmware-vcd-cell-common.back

    c) View the file by running the command below:

    vi /opt/vmware/vcloud-director/bin/vmware-vcd-cell-common

    d) Search for the function setup_java_opts(), it will have a list of VCLOUD_OPTS

    e) Add a new value there "-Dorg.eclipse.jetty.server.Request.maxFormContentSize=10000000". It might look like something below.

        -Djdk.http.auth.tunneling.disabledSchemes="" \
        -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true \
        -Dorg.eclipse.jetty.server.Request.maxFormContentSize=10000000 \
        -XX:-LoopUnswitching \
        -XX:-OmitStackTraceInFastThrow \

f) Restart VCD cells as per documentation Perform an Orderly Shutdown and Startup of Your VMware Cloud Director Appliance Cluster

NOTE: after upgrading VCD, the vmware-vcd-cell-common file is reverted to the default and it is necessary to go through the step 2 again after the upgrade is completed.