Commit Graph

18074 Commits

Author SHA1 Message Date
Drew Bailey
aa663e1309 update license output 2020-05-07 12:14:15 -04:00
Seth Hoenig
f421afcb65 Merge pull request #7781 from hashicorp/demo-countdash-docker
demo: create build scripts for our countdash demo
2020-05-07 08:34:20 -06:00
Michael Lange
339386981d Merge pull request #7872 from hashicorp/f-ui/csi-phase-2
UI: CSI Plugins Pages
2020-05-06 18:02:41 -07:00
Michael Lange
877cadffc9 Acceptance test for PluginDetail 2020-05-06 17:36:45 -07:00
Michael Lange
6b46b28624 Don't wrap between icons and health text 2020-05-06 17:22:42 -07:00
Michael Lange
75a150f2ef Use lazyClick to avoid multiple transitionToRoutes being in flight as once 2020-05-06 17:22:42 -07:00
Michael Lange
7c373a2340 Refactor AllocationRow qualifyAllocation
There was a missing edge case where a job is pending. I took the moment
to also refactor the code to use async/await which cleaned up the
promise chaining.
2020-05-06 17:22:42 -07:00
Michael Lange
75a61e6374 Plugin detail page object 2020-05-06 17:21:49 -07:00
Michael Lange
9632aace74 Sort allocations on the plugin detail page 2020-05-06 17:21:49 -07:00
Michael Lange
e984bbcd27 Test coverage for the plugins list page 2020-05-06 17:21:48 -07:00
Michael Lange
092b05d5d1 Page object for Plugins List 2020-05-06 17:21:48 -07:00
Michael Lange
4f4bc6a060 Correct the table headers for dates on the volume page 2020-05-06 17:21:48 -07:00
Michael Lange
bcc6562543 Add a nodes table as well 2020-05-06 17:21:48 -07:00
Michael Lange
d0d1c1fdef Set color in addition to fill for the icon class
Structure icons have fill set to currentColor hardcored in their markup.
This mean setting fill to a color in CSS does nothing, but setting color
now does.
2020-05-06 17:21:47 -07:00
Michael Lange
e6e57557d2 Add icons to the plugin alloc row component 2020-05-06 17:21:47 -07:00
Michael Lange
865e285ec3 Use the correct plugin property for the breadcrumb 2020-05-06 17:21:47 -07:00
Michael Lange
16296f1332 New PluginAllocationRow derivative of AllocationRow 2020-05-06 17:21:46 -07:00
Michael Lange
3999d453ff Emulate belongsTo relationship in storage fragments 2020-05-06 17:21:46 -07:00
Michael Lange
c04b5d29f4 Add short option to date formatters 2020-05-06 17:21:46 -07:00
Michael Lange
0dd5882c75 Update storage controller mirage code to accommodate EDMF's lack of relationships 2020-05-06 17:21:46 -07:00
Michael Lange
6ad5243ae6 Refactor AllocationRow to use AllocationStat 2020-05-06 17:21:45 -07:00
Michael Lange
64fa26b4b9 Separate AllocationStat component for containing the multiple states a stat tracker can be in 2020-05-06 17:21:45 -07:00
Michael Lange
96f86d95be Setup the plugin detail page 2020-05-06 17:21:45 -07:00
Michael Lange
5d3438193a Model out the rest of the CSI Plugin properties 2020-05-06 17:21:44 -07:00
Michael Lange
6c262ddeba Plugins table on the plugins list page 2020-05-06 17:21:44 -07:00
Michael Lange
eaa107ea36 Clean up the csi volume page 2020-05-06 17:21:44 -07:00
Michael Lange
f07a44d844 Set up routes, controllers, and template basics for the plugins page 2020-05-06 17:21:43 -07:00
Michael Lange
70fe2b3484 Add a subnav to the volumes page 2020-05-06 17:21:43 -07:00
Michael Lange
572cf0d467 Update plugin model and serializer to match final API 2020-05-06 17:21:42 -07:00
Michael Lange
83baebc841 Add constraints table to the volume detail page 2020-05-06 17:21:42 -07:00
Tim Gross
9990650b52 periodic GC for CSI plugins (#7878)
This changeset implements a periodic garbage collection of unused CSI
plugins. Plugins are self-cleaning when the last allocation for a
plugin is stopped, but this feature will cover any missing edge cases
and ensure that upgrades from 0.11.0 and 0.11.1 get any stray plugins
cleaned up.
2020-05-06 16:49:12 -04:00
Buck Doyle
d87fe88be7 Migrate page objects away from jQuery (#7843)
This is part of #7834’s jQuery removal goal. It addresses a couple of jQuery-related deprecation warnings and also uses “native events mode” for ember-cli-page-object, which is needed so it doesn’t have to use jQuery via the Ember global.
2020-05-06 15:14:12 -05:00
Jeff Escalante
edc8454819 update to latest nextjs-scripts 2020-05-06 16:12:34 -04:00
Jeff Escalante
6f3a00b2ce fix some highlighting issues 2020-05-06 16:12:34 -04:00
Jeff Escalante
73a1b12148 update deps 2020-05-06 16:12:34 -04:00
Jeff Escalante
e219658558 switch themes 2020-05-06 16:12:34 -04:00
Jeff Escalante
cb57d44197 initial stab at prism highlighting 2020-05-06 16:12:34 -04:00
Buck Doyle
bd8d418705 UI: Remove Ember Freestyle (#7839)
This completes the migration to Storybook by replacing the colour palette and typeface components that I left out.
2020-05-06 15:11:15 -05:00
Michael Lange
d9aaaa0107 Merge pull request #7855 from hashicorp/b-ui/alloc-wrong-reserved-resources
UI: Make allocation reference own task group instead of job's task group when job versions don't match
2020-05-06 10:08:37 -07:00
Mahmood Ali
16d076d542 Merge pull request #7874 from hashicorp/b-ui/node-status-running-allocs
ui: only count running allocations in client view
2020-05-06 12:12:17 -04:00
Tim Gross
5d03307c63 reorder volume claim batch request raft message (#7871)
For backwards compatibility during upgrades, new raft message types
need to come at the end of the enum.
2020-05-06 08:57:51 -04:00
Mahmood Ali
2ca8758494 ui: only count running allocations in client view
In the client view list, only show running allocations count for each
client, rather than include already completed tasks.

This is done for two reasons:

First, consitency with the CLI: `nomad node status --allocs` only
shows running allocs.

Second, and more importantly, the count is useful to estimate how loaded
the clients are.  Allocs that have completed (but not GCed yet) have
very little value to operators.
2020-05-05 21:31:58 -04:00
Tim Gross
1531db809f csi: fix plugin counts on node update (#7844)
In this changeset:

* If a Nomad client node is running both a controller and a node
  plugin (which is a common case), then if only the controller or the
  node is removed, the plugin was not being updated with the correct
  counts.
* The existing test for plugin cleanup didn't go back to the state
  store, which normally is ok but is complicated in this case by
  denormalization which changes the behavior. This commit makes the
  test more comprehensive.
* Set "controller required" when plugin has `PUBLISH_READONLY`. All
  known controllers that support `PUBLISH_READONLY` also support
  `PUBLISH_UNPUBLISH_VOLUME` but we shouldn't assume this.
* Only create plugins when the allocs for those plugins are
  healthy. If we allow a plugin to be created for the first time when
  the alloc is not healthy, then we'll recreate deleted plugins when
  the job's allocs all get marked terminal.
* Terminal plugin alloc updates should cleanup the plugin. The client
  fingerprint can't tell if the plugin is unhealthy intentionally (for
  the case of updates or job stop). Allocations that are
  server-terminal should delete themselves from the plugin and trigger
  a plugin self-GC, the same as an unused node.
2020-05-05 15:39:57 -04:00
Tim Gross
1585d343f1 csi: fix mount validation (#7869)
Several of the CSI `VolumeCapability` methods return pointers, which
we were then comparing to pointers in the request rather than
dereferencing them and comparing their contents.

This changeset does a more fine-grained comparison of the request vs
the capabilities, and adds better error messaging.
2020-05-05 15:13:07 -04:00
Drew Bailey
0c86b7a084 Merge pull request #7867 from hashicorp/license-command-updates
update license command output to reflect api changes
2020-05-05 14:10:22 -04:00
Tim Gross
058a8daac3 docstring improvements and typo fixes (#7862) 2020-05-05 10:30:50 -04:00
Drew Bailey
d5f99a06e2 update license command output to reflect api changes 2020-05-05 10:28:58 -04:00
Juan Larriba
65f09ed119 Run Linux Images (LCOW) and Windows Containers side by side (#7850)
Makes it possible to run Linux Containers On Windows with Nomad alongside Windows Containers. Fingerprint prevents only to run Nomad in Windows 10 with Linux Containers
2020-05-04 13:08:47 -04:00
Tim Gross
b3d43b8e66 volumewatcher: remove spurious nil-check (#7858)
The nil-check here is left-over from an earlier approach that didn't
get merged. It doesn't do anything for us now as we can't ever pass it
`nil` and if we leave it in the `getVolume` call it guards will panic
anyways.
2020-05-04 12:28:32 -04:00
Mahmood Ali
a763cdc3ea Merge pull request #7856 from Renerick/patch-1
Fix URL schema in `drain` documentation
2020-05-03 13:51:05 -04:00