Commit Graph

22287 Commits

Author SHA1 Message Date
Jai Bhagat
720bfa82a7 ui: disable linting on files that use controllerFor 2022-01-20 09:46:49 -05:00
Jai Bhagat
acb818504c ui: turn off no-computed-properties-in-native-classes
We have ~60 uses of computed properties across routes (for watcher system), components,
and models.
2022-01-20 09:46:48 -05:00
Jai Bhagat
4fe64bbcff ui: turn off no-class-classes rule
We still use classic classes because this is a mixed
codebase between Octane and Classic.
2022-01-20 09:46:48 -05:00
Jai Bhagat
d0f8322786 ui: fix auto-fixable linting errors 2022-01-20 09:46:45 -05:00
Jai Bhagat
ba92ba367d ui: match eslint script with ember-new-output 2022-01-20 09:29:10 -05:00
Jai Bhagat
3c78be7fba ui: ignore cache for eslint, to speed up linting 2022-01-20 09:29:10 -05:00
Jai Bhagat
c4882b600f ui: match eslintrc with ember-new-output 2022-01-20 09:29:10 -05:00
Jai Bhagat
dc3186068a ui: match linting and prettier packages with ember-new-output 3.24 2022-01-20 09:29:10 -05:00
Jai Bhagat
28b64b89a2 chore: add jsconfig to stop experimental decorator warnings 2022-01-20 09:29:10 -05:00
Luiz Aoqui
1471de4d37 Merge pull request #11887 from hashicorp/changelog-11793
changelog: manually add entry for #11793
2022-01-19 16:27:52 -05:00
Luiz Aoqui
a200e2f247 changelog: manually add entry for #11793 2022-01-19 16:13:04 -05:00
Seth Hoenig
b20011c944 Merge pull request #11855 from hashicorp/deps-swap-pty
deps: pty has new home
2022-01-19 13:25:52 -06:00
Seth Hoenig
143705fb28 deps: pty has new home
github.com/kr/pty was moved to github.com/creack/pty

Swap this dependency so we can upgrade to the latest version
and no longer need a replace directive.
2022-01-19 12:33:05 -06:00
Seth Hoenig
e8ca5331a3 Merge pull request #11843 from hashicorp/deps-swap-gzip-handler
deps: replace gzip handler
2022-01-19 12:29:24 -06:00
Seth Hoenig
e2ab16847d deps: adjust to gzip handler zero length response body
After swapping gzip handler to use the gorilla library, we
must account for a quirk in how zero/minimal length response
bodies are delivered.

The previous gzip handler was configured to compress all responses
regardless of size - even if the data was zero length or below the
network MTU. This behavior changed in [v1.1.0](c551b6c3b4 (diff-de723e6602cc2f16f7a9d85fd89d69954edc12a49134dab8901b10ee06d1879d))
which is why we could not upgrade.

The Nomad HTTP Client mutates the http.Response.Body object, making
a strong assumption that if the Content-Encoding header is set to "gzip",
the response will be readable via gzip decoder. This is no longer true
for the nytimes gzip handler, and is also not true for the gorilla gzip
handler.

It seems in practice this only makes a difference on the /v1/operator/license
endpoint which returns an empty response in OSS Nomad.

The fix here is to simply not wrap the response body reader if we
encounter an io.EOF while creating the gzip reader - indicating there
is no data to decode.
2022-01-19 11:52:19 -06:00
Seth Hoenig
d061e8eadf deps: swap gzip handler for gorilla
This has been pinned since the Go modules migration, because the
nytimes gzip handler was modified in version v1.1.0 in a way that
is no longer compatible.

Pretty sure it is this commit: c551b6c3b4

Instead use handler.CompressHandler from gorilla, which is a web toolkit we already
make use of for other things.
2022-01-19 11:52:19 -06:00
Seth Hoenig
6f664c53e7 Merge pull request #11872 from hashicorp/deps-upgrade-runc
deps: upgrade docker and runc
2022-01-19 11:38:28 -06:00
Luiz Aoqui
3d9cab5559 Merge pull request #11882 from hashicorp/merge-release-1.2.4-branch
Merge release 1.2.4 branch
2022-01-19 11:57:07 -05:00
Luiz Aoqui
620abba134 prepare for next release 2022-01-19 11:51:59 -05:00
Luiz Aoqui
8631085a56 Merge remote-tracking branch 'origin/release-1.2.4' into merge-release-1.2.4-branch 2022-01-19 11:50:07 -05:00
Luiz Aoqui
d3f48555d7 update download to Nomad v1.2.4 (#11880) 2022-01-19 11:10:24 -05:00
Nomad Release Bot
8a3c88c024 remove generated files 2022-01-19 00:23:24 +00:00
Nomad Release Bot
2f9accbde7 Release v1.2.4 2022-01-19 00:22:47 +00:00
Nomad Release bot
9f21b724ac Generate files for 1.2.4 release 2022-01-18 23:43:00 +00:00
Luiz Aoqui
c5fd90a7dd docs: add 1.2.4 to changelog 2022-01-18 18:31:34 -05:00
Luiz Aoqui
a0c0b808af docs: add nomad.plan.node_rejected metric (#11860) 2022-01-18 13:47:20 -05:00
Luiz Aoqui
61340142fa ui: fix test (#11870) 2022-01-18 10:36:10 -05:00
Seth Hoenig
87dbc7162b deps: upgrade docker and runc
This PR upgrades
 - docker dependency to the latest tagged release (v20.10.12)
 - runc dependency to the latest tagged release (v1.0.3)

Docker does not abide by [semver](https://github.com/moby/moby/issues/39302), so it is marked +incompatible,
and transitive dependencies are upgrade manually.

Runc made three relevant breaking changes

 * cgroup manager .Set changed to accept Resources instead of Cgroup
   3f65946756

 * config.Device moved to devices.Device
   https://github.com/opencontainers/runc/pull/2679

 * mountinfo.Mounted now returns an error if the specified path does not exist
   https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
2022-01-18 08:35:26 -06:00
Dave May
8d28bfe415 cli: Add event stream capture to nomad operator debug (#11865) 2022-01-17 21:35:51 -05:00
Michael Schurter
dc81f2650a cli: improve debug error messages (#11507)
Improves `nomad debug` error messages when contacting agents that do not
have /v1/agent/host endpoints (the endpoint was added in v0.12.0)

Part of #9568 and manually tested against Nomad v0.8.7.

Hopefully isRedirectError can be reused for more cases listed in #9568
2022-01-17 11:15:17 -05:00
Luiz Aoqui
ac18d719fe docs: update 1.2.0 upgrade note now that the UI ACL is fixed (#11840) 2022-01-17 11:09:08 -05:00
Luiz Aoqui
d1c3c22064 docs: add HashiBox to the list of community tools (#11861) 2022-01-17 11:08:41 -05:00
Luiz Aoqui
4c5dd858d8 changelog: add entry for #11793 (#11862) 2022-01-17 11:08:29 -05:00
James Rasell
868ab230e7 Merge pull request #11849 from hashicorp/b-changelog-11848
changelog: add entry for #11848
2022-01-17 09:35:10 +01:00
Luiz Aoqui
8a427a470a scheduler: detect and log unexpected scheduling collisions (#11793) 2022-01-14 20:09:14 -05:00
Jai
fcd86e49a1 Merge pull request #11820 from hashicorp/f-ui/alloc-legend
feat:  add links to legend items in `allocation-summary`
2022-01-14 14:02:54 -05:00
Tim Gross
307bcada7f csi: volume deregistration should require exact ID (#11852)
The command line client sends a specific volume ID, but this isn't
enforced at the API level and we were incorrectly using a prefix match
for volume deregistration, resulting in cases where a volume with a
shorter ID that's a prefix of another volume would be deregistered
instead of the intended volume.
2022-01-14 12:26:03 -05:00
Tim Gross
e14c10e884 csi: when warning for multiple prefix matches, use full ID (#11853)
When the `volume deregister` or `volume detach` commands get an ID
prefix that matches multiple volumes, show the full length of the
volume IDs in the list of volumes shown so so that the user can select
the correct one.
2022-01-14 12:25:48 -05:00
Tim Gross
6b7ecb2a65 freebsd: build fix for ARM7 32-bit (#11854)
The size of `stat_t` fields is architecture dependent, which was
reportedly causing a build failure on FreeBSD ARM7 32-bit
systems. This changeset matches the behavior we have on Linux.
2022-01-14 12:25:32 -05:00
Tim Gross
77287b0bfc drivers: set world-readable permissions on copied resolv.conf (#11856)
When we copy the system DNS to a task's `resolv.conf`, we should set
the permissions as world-readable so that unprivileged users within
the task can read it.
2022-01-14 12:25:23 -05:00
Jai Bhagat
9731dea75d chore: add changelog 2022-01-14 10:23:09 -05:00
Jai Bhagat
08a5e867e2 test: add test stories for clicking allocation summary 2022-01-14 10:23:09 -05:00
Jai Bhagat
a3d6240895 refact: add data-test-selectors and correct css selectors in summary 2022-01-14 10:23:06 -05:00
Jai Bhagat
2e73e425ed styling: remove clickable link text decoration override to match new mocks 2022-01-14 10:20:36 -05:00
Jai Bhagat
ecaf46c6c9 refact: allocation and child summaries into ember-cli-page-object components 2022-01-14 10:20:33 -05:00
Jai Bhagat
c1bef174ee fix: typo in data-test-selector 2022-01-14 10:19:01 -05:00
Jai Bhagat
1eebec0a03 styling: update styling to match new figma mocks 2022-01-14 10:14:44 -05:00
Jai Bhagat
205a07c237 feat: add clicking functionality to alloc status legend 2022-01-14 10:14:44 -05:00
James Rasell
54cbfe0c5b changelog: add entry for #11848 2022-01-14 13:40:50 +01:00
James Rasell
8f01d74f70 Merge pull request #11842 from hashicorp/b-name-oss-files-consistently
chore: ensure consistent file naming for non-enterprise files.
2022-01-14 08:13:49 +01:00