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

volume UI doesn't show capability defined in volume.hcl file at registration time #17436

Open josh-m-sharpe opened 1 year ago

josh-m-sharpe commented 1 year ago

Nomad version

1.5.6

Issue

nomad volume register with this file:

type        = "csi"
id          = "elasticsearch_data[0]"
name        = "elasticsearch_data[0]"
external_id = "vol-0f05174864a181762"
plugin_id   = "aws-ebs0"

mount_options {
  fs_type = "ext4"
}

capability {
  access_mode     = "single-node-writer"
  attachment_mode = "file-system"
}

topology_request {
  required {
    topology {
      segments {
        # "aws/placement/zone" = "us-west-2a"
        "topology.ebs.csi.aws.com/zone" = "us-west-2a"
      }
    }
  }
}

results in this UI when looking at the volume: CSI_Volume_elasticsearch_data_0__-_Nomad

Expected Result

I'd think those values would show up in the UI?

josh-m-sharpe commented 1 year ago

possible this is causing wider issues -- like not being able to use this volume once it's registered.

I did something to this hcl file and these values showed up. once. but then i deregistered/registered and they're gone. for the life of me I cannot reproduce. this makes me think there's some kind of syntax issue here

josh-m-sharpe commented 1 year ago

This is controller output when I register the volume. Doesn't seem like much here.

I0606 23:51:44.917773       1 controller.go:472] "ValidateVolumeCapabilities: called" args={"volume_id":"vol-0f05174864a181762","volume_capabilities":[{"AccessType":{"Mount":{}},"access_mode":{"mode":1}}]}
josh-m-sharpe commented 1 year ago

noticed there's js request that returns the data i'm looking for, so maybe this is just a view/javascript issue: CSI_Volume_elasticsearch_data_2__-_Nomad

jrasell commented 1 year ago

Hi @josh-m-sharpe and thanks for raising this issue. I'll pass this over to our UI experts who will be better placed to look into this problem.