Skip to content
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

nomad 0.4.1 can't got server members from nomad server 0.5 #1976

Closed
kak-tus opened this issue Nov 10, 2016 · 5 comments
Closed

nomad 0.4.1 can't got server members from nomad server 0.5 #1976

kak-tus opened this issue Nov 10, 2016 · 5 comments

Comments

@kak-tus
Copy link

kak-tus commented Nov 10, 2016

Nomad version

Client 0.4.1
Server v0.5.0-rc2 ('019e2442cc3ddccfa9cd485a41f2f6564f122c71+CHANGES')

Operating system and Environment details

Ubuntu server 16.04

Issue

I've updated nomad server on one node to 0.5.
After that my local nomad client 0.4.1 can't get server-members info from 0.5 nomad server, but can get it from 0.4.1 server.
And local nomad client 0.5 gets server-members info without problems from both versions of nomad server.

Reproduction steps

  1. Update nomad server to 0.5 on one cluster node.
  2. Try to get server-members from this node.

Nomad Server logs (if appropriate)

Nomad Client logs (if appropriate)

0.4.1

$ nomad server-members
Error querying servers: json: cannot unmarshal object into Go value of type []*api.AgentMember

0.5

$ ~/Downloads/nomad server-members
Name                   Address         Port  Status  Leader  Protocol  Build     Datacenter    Region
...
nodes
...

Job file (if appropriate)

@dadgar
Copy link
Contributor

dadgar commented Nov 10, 2016

Hey,

You should not run a mixed cluster of 0.5.0 or 0.4.1 servers (you should always roll all at once). We merged this PR #1947 which makes the CLI work from both servers and clients but as a side-effect will only be usable on a fully rolled cluster.

If this addresses your question/concern would you mind closing? Otherwise let me know!

@kak-tus
Copy link
Author

kak-tus commented Nov 10, 2016

@dadgar All nodes (servers/agents) in cluster must be same version?
Is it possible in this case, to transparently (without services stopping) migrate from 0.4 to 0.5?

I thought that it shall be easy: marks node as drain (services gone to another node), update to 0.5, unmark drain (services may go come back to this node).

@dadgar
Copy link
Contributor

dadgar commented Nov 10, 2016

@kak-tus To be specific I meant all servers should be on the same version.

It is okay to have servers ahead of the clients but not recommended. You can either upgrade the clients in place by replacing the nomad binary and then killing nomad and starting it again. It will do a best effort to re-attach to everything it was running. Otherwise you can do as you described.

@kak-tus
Copy link
Author

kak-tus commented Nov 10, 2016

@dadgar I understand. Thank you.

@kak-tus kak-tus closed this as completed Nov 10, 2016
@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants