Skip to content

vmware_export_ovf generates duplicate entries in OVF manifest file (.mf) #2393

Open
@Hippakaveri

Description

@Hippakaveri
SUMMARY

When using the community.vmware.vmware_export_ovf module to export an OVF file, the generated manifest file (.mf) contains duplicate entries for each referenced file. Each file (e.g., .iso, .vmdk, .nvram, .ovf) appears twice with identical SHA256 checksums, like the following:

SHA256(<image_name>.iso)= ...***...
SHA256(<image_name>.vmdk)= ...***...
SHA256(<image_name>.nvram)= ...***...
SHA256(<image_name>.ovf)= ...***...
SHA256(<image_name>.iso)= ...***...
SHA256(<image_name>.vmdk)= ...***...
SHA256(<image_name>.nvram)= ...***...
SHA256(<image_name>.ovf)=...***...

Each file should appear only once in the manifest file with its corresponding SHA256 checksum.
Like they are when manually exporting ovf from either esxi or vcenter directly.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.vmware.vmware_export_ovf

ANSIBLE VERSION
ansible [core 2.17.8]
COLLECTION VERSION
community.vmware 5.6.0  

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE

Just run the module

- community.vmware.vmware_export_ovf:
    hostname: '{{esxi_host}}'
    username: '{{esxi_username}}'
    password: '{{esxi_password}}'
    name: "{{vm_name}}"
    export_with_images: true
    validate_certs: false
    export_dir: "{{export_path}}"
  delegate_to: localhost
EXPECTED RESULTS

Each file should appear only once in the manifest file with its corresponding SHA256 checksum.
Like they are when manually exporting ovf from either esxi or vcenter directly.

ACTUAL RESULTS

When using the community.vmware.vmware_export_ovf module to export an OVF file, the generated manifest file (.mf) contains duplicate entries for each referenced file.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions