hashicorp / hashicorp/nomad

CSI volume mount option updates while volume in use

Open
#25,592 1 comment 0 reactions 0 assignees View on GitHub
hcc/jira theme/storage type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Hey there,

Currently Nomad [doesn't allow updating](https://github.com/hashicorp/nomad/blob/27b1d470a8f0c8c39a3afb72ca12c425a35cf376/nomad/structs/csi.go#L822) a volume registration's mount options while the volume is in use. Is there a specific reason for this?

Ideally I'd like to be able to update mount options on a volume registration and restart the alloc to pick up those changes. This is especially important when using Nomad's Terraform provider to manage volumes.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with nomad/structs/csi.go at the linked volume-registration validation around line 822, then trace how registration changes and allocation restarts handle mount options. Done means an in-use volume registration can accept updated mount options and a restarted allocation uses them, with the relevant behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.