when I try to plan the nomad-pack that I have created locally into the aws sever, I have facing this issue:
! Failed To Perform Plan
Error: No path to region
Type: *v1.APIError
Nomad sever members result:
Name Address Port Status Leader Protocol Build Datacenter Region
ip-10-0-22-200.eu-west-2 10.0.22.200 4648 alive true 2 1.2.6 aws-eu-west-2-blockchain eu-west-2
so Iam exporting export NOMAD_REGION=“eu-west-2”,then also I am facing no path to region erro,can someone help me out for this issue
Hi @dinesh-ngpws, what version of nomad-pack are you currently using? I would suggest using the most recent nightly build which includes an updated OpenAPI Nomad client and support for all standard NOMAD_
env vars.
Thanks,
jrasell and the Nomad team
hi @jrasell Thanks for the response…
I found the root cause for this issue…
variable “region” {
description = “The region where jobs will be deployed”
type = string
default = " eu-west-2"
}
If there is white space in the region vairable name
iam getting ! Failed To Perform Plan
Error: No path to region
Type: *v1.APIError
After I removed the white space
variable “region” {
description = “The region where jobs will be deployed”
type = string
default = “eu-west-2”
}
Then the export the NOMAD_REGION and gave the commad nomad-pack plan .
It success deployed