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

Update vdc storage profiles #393

Merged
merged 14 commits into from
Aug 6, 2021

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Jul 27, 2021

Fixes Issue #648 "adding a storage profile requires the VDC to be replaced"

Ancillary problems related to issue fix:

  • The search for storage profiles was faulty: it does not work at all for name "*";
  • The search could return a storage profile from a Provider VDC different from the one we were using to create the VDC.

Added methods:

  • AdminVdc.AddStorageProfile
  • AdminVdc.AddStorageProfileWait
  • AdminVdc.RemoveStorageProfile
  • AdminVdc.RemoveStorageProfileWait
  • AdminVdc.SetDefaultStorageProfile
  • AdminVdc.GetDefaultStorageProfileReference
  • VCDClient.GetStorageProfileByHref
  • Client.GetStorageProfileByHref
  • VCDClient.QueryProviderVdcStorageProfileByName
  • ClientQueryAllProviderVdcStorageProfiles`
  • Client.QueryProviderVdcStorageProfiles

Giuseppe Maxia added 6 commits July 27, 2021 09:27
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>
The deletiomn should wait for a task completion, but the previous
implementation didn't

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder marked this pull request as draft July 27, 2021 07:50
@dataclouder dataclouder marked this pull request as ready for review July 28, 2021 08:21
Giuseppe Maxia added 3 commits July 28, 2021 10:35
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 requested a review from vbauzys July 28, 2021 10:28
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
.changes/v2.13.0/393-features.md Outdated Show resolved Hide resolved
govcd/adminvdc.go Outdated Show resolved Hide resolved
govcd/adminvdc.go Outdated Show resolved Hide resolved
govcd/adminvdc.go Outdated Show resolved Hide resolved
govcd/adminvdc.go Show resolved Hide resolved
govcd/system.go Show resolved Hide resolved
govcd/system.go Outdated Show resolved Hide resolved
Also, fix bug in QueryProviderVdcStorageProfileByName

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.

Neat! Only polishes in review.

govcd/adminvdc.go Outdated Show resolved Hide resolved
govcd/adminvdc.go Outdated Show resolved Hide resolved
Giuseppe Maxia added 2 commits July 29, 2021 11:15
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder merged commit a7edcad into vmware:master Aug 6, 2021
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.

5 participants