{"record":{"id":"ef13c864149f3983","repo":"hashicorp/nomad","slug":"vaultgrace-has-been-deprecated-as-of-nomad-0-11-an","errorCode":null,"errorMessage":"VaultGrace has been deprecated as of Nomad 0.11 and ignored since Vault 0.5. Please remove VaultGrace / vault_grace from template block.","messagePattern":"VaultGrace has been deprecated as of Nomad 0\\.11 and ignored since Vault 0\\.5\\. Please remove VaultGrace / vault_grace from template block\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/structs/structs.go","lineNumber":9026,"sourceCode":"\tif t.Perms != \"\" {\n\t\tif _, err := strconv.ParseUint(t.Perms, 8, 12); err != nil {\n\t\t\t_ = multierror.Append(&mErr, fmt.Errorf(\"Failed to parse %q as octal: %v\", t.Perms, err))\n\t\t}\n\t}\n\n\tif err = t.Wait.Validate(); err != nil {\n\t\t_ = multierror.Append(&mErr, err)\n\t}\n\n\treturn mErr.ErrorOrNil()\n}\n\nfunc (t *Template) Warnings() error {\n\tvar mErr multierror.Error\n\n\t// Deprecation notice for vault_grace\n\tif t.VaultGrace != 0 {\n\t\tmErr.Errors = append(mErr.Errors, fmt.Errorf(\"VaultGrace has been deprecated as of Nomad 0.11 and ignored since Vault 0.5. Please remove VaultGrace / vault_grace from template block.\"))\n\t}\n\n\treturn mErr.ErrorOrNil()\n}\n\n// DiffID fulfills the DiffableWithID interface.\nfunc (t *Template) DiffID() string {\n\treturn t.DestPath\n}\n\n// ChangeScript holds the configuration for the script that is executed if\n// change mode is set to script\ntype ChangeScript struct {\n\t// Command is the full path to the script\n\tCommand string\n\t// Args is a slice of arguments passed to the script\n\tArgs []string\n\t// Timeout is the amount of seconds we wait for the script to finish","sourceCodeStart":9008,"sourceCodeEnd":9044,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/structs/structs.go#L9008-L9044","documentation":"Deprecation warning (not a hard failure) from Template.Warnings: the vault_grace field has been ignored by Vault since v0.5 and is deprecated since Nomad 0.11; its presence indicates stale job spec content.","triggerScenarios":"Thrown at nomad/structs/structs.go:9026 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the vault_grace / VaultGrace field from the template block","Rely on Vault's own lease handling, which needs no grace setting"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}