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

Convert catalog item resource into vApp template #502

Open
dataclouder opened this issue May 7, 2020 · 0 comments
Open

Convert catalog item resource into vApp template #502

dataclouder opened this issue May 7, 2020 · 0 comments

Comments

@dataclouder
Copy link
Contributor

dataclouder commented May 7, 2020

Catalog item is a resource that the VDC provider uses mainly as a place holder for a vApp template.
Its usefulness is mostly as a vApp template.

Problem

The current implementation is a hybrid:

  • it's called catalog_item
  • we upload it as catalog item
  • we retrieve it as catalog item
    However:
  • the metadata is assigned to a vApp template
  • when we need to create a VM, we get the vApp template through the catalog item.

One consequence of this fact is that, when searching for catalog items by filter, we need to use the vApp template data. Although they are related, and one contains the other, the creation date of the catalog item and the creation date of the vApp template usually differ by a few hundred milliseconds. And, as, mentioned above, the metadata is only assigned to the vApp template.

Proposed solutions

Add a vApp template resource and deprecate catalog item. We will deal directly with vApp templates, and ignore catalog item and its quirks.
Every time we reference a catalog item in other resources, we will deal with a vApp template instead.

cc: @lvirbalas @Didainius @vbauzysvmware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants