cannot find matching image mappings for image errors after updating image mappings via api
search cancel

cannot find matching image mappings for image errors after updating image mappings via api

book

Article ID: 434885

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • After updating the image mapping via api provisioning fails with a cannot find matching image mappings for image error.
  • During the api update only the image name field has been provided.
  • Manually saving the image in the UI resolves the issue

Environment

Aria Automation 8.x

Cause

The failure is caused by incorrect usage of the api.

While the ui offers a feature to match images by name only when making the request via api you need to specify the image id.

There is no option to leverage the image name matching feature via the /iaas/api/image-profiles api.


Resolution

To resolve the issue ensure to include the image id in the api payload post operation to /iaas/api/image-profiles:

{
    "name": "...",
    "regionId": "...",
    "imageMapping": {
      "RHEL8": {
        "id": "<ImageState-UUID-from-fabric-images-API>",
        "name": "ContentLibrary-LNX / rhel8-golden-image"
      }
    }
  }