question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions on zfs-local-dataset driver with Nomad

See original GitHub issue
  1. Is it possible to supply ZFS properties for dataset when creating a volume? I see it can be done with zfs-ephemeral driver (using volume_context and property.<name>) but have not found I way to do that with zfs-local-dataset
  2. How can I specify on which host dataset should be created? It seems that now volume is created on the Nomad client that receives the call to create a volume.

Deletion also doesn’t seem to work when request to delete lands on node that doesn’t have a dataset. What I mean is that if I have nodes node-01 and node-02, when I create a volume with NOMAD_ADDR=node-01:4646 nomad volume create test.hcl dataset will be created at node-01 and when I run NOMAD_ADDR=node-02:4646 nomad volume delete test volume will be deleted from Nomad but dataset will stay at node-01.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nahsicommented, Jun 2, 2022

Thank you for very detailed anwser! I understand. I will experiment with democratic-csi on Nomad, based on what I’ve learned from you, and will share the result here. And perhaps will update the docs later if all is nice.

1reaction
travisghansencommented, May 28, 2022

Those are https://handlebarsjs.com/ templates so you may be able to do something like this:

{{#if someval}}{{ someval }}{{else}}{{"default"}}{{/if}}

The code should probably detect empty values generally and ignore them but that could end up hiding issues that operators would like to see.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[question] clarification of usage for NOMAD_ALLOC_DIR #9901
Nomad version Nomad v1.0.2 Operating system and Environment details Ubuntu ... Aren't nomad volumes different than docker driver volumes ?
Read more >
Nomad and Consul integration question - HashiCorp Discuss
Are you looking to run a Consul agent as a Nomad job using the Docker driver? You can use the official Consul Docker...
Read more >
HashiCorp Nomad — From Zero to WOW! - Medium
Nomad is a popular scheduler for many different types of workloads. In this post I'll show you how to get up and running...
Read more >
Nomad Task Driver for containerd - YouTube
Learn about the containerd HashiCorp Nomad task driver.
Read more >
Problem with nomad job deployment (raw_exec mode, v1.0.1)
Please could you give some advice on how to get reject/pending reason from the agent? I use "raw_exec" driver (non-privileged user, driver.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found