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

Fix catalog creation #590

Merged
merged 5 commits into from
Jul 26, 2023
Merged

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Jul 18, 2023

This PR makes sure that the created catalog runs its creation tasks completely, and it is ready to perform operations, such as updating or adding metadata.
This change will be completed in terraform-provider-vcd by removing the function waitForMetadataReadiness, which will become redundant.

Giuseppe Maxia added 3 commits July 18, 2023 22:41
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 21, 2023 08:44
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.

Nice! This feels more natural than the workaround in the Terraform provider.

@Didainius
Copy link
Collaborator

Missing changelog entry

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

I like there are no sleeps in this PR :)

@dataclouder dataclouder merged commit 5fb04fa into vmware:main Jul 26, 2023
dataclouder pushed a commit to dataclouder/go-vcloud-director that referenced this pull request Jul 31, 2023
The creation task may not be available after a recent fix
to catalog creation (PR vmware#590). Accessing the task directly
may lead to a panic. The check is replaced with a more
resilient function call (ResourceComplete)

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
dataclouder added a commit that referenced this pull request Aug 2, 2023
* Fix Test_AdminOrgCreateCatalog
    The creation task may not be available after a recent fix
    to catalog creation (PR #590). Accessing the task directly
    may lead to a panic. The check is replaced with a more
    resilient function call (ResourceComplete)
* Add changelog item
* Fix Test_OrgCreateCatalog
* Avoid infinite loop in Test_VmShutdown

---------

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
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