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

vcsim: add vslm VStorageObjectManager (aka FCD Global Catalog) support #3676

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

dougm
Copy link
Member

@dougm dougm commented Jan 13, 2025

govc: make datastore (-ds flag) optional in (most) disk commands

Fixes #2542

govc: make datastore (-ds flag) optional in (most) disk commands

Fixes vmware#2542

Signed-off-by: Doug MacEachern <[email protected]>
Copy link
Member

@akutz akutz left a comment

Choose a reason for hiding this comment

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

Lgtm @dougm , thank you!

vslmtypes "github.com/vmware/govmomi/vslm/types"
)

// Manager provides a layer for switching between Virtual Storage Object Manager (VSOM)
Copy link
Member

Choose a reason for hiding this comment

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

This is a really helpful comment, thanks @dougm !

}

func (m *Manager) initGlobalManager(ctx context.Context) error {
if m.GlobalObjectManager == nil {
Copy link
Member

Choose a reason for hiding this comment

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

Should this use sync.Once anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

Might just get rid of this deferred initGlobalManager in the follow up to add metadata and query support. Instead will always create vslm.NewClient in NewManager, unless we're connected directly to ESX.
Also, only consumer of this disk.Manager is govc. I think most applications should directly just use vslm.Client against vCenter. Maybe we do the same in govc at some point and this Manager goes away completely.

@dougm dougm merged commit d7fe78d into vmware:main Jan 14, 2025
11 checks passed
@dougm dougm deleted the vcsim-vslm branch January 14, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vcsim does not handle VSLM GlobalObjectManager methods
2 participants