-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CLI feedback when job cannot be placed because the preferred datacenter is missing #241
Comments
If you look at the agent logs from the nomad leader there may be some more information to help assess. The CLI output is not super verbose. Off the top of my head, though, do you have docker installed on your nodes? If you are running nomad as a non-root user, does nomad have permission to read/write to the docker socket? Something like |
I currently cannot see anything obvious... Nomad was started as root (using your packer image) executed fresh trial
from the leader
From the clients
|
thats the only WARN that I can digest
hence the reason I removed the network : mbits = 10, resource |
Ah, I think you are missing
And you started with this:
I think you will want to start your server nodes like this:
The difference between an agent and a server agent is that the server agent can perform scheduling decisions and tracks the state of your cluster. Non-server agent nodes simply start jobs and keep track of what's running on their host. |
Thanks, the snippet I provided were from both clients, (I realized that a lot of text to try to separate, I will try to use bold text next time to make it clearer ;) ) The good news is that I was able to run the example ! The issue was the datacenter was left to be dc1 While I now have nyc3 registered!
Sorry about the trouble, I guess this goes to show that we need a bit more verbosity on the client side to help identify those quite rookie mistakes :) Something like this would have been helpful
|
Thanks for following up with the solution! We can certainly improve the feedback here. |
Feel free to rename / close for the improvement request. Sent from Outlook on iPhone On Thu, Oct 8, 2015 at 11:27 PM -0700, "Chris Bednarski" [email protected] wrote: Thanks for following up with the solution! We can certainly improve the feedback here. — |
This is fixed by #619 |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
When the datacenter specified in the job spec does not match the region identifiers used by the Nomad cluster, the job says it cannot be placed but does not say why.
We should be able to indicate that the evaluation failed because no matching datacenter can be found.
- @cbednarski
Original issue below.
I am running the digital ocean demo you have under the demo folder.
Created two snapshots using packer for the nomad service and statsite
Created a 3 server cluster for nomad and two clients using
all droplets have 512mb
I even removed the all resource constraint in the example since I do not know the list of capabilities of my nodes (I read about some network speed identification issues)
I looked at the code I couldn't easily find why I would have 0 nodes available.
The text was updated successfully, but these errors were encountered: