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

Update Nomad to 0.9.2+ #309

Closed
andyghiuta opened this issue Oct 13, 2019 · 5 comments
Closed

Update Nomad to 0.9.2+ #309

andyghiuta opened this issue Oct 13, 2019 · 5 comments

Comments

@andyghiuta
Copy link

Description
Nomad introduced auto_promote option for canary deployments in 0.9.2:
https://www.nomadproject.io/docs/job-specification/update.html#auto_promote
https://github.com/hashicorp/nomad/blob/master/CHANGELOG.md#092-june-5-2019
hashicorp/nomad#5719

Relevant Nomad job specification file

job "jobname" {
  region = "us"
  datacenters = [
    "dc1"
  ]
  type = "service"
  group "deployment" {
    count = 3
    update {
      canary = 3
      max_parallel = 1
      auto_revert = true
      auto_promote = true
    }
  }
}

Output of levant version:

$ levant -v
Levant v0.2.7
Date: 2019-03-19T08:26:24Z
Commit: 9e952d55f171e63f5c7955e826401eac91ed0b28
Branch: 0.2.7
State: 0.2.7
Summary: 9e952d55f171e63f5c7955e826401eac91ed0b28

Debug log outputs from Levant:

[ERROR] levant/command: error parsing 'job': 1 error occurred:

* group: update -> invalid key: auto_promote
@pznamensky
Copy link
Contributor

@jrasell could you please help with it?

@andyghiuta
Copy link
Author

andyghiuta commented Nov 25, 2019

It looks like updating to 0.9.6 was not sufficient. I'm receiving the same error:

[ERROR] levant/command: error parsing 'job': 1 error occurred:

* group: update -> invalid key: auto_promote
$ levant -v
Levant v0.2.8
Date: 2019-09-14T14:09:17Z
Commit: dee2715dbc6bd4c8c3d73c882e017e380782e1d2
Branch: 0.2.8
State: 0.2.8
Summary: dee2715dbc6bd4c8c3d73c882e017e380782e1d2

@jrasell
Copy link
Member

jrasell commented Nov 25, 2019

@andyghiuta I will need to release 0.2.9 in order for the vendor change to take affect. You can build master locally if needed in the meantime. I hope to find time to perform the release this week, hopefully tomorrow.

@andyghiuta
Copy link
Author

Ah, right... I was looking at the 0.2.8 release date (14th) and thought "that was 11 days ago, when this was closed.". I forgot to check the month too. Monday... 😬

@andyghiuta
Copy link
Author

@jrasell I tested a build from master and it works as expected. An official release would be much appreciated. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants