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.
- 18 Nov, 2020 9 commits
-
-
Michael Schurter authored
client: fix interpolation in template source
-
Michael Schurter authored
-
Michael Schurter authored
-
Michael Schurter authored
docs: document artifact bug #6929
-
Tim Gross authored
The CSIVolume struct "denormalizes" allocations when it's first queried from the state store. The CSIVolumeByID method on the state store copies the volume before denormalizing so that we don't end up with unexpected changes. The copying has some subtle bugs that meant that Allocations (as well as Topologies and MountOptions) were not getting copied when expected. Also, ensure we never write allocations attached to volumes to the state store during claims.
-
Chris Baker authored
document `api.Allocation.Job` field
-
Chris Baker authored
-
Michael Schurter authored
While Nomad v0.12.8 fixed `NOMAD_{ALLOC,TASK,SECRETS}_DIR` use in `template.destination`, interpolating these variables in `template.source` caused a path escape error. **Why not apply the destination fix to source?** The destination fix forces destination to always be relative to the task directory. This makes sense for the destination as a destination outside the task directory would be unreachable by the task. There's no reason to ever render a template outside the task directory. (Using `..` does allow destinations to escape the task directory if `template.disable_file_sandbox = true`. That's just awkward and unsafe enough I hope no one uses it.) There is a reason to source a template outside a task directory. At least if there weren't then I can't think of why we implemented `template.disable_file_sandbox`. So v0.12.8 left the behavior of `template.source` the more straightforward "Interpolate and validate." However, since outside of `raw_exec` every other driver uses absolute paths for `NOMAD_*_DIR` interpolation, this means those variables are unusable unless `disable_file_sandbox` is set. **The Fix** The variables are now interpolated as relative paths *only for the purpose of rendering templates.* This is an unfortunate special case, but reflects the fact that the templates view of the filesystem is completely different (unconstrainted) vs the task's view (chrooted). Arguably the values of these variables *should be context-specific.* I think it's more reasonable to think of the "hack" as templating running uncontainerized than that giving templates different paths is a hack. **TODO** - [ ] E2E tests - [ ] Job validation may still be broken and prevent my fix from working? **raw_exec** `raw_exec` is actually broken _a different way_ as exercised by tests in this commit. I think we should probably remove these tests and fix that in a followup PR/release, but I wanted to leave them in for the initial review and discussion. Since non-containerized source paths are broken anyway, perhaps there's another solution to this entire problem I'm overlooking?
-
Michael Schurter authored
-
- 17 Nov, 2020 3 commits
-
-
Kris Hicks authored
This is mostly switching paragraphs to bullets to make following instructions easier. In doing so, this also adds instructions to install things that were previously assumed to be installed, like Vagrant, Virtualbox, and Consul. It also removes the expectation that Nomad is cloned to $GOPATH, as that is not necessary.
-
Nick Ethier authored
cni: use correct interface for netStatus
-
Kris Hicks authored
This replaces all usage of `protoc` with `buf`. See `tools/buf/README.md` for more.
-
- 16 Nov, 2020 8 commits
-
-
Chris Baker authored
fix duplication of ports in `AllocatedResources`
-
Chris Baker authored
-
Tim Gross authored
-
Seth Hoenig authored
scheduler: enable upgrade path for bridge network finger print
-
James Rasell authored
docs: move Ruby SDK to unsupported listing.
-
Tim Gross authored
The `nomad alloc status -verbose` command returns a 404 from CSI volumes because the volume mount block in the task points back to the `job.group.volume` block. So using the `Name` field to query is the "name" as seen in the jobspec, and not the name of the volume that we need for querying. Show both the job-specific name and the volume ID in the resulting output, which clarifies the difference between the two fields and is more consistent with the web UI.
-
James Rasell authored
Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com>
-
James Rasell authored
-
- 15 Nov, 2020 4 commits
-
-
Chris Baker authored
updated alloc_endpoint to mutate a copy of the returned allocation, instead of the instance in the state store
-
Chris Baker authored
-
Chris Baker authored
website: update downloads page to beta3
-
Chris Baker authored
-
- 14 Nov, 2020 1 commit
-
-
Wim authored
CNI plugins can return multiple interfaces, eg the bridge plugin. We need the interface with the sandbox.
-
- 13 Nov, 2020 9 commits
-
-
Tim Gross authored
-
Seth Hoenig authored
This PR enables users of Nomad < 0.12 to upgrade to Nomad 0.12 and beyond. Nomad 0.12 introduced a network fingerprinter for bridge networks, which is a contstraint checked for if bridge network is being used. If users upgrade servers first as is recommended, suddenly no clients running older versions of Nomad will satisfy the bridge network resource constraint. Instead, this change only enforces the constraint if the Nomad client version is also >= 0.12. Closes #8423
-
Seth Hoenig authored
jobspec: add support for headers in artifact stanza
-
Tim Gross authored
-
Seth Hoenig authored
This PR adds the ability to set HTTP headers when downloading an artifact from an `http` or `https` resource. The implementation in `go-getter` is such that a new `HTTPGetter` must be created for each artifact that sets headers (as opposed to conveniently setting headers per-request). This PR maintains the memoization of the default Getter objects, creating new ones only for artifacts where headers are set. Closes #9306
-
Tim Gross authored
-
Mahmood Ali authored
Avoids setting the node version in the release Dockerfile, by using an alias. This allows us to update the node version in one file only. Co-authored-by:
Michael Schurter <mschurter@hashicorp.com>
-
Tim Gross authored
Assert that deregistering a volume works without errors following a volume reap. Use CLI helpers where feasible to exercise CSI command line. Dump plugin allocation logs on deregistration failures for debugging purposes.
-
Lars Lehtonen authored
-
- 12 Nov, 2020 6 commits
-
-
Michael Schurter authored
build: upgrade from Go 1.15.4 to 1.15.5
-
Michael Schurter authored
-
Michael Schurter authored
Despite being a security release for Go, we do not believe Nomad is impacted.
-
Michael Lange authored
UI: Task lifecycle poststop phase.
-
Michael Lange authored
-
Michael Lange authored
This reverts commit f8a505ea.
-