hashicorp / hashicorp/nomad

Nomad creates tmpfs mounts with invalid options for the kernel version

Open
#28,243 2 comments 0 reactions 1 assignee Claimed by @chrisroberts View on GitHub
hcc/jira type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
1.9.5

### Operating system and Environment details
Centos 8 (kernel 4.18)

### Issue
For internal reasons we are required to use old kernels for some systems running legacy applications. This is one of those systems (using kernel 4.18). After deploying applications on the server we see spam in kernel messages like:

```
[12501231.085360] tmpfs: No value for mount option 'noswap'
[12501231.086722] tmpfs: No value for mount option 'noswap'
[12501231.092809] tmpfs: No value for mount option 'noswap'
[12501231.093503] tmpfs: No value for mount option 'noswap'
```

### Reproduction steps
Use a system with kernel older than newer tmpfs implementation (pre 5.3 i think), which does not have `noswap` option.

#### Expected Result
No unnecessary kernel log spam

#### Actual Result
Unnecessary kernel log spam

### Job file (if appropriate)
Not applicable

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.