Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Vapp from template or from other vApp #588

Merged
merged 15 commits into from
Jul 14, 2023

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Jul 11, 2023

Addresses Issue #741

Adds methods:

  • vdc.CreateVappFromTemplate
  • vdc.CloneVapp
  • vapp.DiscardSuspendedState

Testing

Using test_resources/vapp_with_3_vms.ova, make a vApp template named three-vms in the main NSX-T catalog (cat-{ORG_NAME}-nsxt-backed).

Run go test -v -tags vapp -check.f TestVappfromTemplateAndClone

Giuseppe Maxia added 5 commits July 11, 2023 18:31
* Wrong implementation (PUT instead of POST)
* Wrong result (returns a task instead of a vApp)

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Giuseppe Maxia added 4 commits July 12, 2023 08:42
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder marked this pull request as ready for review July 13, 2023 03:26
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
govcd/vapp_clone_test.go Outdated Show resolved Hide resolved
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM, tests passed in latest VCD

govcd/vapp.go Show resolved Hide resolved
govcd/vapptemplate.go Show resolved Hide resolved
Giuseppe Maxia added 3 commits July 13, 2023 12:36
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

I didn't run tests, but read it through, which looks to be quite straightforward (like nothing else VM related :)

govcd/vdc.go Outdated Show resolved Hide resolved
govcd/vdc.go Outdated Show resolved Hide resolved
govcd/vdc.go Outdated Show resolved Hide resolved
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder merged commit 17eb29e into vmware:main Jul 14, 2023
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.

6 participants