nomad-driver-podman icon indicating copy to clipboard operation
nomad-driver-podman copied to clipboard

Nomad 1.3.1 incompatible with v0.3.0 due to config

Open hoh opened this issue 3 years ago • 4 comments

Problem

After upgrading to Nomad 1.3.1 with nomad-driver-podman v0.3.0, a job would not start anymore due to the following error message:

Type: Failed Validation
Description:  3 errors occurred: * failed to parse config: * Invalid label: No argument or block type is named "auth". * Invalid label: No argument or block type is named "force_pull". 

The configuration that causes the issue is in the form:

    task "app" {
      driver = "podman"
      config {
        image = "registry.host.com/group/app:branch"
        force_pull = true
        auth {
          username = "host+deploy-token-1234"
          password = "verysecret"
        }
        ports = ["http"]
        volumes = [
        ]
      }
    }

Diagnostic

It appears that when using Nomad 1.3.1 (and 1.3.0 ?) with v0.3.0 of nomad-driver-podman, the fields auth and force_pull of the task are not recognized.

Resolution

Upgrading to a new build from the main branch ( dadc09fa02eb10acc09e33462243ab023f6d2599 ) appears to fix the issue.

Publishing a new release and encouraging Nomad 1.3.1 users to use that new release would prevent them from facing this issue.

Annexes

Related to "Release 0.4.0? #162"

Screenshot of the error in the UI: image

hoh avatar May 23 '22 12:05 hoh

I'm having the same problem with the logging block. Unable to start an allocation with a logging section defined.

adamdox avatar Jun 07 '22 03:06 adamdox

I have the same issue as @adamdox. I have a job specification that works just fine until I add a logging stanza in the task | config

The documentation implies that this should work. If it doesn't - then should either kick it out of the documentation or make a new release.

I do not see the same problem as @hoh regarding the auth attribute. My task | config has an auth with both username and password and that works just fine.

michaelerickson avatar Jun 07 '22 23:06 michaelerickson

I have the problem that I get 0 logging from any containers. Logs are just completely empty.

svenstaro avatar Jun 24 '22 19:06 svenstaro

Hi everyone 👋

v0.4.0 is now available (https://releases.hashicorp.com/nomad-driver-podman/0.4.0/) would mind checking if it solves the problems?

Thank you.

lgfa29 avatar Jul 15 '22 00:07 lgfa29

Like @lgfa29 mentioned please file a bug if you are still experiencing an issue with 0.4.0+

shoenig avatar Aug 31 '22 14:08 shoenig

I have the problem that I get 0 logging from any containers. Logs are just completely empty.

I have the same problem.

# podman  logs my_container
#

Nomad v1.2.2 Nomad Podman Driver 0.4.0 Podman 3.4.4

UPDATE: That helped

config {
  logging = {
    driver = "journald"
  }

atomlab avatar Oct 17 '22 19:10 atomlab