hashicorp / faas-nomad

OpenFaaS plugin for Nomad
https://www.openfaas.com
MIT License
254 stars 46 forks source link

Detect the configured DC from nomad or consul agent #51

Closed acornies closed 5 years ago

acornies commented 5 years ago

What are the steps to reproduce this issue?

  1. Deploy faas-nomad and gateway using a nomad/consul DC name other than dc1
  2. In the gateway UI or faas-cli, deploy a function from the store

What happens?

The function tries to deploy to DC dc1 instead of the configured DC from the nomad or consul agent

What were you expecting to happen?

The function is deployed with the agent's configured DC

Any logs, error output, etc?

No nodes were eligible for evaluation
No nodes are available in datacenter dc1

Any other comments?

Adding this issue for tracking, will tackle it shortly.

What versions of software are you using?

Operating System: Ubuntu 1604 x64

OpenFaaS Version: 0.9.3

Nomad Version: 0.8.4

acornies commented 5 years ago

Resolved in v0.3.3