Job is in nonexistent namespace "isolation"

Hello,

What does job is in nonexistent namespace "isolation" mean?
I’m using Terraform (Cloud) to manage updates to Nomad jobs. The terraform provider returns error applying jobspec: Unexpected response code: 500 (job "redacted" is in nonexistent namespace "isolation"). I’ve checked both the Terraform state and the Nomad job definition in the Nomad UI and both mention the "default" namespace.

Thanks.

Hi @cezarmathe,

That does seem a little odd. Would you be able to share the (redacted) jobspec you are using and any other useful details?

Thanks,
jrasell and the Nomad team

Exact same issue. We’re running on v1.1.4+ent (old, so admittedly that’s potentially a cause, but terraform CLI on the same version as cloud works fine)

job "" {
	type = "service"
	region = "${region}"
	datacenters = ["${cluster}"]
	priority = 100

	spread  { 
		attribute = "$${meta.role}"
		weight = 33
	}

	group "Task Runtimes" {
		meta {
			version = "0.0.3"
			location = "ca"
		}

		update {
			min_healthy_time = "10s"
			healthy_deadline = "200s"
			progress_deadline = 0
			auto_revert = false
		}		

		reschedule {
			delay = "5s"
			delay_function = "fibonacci"
			max_delay = "50s"
			unlimited = true
		}

		restart {
			interval = "5s"
			attempts = 1
			delay    = "5s"
			mode     = "delay"
		}

		count = ${count}
		
		task "tower" {
			vault {
				policies = [""]
			}
			driver = "docker"
			resources {
				memory = ${memory}
				cpu = ${cpu}
			}
			config {
				image = 
				auth {

				}
				network_mode = "host"
				force_pull = true
			}
			template {
				data = <<EOH

EOH
				destination = "secrets/"
				change_mode = "noop"
				env = true
			}
            template {
				data = <<EOH

EOH
				destination = "secrets/"
				change_mode = "noop"
			}
		}
	}
}