This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 11 Nov, 2020 13 commits
-
-
Chris Baker authored
added changelog entry for 9311 and re-ordered changelog entries to respect secondary short-to-long ordering
-
Chris Baker authored
Don't ignore nil devices in plugin fingerprint
-
Tim Gross authored
The unpublish workflow requires that we know the mode (RW vs RO) if we want to unpublish the node. Update the hook and the Unpublish RPC so that we mark the claim for release in a new state but leave the mode alone. This fixes a bug where RO claims were failing node unpublish. The core job GC doesn't know the mode, but we don't need it for that workflow, so add a mode specifically for GC; the volumewatcher uses this as a sentinel to check whether claims (with their specific RW vs RO modes) need to be claimed.
-
Chris Baker authored
recommendations CLI: autocomplete support
-
Chris Baker authored
use both job and type query on scaling policy list endpoint
-
Tim Gross authored
The default behavior for `docker.volumes.enabled` is intended to be `false`, but the HCL schema defaults to `true` if the value is unset. Set the default literal value to `true`. Additionally, Docker driver mounts of type "volume" (but not "bind") are not being properly sandboxed with that setting. Disable Docker mounts with type "volume" entirely whenever the `docker.volumes.enabled` flag is set to false. Note this is unrelated to the `volume_mount` feature, which is constrained to preconfigured host volumes or whatever is mounted by a CSI plugin. This changeset includes updates to unit tests that should have been failing under the documented behavior but were not.
-
Chris Baker authored
-
Drew Bailey authored
-
Drew Bailey authored
-
Chris Baker authored
-
Chris Baker authored
-
Chris Baker authored
-
Mahmood Ali authored
Custom message when job file is HCL2 incompatible
-
- 10 Nov, 2020 12 commits
-
-
Chris Baker authored
-
Jerome Gravel-Niquet authored
Even if a plugin sends back an empty `[]*device.DeviceGroup`, it's transformed to `nil` during the RPC. Our custom device plugin is returning empty `FingerprintResponse.Devices` very often. Our temporary fix is to send a dummy `*DeviceGroup` if the slice is empty. This has the effect of never triggering the "first fingerprint" and therefore timing out after 50s. In turn, this made our node exceed its hearbeat grace period when restarting it, revoking all vault tokens for its allocations, causing a restart of all our allocations because the token couldn't be renewed. Removing the logic for `f.Devices == nil` does not appear to affect the functionality of the function.
-
Mahmood Ali authored
Use a custom message when the job file is a valid HCL1 but no longer valid under HCL 2 syntax.
-
Michael Schurter authored
go: update from 1.15.1 to 1.15.4
-
Mahmood Ali authored
Legacy executors are executors after all
-
Mahmood Ali authored
[ci skip]
-
Kris Hicks authored
Previously, it was required that you `go get github.com/hashicorp/nomad` to be able to build protos, as the protoc invocation added an include directive that pointed to `$GOPATH/src`, which is how dependent protos were discovered. As Nomad now uses Go modules, it won't necessarily be cloned to `$GOPATH`. (Additionally, if you _had_ go-gotten Nomad at some point, protoc compilation would have possibly used the _wrong_ protos, as those wouldn't necessarily be the most up-to-date ones.) This change modifies the proto files and the `protoc` invocation to handle discovering dependent protos via protoc plugin modifier statements that are specific to the protoc plugin being used. In this change, `make proto` was run to recompile the protos, which results in changes only to the gzipped `FileDescriptorProto`.
-
Michael Schurter authored
-
Michael Schurter authored
1.15.5 is due in a couple days but we may release before then.
-
Mahmood Ali authored
This fixes a bug where pre-0.9 executors fail to recover after an upgrade. The bug is that legacyExecutorWrappers didn't get updated with ExecStreaming function, and thus failed to implement the Executor function. Sadly, this meant that all recovery attempts fail, as the runtime check in https://github.com/hashicorp/nomad/blob/b312aacbc961dfd976b6a402d22d80b45176a962/drivers/shared/executor/utils.go#L103-L110 .
-
Ryan Oaks authored
-
Seth Hoenig authored
client/fingerprint: detect unloaded dynamic bridge kernel module
-
- 09 Nov, 2020 15 commits
-
-
Mahmood Ali authored
HCL2: Variables and Locals
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Luiz Aoqui authored
add CHANGELOG entry for #9296
-
Luiz Aoqui authored
-
Seth Hoenig authored
-
Luiz Aoqui authored
Remove Namespace field from JobScaleRequest
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
This reimplements the handling of Variables and Locals in HCL2 config. This change supports declaring variables and locals, with defaults.
-
Seth Hoenig authored
In Nomad v0.12.0, the client added additional fingerprinting around the presense of the bridge kernel module. The fingerprinter only checked in `/proc/modules` which is a list of loaded modules. In some cases, the bridge kernel module is builtin rather than dynamically loaded. The fix for that case is in #8721. However we were still missing the case where the bridge module is dynamically loaded, but not yet loaded during the startup of the Nomad agent. In this case the fingerprinter would believe the bridge module was unavailable when really it gets loaded on demand. This PR now has the fingerprinter scan the kernel module dependency file, which will contain an entry for the bridge module even if it is not yet loaded. In summary, the client now looks for the bridge kernel module in - /proc/modules - /lib/modules/<kernel>/modules.builtin - /lib/modules/<kernel>/modules.dep Closes #8423
-
Mahmood Ali authored
-