RHV Image Discrepancies tool fails with KeyError

Solution Verified - Updated -

Issue

  • RHV Image Discrepancies tool reported the below error for a template disk:
Checking storage domain 'Test_Volume03' (storage_doamin_id) from data-center Test, SPM is ABC
    Image 88888888-XXXX-XXXX
        Disk: 5555555-XXX-XXXX
        Attached to VM: Traceback (most recent call last):
    File "/usr/bin/rhv-image-discrepancies", line 418, in <module>
        problems = check_dumps(args.pool_uuid, args.storage_uuid)
    File "/usr/bin/rhv-image-discrepancies", line 376, in check_dumps
        sd_images, db_images, to_vds
    File "/usr/bin/rhv-image-discrepancies", line 305, in report_image_discrepancies
        sd_images
    File "/usr/bin/rhv-image-discrepancies", line 177, in print_img
        vds = to_vds[vm]
    KeyError: 'CentOS8.2-v20200611'

Environment

  • Red Hat Virtualization 4.4 SP1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content