Having issues provisioning a new VDB? Getting unexpected output error (see attached). It looks like it's how I am returning values but cannot figure out why? I removed everything down to the basic where it was just returning things and still errored? I looked at online documentation but it's a bit confusing. So I'm not sure if I just have my input parms reversed, or incorrect output parms? I've tried numerous combinations but keep getting the same error.
The online documentation for First Plugin shows 'configure_new_vdb(virtual_source, snapshot, repository). I do not see this documented under plugin operations?
Under plugin operations I see Signature 'def configure(virtual_source, snapshot, repository)' but then in it's example I see 'def configure(virtual_source, repository, snapshot)'? I see snapshot and repository reversed throughout the various calls which is confusing and likely to cause issues down the road.
Questions:
- Where are all the possible definitions for each plugin defined? And where/when to use configure_new_vdb versus configure? Which should I use if I want to make changes after mounting? I assume configure, but it's unclear then what configure_new_vdb is for? I assume reconfigure is for existing vdb's, what about when creating new?
- What are the correct input parms for configure()? Doco is inconsistent.
https://developer.delphix.com/References/Plugin_Operations/#virtual-source-configure
- Any other insight as to what my problem may be?
Tried:@plugin.virtual.configure()
def configure_new_vdb(virtual_source, snapshot, repository):
mount_location=virtual_source.parameters.mount_location
name = "VDB mounted at {}".format(mount_location)
return SourceConfigDefinition(path=mount_location, name=name)
@plugin.virtual.reconfigure()
def reconfigure_existing_vdb(virtual_source, repository, source_config, snapshot):
return source_config
Also tried:@plugin.virtual.configure()
def configure (virtual_source, repository, snapshot):
source_config = SourceConfigDefinition()
return source_config
@plugin.virtual.reconfigure()
def reconfigure_existing_vdb(virtual_source, repository, snapshot):
return source_config
Thanks!
------------------------------
Paul Jauquet
Senior Data Services Consultant
Axis Technology, LLC
------------------------------