Automation

 View Only

Using Import-LcmClusterDesiredState to update config/json in a cluster is not working

  • 1.  Using Import-LcmClusterDesiredState to update config/json in a cluster is not working

    Posted 11 days ago

    Hi Folks,

    I've created a script to apply the json configuration from a "Golden Master" cluster to a bunch of other clusters. Using Import-LcmClusterDesiredState on a cluster for the first seems to be fine but once a newer json is available and I would like to update the configuration of the cluster I'm getting the following error:

    Import-LcmClusterDesiredState: 26.11.2024 10:34:36      Import-LcmClusterDesiredState           com.vmware.vapi.std.errors.internal_server_error {'messages': [com.vmware.vapi.std.localizable_message {'id': vapi.bindings.method.impl.unexpected, 'default_message': Unexpected error for method: import_software_spec -> com.vmware.vapi.std.errors.already_exists, 'args': [import_software_spec, com.vmware.vapi.std.errors.already_exists], 'params': , 'localized':}, com.vmware.vapi.std.localizable_message {'id': com.vmware.vcIntegrity.lifecycle.drafts.AlreadyExists, 'default_message': Record already exists., 'args': [], 'params': , 'localized':}], 'data': , 'error_type': INTERNAL_SERVER_ERROR}

    I wasn't able to find any "Update-LcmClusterDesiredState" or switches for Import-LcmClusterDesiredState to update or force the json to apply.

    Any help/hin is appreciated. Updating all the clusters by hand is very annoying. ;)