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

missing support for meta in service stanza #310

Closed
yossisal opened this issue Oct 16, 2019 · 3 comments · Fixed by #313
Closed

missing support for meta in service stanza #310

yossisal opened this issue Oct 16, 2019 · 3 comments · Fixed by #313

Comments

@yossisal
Copy link

Description

Service Stanza now includes an optional meta field. However, this is not supported by levant:

Relevant Nomad job specification file

[ERROR] levant/command: error parsing 'job': 1 error occurred:
* group: '...., task: '...', service (0) -> invalid key: meta

Output of levant version:

Levant v0.2.8
Date: 2019-09-14T14:09:17Z
Commit: dee2715dbc6bd4c8c3d73c882e017e380782e1d2
Branch: 0.2.8
State: 0.2.8
Summary: dee2715dbc6bd4c8c3d73c882e017e380782e1d2

Output of consul version:

Consul v1.5.3
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

Output of nomad version:

Nomad v0.9.5 (1cbb2b9a81b5715be2f201a4650293c9ae517b87)

Additional environment details:

Debug log outputs from Levant:

@ath0s
Copy link

ath0s commented Jan 7, 2020

I still get this error for the meta tag when using Levant 0.2.9

@jrasell
Copy link
Member

jrasell commented Jan 7, 2020

@ath0s from a glance, it looks like your job-spec is incorrect as the service stanza does not support the meta key. The meta key support is detailed - https://www.nomadproject.io/docs/job-specification/meta.html

If you could share a redacted version of the file I can confirm this if you want.

@ath0s
Copy link

ath0s commented Jan 7, 2020

@jrasell thank you for your quick response.
the service stanza should support the meta key according to https://www.nomadproject.io/docs/job-specification/service.html#meta

However, I was too quick to blame this on Levant. The error occurs for me when running nomad plan on the generated nomad file, so it seems to be a problem with Nomad (maybe wrong version) rather than Levant.
Sorry about that.

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

Successfully merging a pull request may close this issue.

3 participants