hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.89k stars 1.95k forks source link

Negative values in UI #11113

Open n-bes opened 3 years ago

n-bes commented 3 years ago

Nomad version

Nomad v1.1.3 (8c0c8140997329136971e66e4c2337dfcf932692)

Operating system and Environment details

➜  ~ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
/usr/bin/nomad agent -dev

Issue

Hi. I saw negative values in UI, but unfortunately no additional logs / data.

Снимок экрана 2021-08-03 в 20 43 04

Job


job "cci" {
  datacenters = ["dc1"]
  type = "batch"

  parameterized {
    meta_required = [
        "PACKAGE_NAME",
        "PACKAGE_RECIPE_FOLDER",
        "PACKAGE_VERSION",
        "BUILD_ID"
    ]
  }
  reschedule {
    attempts  = 0
    unlimited = false
  }
  task "build-package" {
    resources {
        memory = 8000
    }
    restart {
      attempts = 0
    }

    driver  = "docker"

    config {
      image = "nomad-cci:local"
      command = "python3"
      args = [
        "script.py",
      ]
      logging {
        type = "loki"
        config {
          keep-file=true
          loki-url="<cutted>"
          loki-retries=5
          loki-batch-size=400
          loki-external-labels="package_ref=${NOMAD_META_PACKAGE_NAME}/${NOMAD_META_PACKAGE_VERSION},nomad_job_id=${NOMAD_JOB_ID},package_name=${NOMAD_META_PACKAGE_NAME},build_id=${NOMAD_META_BUILD_ID}"
        }
      }
    }
  }
}
lgfa29 commented 3 years ago

Hi @n-bes 👋

This seems like a state tracking issue similar to #10145. If the problem is still happening, would you be able to run the nomad operator debug and send us the resulting file via email (nomad-oss-debug@hashicorp.com)?

Please add the issue number and title as the email subject.

Thank you.