Skip to content

Conversation

@nvazquez
Copy link
Contributor

@nvazquez nvazquez commented Sep 14, 2021

Description

This PR adds a "ovf" prefix check on Vmware template OVF files.

Fixes: #5415

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  • Export template from Vmware, verify sections contain the prefix: "ovf", examples:
    <ovf:File ovf:href="vwlc_harddisk.vmdk" ovf:id="file1" ovf:size="1380352" />
    <ovf:File ovf:href="README-OVF.txt" ovf:id="readme-ovf" ovf:size="8740" />
    <ovf:File ovf:href="C9800-CL-universalk9.17.03.03-vga.iso" ovf:id="C9800-CL-universalk9.17.03.03-vga.iso" ovf:size="1081249792" />
  </ovf:References>
  <ovf:DiskSection>
    <ovf:Info>Virtual disk information</ovf:Info>
    <ovf:Disk ovf:capacity="16" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="293011456" />
  </ovf:DiskSection>
  <ovf:NetworkSection>
    <ovf:Info>The list of logical networks</ovf:Info>
    <ovf:Network ovf:name="GigabitEthernet1">
      <ovf:Description>Device management / service network interface. Connect it to the out of band management network.</ovf:Description>
    </ovf:Network>
  • Register the template as deploy-as-is (Read settings from OVA = true)
  • Register the template as normal template (Read settings from OVA = false)
  • Verify both templates are registered successfully
  • Verify VMs can be created from both templates

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@yadvr
Copy link
Member

yadvr commented Sep 14, 2021

Hi @nvazquez do we know what causes the prefix to be added? Is this due to exporting ovf template from vmware, virtualbox or something else?

@blueorangutan
Copy link

Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1229

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@nvazquez
Copy link
Contributor Author

@rhtyd yes this prefix can be added when exporting a template from Vmware

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1245

@nvazquez
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@nvazquez nvazquez marked this pull request as ready for review September 14, 2021 19:05
@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1251

@nvazquez
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian Build Failed (tid-2045)

@nvazquez
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

Copy link
Member

@yadvr yadvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm needs testing

@DaanHoogland
Copy link
Contributor

Can you add to the How hs this been tested chapter in the description, @nvazquez ?

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@nvazquez
Copy link
Contributor Author

@DaanHoogland I have updated the PR description, please check. Manual tests performed by @NuxRo

@NuxRo
Copy link
Contributor

NuxRo commented Sep 15, 2021

LGTM, cheers @nvazquez

@nvazquez
Copy link
Contributor Author

@blueorangutan test centos7 vmware-67u3

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-2076)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43389 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5448-t2076-vmware-67u3.zip
Smoke tests completed. 89 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@nvazquez nvazquez merged commit 3ca3843 into apache:main Sep 16, 2021
@nvazquez nvazquez deleted the vmwareovfprefix branch February 12, 2022 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to register OVA template when properties are prepend with "ovf:" in the ovf file

6 participants