sastre icon indicating copy to clipboard operation
sastre copied to clipboard

Backup/Restore tasks fail for configuration groups

Open tzarski0 opened this issue 2 years ago • 2 comments

  1. On test vManage go to Workflows -> Create Configuration Group and follow the workflow to create test config group.
  2. Run: sdwan --verbose backup all --workdir test
  3. Run: sdwan --verbose delete all
  4. Run: sdwan --verbose restore all --workdir test

The command will fail with: ERROR: Failed: Create SDWAN transport profile test_WAN: 4 validation errors for ProfileParcelModel payload -> data field required (type=value_error.missing) subparcels -> 0 -> payload -> data field required (type=value_error.missing) subparcels -> 1 -> payload -> data field required (type=value_error.missing) subparcels -> 2 -> payload -> data field required (type=value_error.missing) ERROR: Failed: Create SDWAN service profile test_LAN: 2 validation errors for ProfileParcelModel payload -> data field required (type=value_error.missing) subparcels -> 0 -> payload -> data field required (type=value_error.missing) ERROR: Failed: Create SDWAN system profile test_Basic: 1 validation error for ProfileParcelModel payload -> data field required (type=value_error.missing) INFO: Done: Create configuration group test INFO: Task completed with caveats: 3 errors

tzarski0 avatar Jan 27 '24 18:01 tzarski0

Hi, thanks for reporting this and the PR. On which vManage release did you encounter this issue?

reismarcelo avatar Jan 29 '24 15:01 reismarcelo

Hi @reismarcelo, the PR is for a different issue. I tested this issue on 20.12.2 and 20.13.1 and it fails on both. I think problem is with backup task. When I see the JSON output of backup in feature profile, I see in the payload that "name" and "description" is present, but "data" field is missing.

tzarski0 avatar Jan 29 '24 17:01 tzarski0

Fixed in dev-1.24

reismarcelo avatar Jun 03 '24 03:06 reismarcelo