commit 5b782b7c080b465cee04055b72616adda0879efa
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Sep 19 16:27:29 2017 -0500
move the info and user structs to models
M frontend/info.go
M frontend/users.go
commit 985441c66a7356047ceae2cd02db5cd5f5084a6f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Sep 19 08:38:24 2017 -0500
Fix locking issue. Missed a stages call on the machine actions.
M backend/machines.go
commit cc5f9ed12ebcd09605d942f91879b4ea11840d96
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sun Sep 17 23:15:50 2017 -0500
Fix build break.
Add readonly as an index
Add unit tests for readonly, valid, and available.
Update docs for it.
M backend/index/index.go
M backend/plugins.go
M frontend/bootenvs.go
M frontend/jobs.go
M frontend/leases.go
M frontend/machines.go
M frontend/params.go
M frontend/plugins.go
M frontend/profiles.go
M frontend/reservations.go
M frontend/stages.go
M frontend/subnets.go
M frontend/tasks.go
M frontend/templates.go
M frontend/users.go
commit f5ad1594f72d42b1726241f71a97b1fac6491d43
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Sep 14 11:56:11 2017 -0500
Update netmask and broadcast options on a subnet when
then CIDR changes.
M backend/subnet.go
commit df6ad837ec6c274a17db6e1c3e2902865595c7ea
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Sep 14 10:08:47 2017 -0500
Remove old UI.
Add command line var to define redirect location of New UX.
Make it independent of DevUI path.
D embedded/assets/ui/.gitignore
D embedded/assets/ui/app/assets/css/font/MaterialIcons-Regular.eot
D embedded/assets/ui/app/assets/css/font/MaterialIcons-Regular.ttf
D embedded/assets/ui/app/assets/css/font/MaterialIcons-Regular.woff
D embedded/assets/ui/app/assets/css/font/MaterialIcons-Regular.woff2
D embedded/assets/ui/app/assets/digitalrebar.ico
D embedded/assets/ui/app/assets/digitalrebar.png
D embedded/assets/ui/app/assets/index.html
D embedded/assets/ui/app/dr-provision.css
D embedded/assets/ui/app/render.jsx
D embedded/assets/ui/brunch-config.js
D embedded/assets/ui/package-lock.json
D embedded/assets/ui/package.json
D embedded/assets/ui/public/build.css
D embedded/assets/ui/public/build.css.map
D embedded/assets/ui/public/build.js
D embedded/assets/ui/public/build.js.map
D embedded/assets/ui/public/css/font/MaterialIcons-Regular.eot
D embedded/assets/ui/public/css/font/MaterialIcons-Regular.ttf
D embedded/assets/ui/public/css/font/MaterialIcons-Regular.woff
D embedded/assets/ui/public/css/font/MaterialIcons-Regular.woff2
D embedded/assets/ui/public/digitalrebar.ico
D embedded/assets/ui/public/digitalrebar.png
D embedded/assets/ui/public/index.html
D embedded/assets/ui/public/vendor.js
D embedded/assets/ui/public/vendor.js.map
M frontend/frontend.go
M server/server.go
commit 9c5e31c0312d5bac40fe29cdbbd0064962a163f5
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Sep 12 12:59:04 2017 -0500
Allow Stages to have an empty bootenv
M backend/machines.go
M backend/stage.go
M backend/stage_test.go
M frontend/machines.go
commit 100dcfda9f756fbb37d3286148b5476043879626
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Sep 7 23:06:30 2017 -0500
For Content objects, add some additional meta data
pieces to track usage.
Writable = true/false
Overwritable = true/false
Type = writable, local, dynamic, default
Writable is if the content's objects can be modified.
Overwritable is if the contents objects can be overwritten by
other content layers.
Type is what layer the content is place.
writable is highest layer (where objects are stored)
local is the next read-only layer that is used for local changes
dynamic is a set of uploadable content that is read-only (API content objects)
default is the lowest layer that can be overwritten
This patch also makes the soft errors of validation returned in
Create or Update operations as a list in Warnings.
M frontend/content.go
M midlayer/stack.go
commit 25c92a31a04fadabdc0d1202f5a38ae3a8c73632
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Sep 7 14:39:20 2017 -0500
Add SigHUP handler to reload the config pieces for local modification.
M server/server.go
commit 4182ac289a539c2540d997deadbcfb5d38ab2de9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Sep 6 11:59:05 2017 -0500
Add missing prefs to frontend
M frontend/prefs.go
commit af8e22dc81b292578e04f64d29cca5168d44243c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Sep 4 14:20:37 2017 -0500
Add the RunnerWait flag to the stage and change
the process jobs function to use it to see if it should
wait for more jobs or not.
M backend/renderData.go
commit f8e961b0fe64e7cb48e06ebcfaa7c1baf5374ba7
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Sep 4 13:06:52 2017 -0500
Allow machines to do everything to themselves including actions.
M backend/renderData.go
commit 6f5be92f7f05458c6ffd7efc2cf77dbe9fed0ddf
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sun Sep 3 21:56:57 2017 -0500
Add a defaultStage preference that can be "".
This will allow systems to have a starting "auto" stage.
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/machines.go
M backend/preference.go
M backend/preference_test.go
M frontend/prefs.go
M server/server.go
commit a11d43d4d0972c342edecb7323f76a793651d12e
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Sep 1 15:42:13 2017 -0500
This not so small commit adds the Stage Object.
The Stage Object (and its cli, frontend, and backend components)
handle the tasks and profiles from the bootenvs.
The BootEnv shrinks to be just a boot environment for a machine.
The Stage object now contains the tasks to execute and the profiles
to temporarily configure machines for those tasks.
The machine object is updated to optionally have a stage. If stage
is not present, the system will continue to work like today.
The profile object loses its task list. This was an idea looking
for stages. Profile's with tasks were basically stages in a bad way.
The whole task system gets simpler with the stages system.
The stages render machine templates only.
The machine object has also been updated to allow for the
returning of aggregated params. The cli and API take a
new flag aggregate=true to return all current parameters for
the machine (from profiles, stage, and machine).
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/index/index.go
M backend/jobs.go
M backend/machines.go
M backend/machines_test.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData.go
M backend/renderData_test.go
A backend/stage.go
A backend/stage_test.go
M backend/task.go
M frontend/bootenvs.go
M frontend/frontend.go
M frontend/jobs.go
M frontend/leases.go
M frontend/machines.go
M frontend/params.go
M frontend/plugins.go
M frontend/profiles.go
M frontend/reservations.go
A frontend/stages.go
M frontend/subnets.go
M frontend/tasks.go
M frontend/templates.go
M frontend/users.go
M server/swagger.base.yml
commit 58e634eb989b4a1b35f845dc9e65a7b0f66305d6
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 30 11:58:36 2017 -0500
Make dynamic index not found error look like the static ones
M backend/machines.go
commit 6a8b1422e503cb5b891409b1fb4ccfe1e45be9b7
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 30 11:55:10 2017 -0500
Factor out some common index creation code
This allows for every object that satisfies Validatable to have appropriate indexes
M backend/bootenv.go
M backend/dataTracker.go
M backend/errors.go
M backend/index/index.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/preference.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
commit d9d966dfd04e4eca9f2e77ba6090b843362efde8
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 30 10:19:59 2017 -0500
Wire up Indexes, and make them actually work.
M backend/dataTracker.go
M backend/index/index.go
M frontend/frontend.go
commit 81556e8e623c091d7aa7283d13b5af97f528aa8a
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 29 16:07:43 2017 -0500
Fix FindLease control path to clarify exactly when we return a lease.
M backend/dhcpUtils.go
commit 20dc34bca1c8e7a1a7d419949003ffbb4393b41f
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 29 16:05:31 2017 -0500
Fix reservation test
M backend/dhcpUtils_test.go
commit b16b6490aeb17ff220a8d48f28bd1201fab7c1e1
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 29 14:57:57 2017 -0500
Fixed implementation of ping testing for DHCP discovery addresses
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/lease.go
M midlayer/dhcp.go
commit 1c62fe3293e3143f9220328f61708cf9a750ff75
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 29 12:05:47 2017 -0500
Revert "Add initial impementation to check to see if IP addresses are in use."
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/lease.go
M midlayer/dhcp.go
commit 8fb6b9fda184895469ea2a92eddc8f7d79061479
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 29 09:13:38 2017 -0500
Parallelize DHCP packet handling.
We now spawn a new goroutine per DHCP packet, allowing the system
to handle may requests in parallel.
M midlayer/dhcp.go
commit 17af6496166de4fd785ccf69fb7de5d42ecbc5e1
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 29 08:44:05 2017 -0500
Add initial impementation to check to see if IP addresses are in use.
This also adds a State field to leases so that we can see where in the
lease lifecycle a lease is in.
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/lease.go
M midlayer/dhcp.go
commit 81fbeb34af6cbffd5a28e3d59aba8303f3481297
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Aug 28 17:25:03 2017 -0500
Maybe get the final set of these things by actually doing tests.
M server/swagger.base.yml
commit 3ba0af39ebec3f908935fbd4ffbbea32869a0958
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Aug 28 16:16:57 2017 -0500
Add Contents to base swagger file
M server/swagger.base.yml
commit fb558a461fff858283fb1e2bc58fc551bbd5c580
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Aug 28 11:22:44 2017 -0500
This codifies some of the changes Stephen made and fixes
some that he missed.
M server/swagger.base.yml
commit a0c201cda275c389559165b94179c9dcff0863da
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sun Aug 27 21:59:13 2017 -0500
Add ReadOnly flag to objects so that callers can see what is
modifiable or not.
M backend/bootenv.go
M backend/interfaces.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
commit 65ad2ed880b15c70d1375c9a4b6575d987aeba1f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 24 12:04:07 2017 -0700
Get rid of defaultBootEnv that was hiding the real usage
of prefs.
M backend/dataTracker.go
M backend/machines.go
commit a7a41c0918b8c4cc9b3a69e7fb1cfb8739928ec7
Author: Rob Hirschfeld <rob@rackn.com>
Date: Wed Aug 23 23:48:34 2017 -0500
files upload supports multipart, manual tests updated
M frontend/files.go
M frontend/isos.go
M midlayer/controller.go
commit 110aeaf7818afc3d393f49a6c39b910df58fb96b
Author: Rob Hirschfeld <rob@rackn.com>
Date: Wed Aug 23 19:24:21 2017 -0500
plugin provider converted to include multi-part upload
M frontend/isos.go
M frontend/plugin_providers.go
M midlayer/controller.go
commit c13ef799ef11f37b3fa76d4e43c60eb4b936967d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 15:23:39 2017 -0700
Most some calls
M backend/dataTracker_test.go
M midlayer/dhcp_test.go
commit 84e5670e2633d02561e7c8ea9c97852758e9e22e
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 15:14:28 2017 -0700
Allow for a forced NAT environment
M backend/dataTracker.go
M server/server.go
commit b2c85ce21626eb5025640351a519e995423fe3d6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 12:54:40 2017 -0700
Add reservation allows.
M backend/renderData.go
commit d788212a2c7d19b320bbdbe050d570df36670541
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 08:30:38 2017 -0700
Get a good ip tool in place.
M Dockerfile
commit f43362e7e4f4351a7b969bc3af8b712f0e5e8ec6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 15:23:39 2017 -0700
Most some calls
M backend/dataTracker_test.go
M midlayer/dhcp_test.go
commit 3ea1a9388718199949ebfb1a17c3f42d03bc234f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 15:14:28 2017 -0700
Allow for a forced NAT environment
M backend/dataTracker.go
M server/server.go
commit 548962559878962b642972a528a87a195663a442
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 12:54:40 2017 -0700
Add reservation allows.
M backend/renderData.go
commit 358e4ec9bd298045ef5845a94dd693fded0b24d1
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 16:13:02 2017 -0700
Add ipmitool to the docker image.
M Dockerfile
commit b885dffb6e047ed7aadd7627198a3fd14a2cc50a
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 23 10:35:42 2017 -0500
Add /indexes endpoints to the frontend.
Rejiggering the CLI to use them instead of cheating and importing the backend
models to use them directly will take more work.
M backend/dataTracker.go
M frontend/frontend.go
A frontend/indexes.go
commit a1dfed53516e7a3d98ced9b4ec27537db4c55815
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 23 08:30:38 2017 -0700
Get a good ip tool in place.
M Dockerfile
commit 08a4f391da46ef780076879af1528bdb03d5662d
Author: Rob Hirschfeld <rob@rackn.com>
Date: Wed Aug 23 09:43:55 2017 -0500
refactor upload for more code reuse
M frontend/isos.go
commit 92a9702d85ac62300fb689cbf5ccb1582ef52a94
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 16:13:02 2017 -0700
Add ipmitool to the docker image.
M Dockerfile
commit a56a458ec079edfe97741627af6f6e6ffceeb38e
Author: Rob Hirschfeld <rob@rackn.com>
Date: Tue Aug 22 16:18:42 2017 -0500
add multi-part file upload to enable form based uploads
M frontend/isos.go
commit 62a11f6c5766b255b26ed02a8490b2278d559087
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 22 11:30:02 2017 -0500
rebuildCache handles actual template valiadtion.
This is because the templates can include each other, and must be
parsed and validated as a whole. As such, the template OnLoad() is
just a stub, and the actual call to Validate() happens after all the
templates are loaded.
M backend/template.go
commit e66d55d73151409499592398dcd2bce90d65421f
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 22 10:43:56 2017 -0500
Fix how lease expiry time is calculated if we have both a reservation and a subnet.
M backend/dhcpUtils.go
commit c53e9f222974f421975c72477abaf9a7a73eb6ee
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 22 10:40:14 2017 -0500
Make sure we always use subnet appropriate options.
The lease-handling code was not even looking for a subnet if a lease
could be created from a reservation.
M backend/dhcpUtils.go
commit 42eaca00fa369d4bcfcbb22a7a520bfff73976f8
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 22 10:20:16 2017 -0500
Add ActiveAddress index to Subnet.
This lets you see if an IP address is in the active range of a Subnet.
M backend/subnet.go
commit d070ebb1fcd4f81e13d3e4e93bc00dc0ceb3d1b7
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 22 10:18:27 2017 -0500
Add Address index to Subnet.
This index lets you search for an IP address that is in the full range
of a Subnet.
M backend/subnet.go
commit 43e68c670349ec407e6b8a815ccaa539e411b140
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 05:31:09 2017 -0700
Event should be * for machines
M backend/renderData.go
commit 09e221a1fd9e9b7f2d905c138cf45a1364d79ccc
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 05:18:11 2017 -0700
Onload only initialize empty structs.
M backend/profiles.go
commit 5cb78b2cca31cc16320fe0d3215154a9c6df633c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 04:42:40 2017 -0700
If there is a hard error in templates, fail with the error message.
Reload the global profile if it already exists.
M backend/dataTracker.go
commit 88cb887cfbf91558c54cc60e7cb1c2637658b692
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 22 04:42:12 2017 -0700
Add more capabilities for machines when using the runner.
M backend/renderData.go
commit 8ebdc17426c47dd7e4b0438c4aab716c4275a65f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Aug 21 14:01:35 2017 -0700
Add initial Dockerfile for tip. This will morph over time.
A Dockerfile
commit 3dbd9062cc5bdd00dc77ec60ce204cae6364940b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sun Aug 20 14:41:50 2017 -0500
Put back the ipxe fall through in the ignore bootenv.
M backend/dataTracker.go
commit 63ac11772a3148d99cca39b9aede8b6eea67f20e
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 22:41:54 2017 -0500
Regenerate the docs.- no docs for new install.
Remove assets
Switch install to set default content.
D assets/bootenvs/centos-6.8.yml
D assets/bootenvs/centos-7.3.1611.yml
D assets/bootenvs/debian-7.yml
D assets/bootenvs/debian-8.yml
D assets/bootenvs/discovery.yml
D assets/bootenvs/esxi-650a.yml
D assets/bootenvs/esxi-6u2.yml
D assets/bootenvs/lk-k8s-master.yml
D assets/bootenvs/lk-k8s-node.yml
D assets/bootenvs/lk-sshd.yml
D assets/bootenvs/local.yml
D assets/bootenvs/redhat-6.5.yml
D assets/bootenvs/redhat-7.0.yml
D assets/bootenvs/scientificlinux-6.8.yml
D assets/bootenvs/sledgehammer.yml
D assets/bootenvs/ubuntu-14.04.yml
D assets/bootenvs/ubuntu-16.04.yml
D assets/bootenvs/windows-2012r2.yml
D assets/profiles/dr-integration.yaml
D assets/profiles/local-repo.yaml
D assets/profiles/os-install-default.yaml
D assets/profiles/root-access.yaml
D assets/profiles/update_drp.yml
D assets/templates/2012r2-unattend.xml.tmpl
D assets/templates/additional-interfaces.tmpl
D assets/templates/centos-6.ks.tmpl
D assets/templates/centos-7.ks.tmpl
D assets/templates/centos-drp-only-repos.tmpl
D assets/templates/default-elilo.tmpl
D assets/templates/default-ipxe.tmpl
D assets/templates/default-pxelinux.tmpl
D assets/templates/esxi-650a.boot.cfg.tmpl
D assets/templates/esxi-650a.ipxe.cfg.tmpl
D assets/templates/esxi-6u2.boot.cfg.tmpl
D assets/templates/esxi-6u2.ipxe.cfg.tmpl
D assets/templates/esxi-chain-pxelinux.tmpl
D assets/templates/esxi-install.ks.tmpl
D assets/templates/esxi-pxelinux.tmpl
D assets/templates/join-to-dr.tmpl
D assets/templates/local-elilo.tmpl
D assets/templates/local-ipxe.tmpl
D assets/templates/local-pxelinux.tmpl
D assets/templates/net-post-install.sh.tmpl
D assets/templates/net_seed.tmpl
D assets/templates/root-remote-access.tmpl
D assets/templates/set-hostname.tmpl
D assets/templates/stage1.cmd.tmpl
D assets/templates/stage1.ps1.tmpl
D assets/templates/ubuntu-drp-only-repos.tmpl
D assets/templates/update-drp-local.tmpl
D assets/templates/web-proxy.tmpl
D assets/templates/windows.ipxe.tmpl
D assets/templates/windows.pxelinux.tmpl
M backend/dataTracker.go
M backend/template.go
commit 39b4276fa3f9989e369434ae33e1b01e7ca0a591
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 19:12:10 2017 -0500
Reorganize the plugin layers.
DRP internals are moved into midlayer.
The plugin base is still in plugin.
Shared data is in models.
Plugins can now be built from just models and plugin parts.
M frontend/content.go
M frontend/frontend.go
M frontend/machines.go
M frontend/plugin_providers.go
A midlayer/actions.go
A midlayer/controller.go
A midlayer/messaging.go
M server/server.go
commit 746a30d3cacbdf7ca9664fc7945af6a6104110fb
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 16:33:36 2017 -0500
Make server test put files in "normal" places.
M server/server_test.go
commit 3e9888a9d40b5b8a6c08eb738296b36c24868f18
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 16:33:36 2017 -0500
Make server test put files in "normal" places.
M server/server_test.go
commit bd1c516740a330d32ef1fc3046ff3b69090d8f24
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 16:16:57 2017 -0500
Make some machine errors hard (instead of soft).
Propagate force change on New() (to handle Patch).
Fix more of the unit tests.
M backend/bootenv.go
M backend/dataTracker.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
commit 09c5da6e8b122a183760b7da56ecc061209fb51a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 19 14:22:51 2017 -0500
Fix the softerrors for adding content. There is an issue with
this that we should think about. It works, but if there are already
soft errors in the system, it will fail to load content.
M backend/dataTracker.go
M backend/machines.go
M frontend/content.go
commit c062419c35f28a9152e24fdf2993169f3871c0b6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 18 23:29:11 2017 -0500
More fixes to backend and models and tweaks to unit tests.
M backend/dataTracker.go
M backend/plugins.go
M backend/user.go
commit afe45283b72a03f45dd8651468ef1316773f1c87
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 18 19:51:34 2017 -0500
This seems to remove the deadlock, but still races.
The race appears to be in the plugin code. This will
be resolved separately.
M backend/bootenv.go
M backend/dataTracker.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M frontend/content.go
commit 056cbbc43a7289bac305f84e314a2ba1c3461248
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Aug 18 18:20:43 2017 -0500
WIP making OnLoad() function properly
M backend/bootenv.go
M backend/dataTracker.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/preference.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M frontend/content.go
M midlayer/stack.go
commit 921d38d7c1e381a48d3bbb8914adb1fb97c28018
Author: Shane Gibson <shane@zerostack.com>
Date: Fri Aug 18 16:09:18 2017 -0700
Updated Ubuntu 16.04 to latest 16.0.43 version
M assets/bootenvs/ubuntu-16.04.yml
commit b667c1ff50f56e9724812831c61dfbfd0f5a8b86
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 18 14:45:03 2017 -0500
Update for new models.
M backend/dataTracker.go
commit b34a9ac27549bba8be89f612ae0ccb2d18a4276f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 18 14:05:29 2017 -0500
Allow for plugin debug/info messages to be turned on and off.
M backend/dataTracker.go
M server/cert.go
M server/server.go
commit 8973835ed2f387eda8dd6a7eb6bbb486e59fabf9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 18 13:49:00 2017 -0500
This adds the local bootenv to the system as default
mandatory content.
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M frontend/bootenvs.go
M frontend/frontend.go
M server/server.go
commit 6c20bd6147cf39f2e2aec84635395beefd6f8a63
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 16 21:40:42 2017 -0500
Alter validation order to make sure things are loaded in order.
M backend/dataTracker.go
commit 850df8d209d39c089dc750ad8df8a9427c2c9a1c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Aug 12 16:42:06 2017 -0500
Add more unit tests for content.
Convert default content to a file.
Put the tests in the similar directories as the defaults.
M .gitignore
M frontend/content.go
M server/server.go
M server/server_test.go
R100 test-data/etc/templates/etc.yaml test-data/etc/dr-provision/templates/etc.yaml
A test-data/usr/share/dr-provision/default.yaml
D test-data/usr/share/templates/usrshare.yaml
commit 9fcd2017324cc6881428ff8387de361d8770d75e
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Aug 18 14:49:25 2017 -0500
Update backend models to not save validation information to the durable store
M backend/bootenv.go
M backend/dataTracker.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
commit 5cd8ce4689f5ca1dcb2f25d6f246cdd1dbb5c282
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Aug 18 13:49:13 2017 -0500
Fix uncaught rebase error
M midlayer/stack.go
commit 695a70bfaa9441bd366b8091e41deaa8daf33993
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Aug 18 12:15:44 2017 -0500
It all builds, but the CLI tests fail.
Everything has Available, Errors, and Validated flags, which cause the CLI tests
to wig out because it is not expecting them.
Additionally, the backend models need to satisfy the
store.SaveCleanHooker to have the backend save eveverything with the
validation fields cleared out.
M backend/bootenv.go
M backend/dataTracker.go
M backend/dhcpUtils.go
M backend/index/index_test.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/preference.go
M backend/profiles.go
M backend/renderData_test.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M backend/user_test.go
M frontend/bootenvs.go
M frontend/content.go
M frontend/events.go
M frontend/files.go
M frontend/frontend.go
M frontend/info.go
M frontend/interfaces.go
M frontend/isos.go
M frontend/jobs.go
M frontend/leases.go
M frontend/machines.go
M frontend/params.go
M frontend/plugin_providers.go
M frontend/plugins.go
M frontend/prefs.go
M frontend/profiles.go
M frontend/reservations.go
M frontend/subnets.go
M frontend/tasks.go
M frontend/templates.go
M frontend/users.go
M frontend/websocket.go
M midlayer/dhcp.go
A midlayer/dhcpOptions.go
M midlayer/stack.go
commit 46a3614ce4de5940b71ec980620ed5c953dc601a
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 15 16:52:20 2017 -0500
Rework backend to use seperate Models and overhaul model validation
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpOption.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/errors.go
M backend/event.go
M backend/index/index.go
M backend/index/index_test.go
M backend/interfaces.go
M backend/jobs.go
M backend/lease.go
M backend/lease_test.go
M backend/machines.go
M backend/machines_test.go
M backend/param.go
M backend/param_test.go
M backend/plugins.go
M backend/preference.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData.go
M backend/renderData_test.go
M backend/reservation.go
M backend/reservation_test.go
M backend/subnet.go
M backend/subnet_test.go
M backend/task.go
M backend/task_test.go
M backend/template.go
M backend/template_test.go
M backend/user.go
M backend/user_test.go
commit f38ca3838c6e87091ed4eb70fd48a61c0a24e186
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Aug 11 09:09:06 2017 -0500
Whack excess validation code that is no longer required.
M backend/errors.go
commit fb02127a6aef2cbbe3270f46ed480eaf615398e9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 17 12:22:49 2017 -0500
Fix giaddr reply issue for client request's that have
the broadcast flag set.
M midlayer/dhcp.go
commit f998463dd96b3380b1c7d6eb40a16ecba330c9dd
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 11 14:35:14 2017 -0500
Content update should replace completely.
M frontend/content.go
commit cfc641d6b7526332b69353dd897fb2623ca61d1a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 11 13:34:11 2017 -0500
Add some functional content tests to make sure validation errors
and load errors are returned.
M .gitignore
M frontend/content.go
M midlayer/stack.go
commit bf171685e72465424b436b47696e37f1b6e1bdcf
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 11 09:38:23 2017 -0500
Rename swager generated models to genmodels so that we can
have real models.
M .gitignore
M server/assets.go
commit 6870ada201f397338ad562f15e9d0d0c9ebe9292
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Aug 11 09:17:25 2017 -0500
Add cli unit tests. Fix various issues found with it.
Still more needed
M frontend/content.go
M frontend/frontend.go
M midlayer/stack.go
M server/server.go
commit b13090716b8d3e3ecc7aee0020bff4d52bd5321b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 10 15:53:26 2017 -0500
Enable parts of each API to show up for content.
M frontend/content.go
commit 51562724d8da6df6fe218db3d000bd340b923d60
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Aug 10 15:46:34 2017 -0500
Have the midlayer stack code use overridability flags on the stacked store.
M midlayer/stack.go
commit 0ea799c83a1824a9a4c823af1b282af87358a716
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 10 15:02:46 2017 -0500
Fix unit tests for code clean up in frontend.
Add untested cli for contents.
M frontend/content.go
M frontend/frontend.go
commit 738f982cc225a1102502727850c1fce44614d73c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 10 12:22:09 2017 -0500
Fix up error and loading issues.
M backend/dataTracker.go
M frontend/content.go
M frontend/frontend.go
M midlayer/stack.go
commit 5ddfea5bcd079e87a4bb0d60f4ee22ad535d6517
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 10 10:10:31 2017 -0500
Add validation functions
Add midlayer to manage content stacks
M backend/bootenv.go
M backend/dataTracker.go
M backend/errors.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M frontend/content.go
M frontend/machines.go
A midlayer/stack.go
M server/server.go
commit dff5fc33524ce3f175e4830446691c3aea959f88
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 9 13:14:03 2017 -0500
Add push function for adding stores. This doesn't put the file
in the correct location or reload on startup.
M backend/dataTracker.go
M frontend/content.go
commit cbd0e3ba31b96f95a16101b90698c16c43240923
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 9 12:35:40 2017 -0500
Add A lock all function and use it.
Add A put function
M backend/dataTracker.go
M frontend/content.go
commit 2e14c7283a8d76c521c8881af86d665cafd65174
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 9 10:49:46 2017 -0500
Tweaks for import.
M frontend/content.go
commit d686e136c7471898692779970a7bd7eb5bd521e9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 9 14:26:18 2017 -0500
Update for stack changes
M backend/dataTracker.go
A frontend/content.go
M frontend/frontend.go
M server/server.go
commit ab8598bd5e8b3d882490c4b489aab374339ec78d
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Aug 10 07:37:21 2017 -0500
Oops, add test files for stacked stores
A test-data/etc/templates/etc.yaml
A test-data/usr/share/templates/usrshare.yaml
commit e95dc92761e7d1727896890f92b6b28eb2dd3438
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 9 16:28:09 2017 -0500
Update to have shiny default local and default stores.
The server grew a --local-store and a --default-store option.
M server/server.go
M server/server_test.go
commit 1c17bb7499e0824dd78ecf00ca602b0084ff40eb
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 9 14:11:44 2017 -0500
Add stores for local and default content
M server/server.go
M server/server_test.go
commit 40d61ee5ae51916f64dca8518e8dab0f85ff3c1e
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Aug 8 11:35:29 2017 -0500
Update to use generic Open() syntax from digitalrebar/store
This also removes the last dependency on the old
digitalrebar/digitalrebar codebase.
M backend/dataTracker_test.go
M server/server.go
commit f55f48140484963def99d6ab8d08d0851c5f2ffb
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Aug 7 12:02:06 2017 -0500
Update provsion to work with the latest Store code.
This sets the stage for letting provision use stackable
and read-only stores.
M backend/bootenv.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/index/index.go
M backend/index/index_test.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/preference.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M midlayer/dhcp_test.go
M server/server.go
commit 7362feba2bc62bae5ef74780daec3e7ea18f33e9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Aug 7 15:25:56 2017 -0500
Add the ability to filter machines by parameters on list
calls. Supported are bool, int, and string parameters.
app.string_var=\"val\"
app.bool_var=true
app.int_var=135
M backend/machines.go
M frontend/frontend.go
commit 8c8419b6562a2deb24bec56412833f69771f1a6f
Author: galthaus <galthaus@austin.rr.com>
Date: Sat Aug 5 11:13:56 2017 -0500
Fix for now. More changes to come.
M backend/user.go
commit a7824257b885fe52d92daacafb04a4a3ed41ce34
Author: Rob Hirschfeld <rob@rackn.com>
Date: Fri Aug 4 22:46:52 2017 -0500
Create Trademark.rst
A Trademark.rst
commit 8ba1fb5b7770330558d254c51e748b6cee0e13a9
Author: Rob Hirschfeld <rob@rackn.com>
Date: Fri Aug 4 22:43:03 2017 -0500
Create CONTRIBUTING.rst
A CONTRIBUTING.rst
commit 643aedb1f7880245d7b8d2f4e90e1e9c324158e6
Author: Rob Hirschfeld <rob@rackn.com>
Date: Fri Aug 4 22:37:52 2017 -0500
from Github community template
A CODE_OF_CONDUCT.md
commit d57b5453a269d66969c0ab1bfcfc62beb6727aaa
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 3 19:47:34 2017 -0500
This is the completion of work started by @niemanme.
This adds as set of CLI helpers to set various subnet fields without
having to go through the json blob paths.
This also fixes a latent bug in the assureDecode code path.
GIN was sending 400 with strings and confusing the client on
bad json object. This needs to use a lower level call to avoid
the GIN help.
M frontend/frontend.go
commit f2c8ac5dc1c028b038344adb5e3961aecd31f2cd
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 3 17:02:18 2017 -0500
Add a cli and endpoint to post events.
Update the runner cli to use the post for task actions.
M backend/event.go
A frontend/events.go
M frontend/frontend.go
commit 3634323bf9aa9c4c612b72b905220ac66288c236
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Aug 3 15:08:03 2017 -0500
Port dr-provisioner over to using digitalrebar/store
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/errors.go
M backend/index/index.go
M backend/index/index_test.go
M backend/interfaces_test.go
M backend/jobs.go
M backend/lease.go
M backend/lease_test.go
M backend/machines.go
M backend/machines_test.go
M backend/param.go
M backend/param_test.go
M backend/plugins.go
M backend/preference.go
M backend/preference_test.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData.go
M backend/renderData_test.go
M backend/reservation.go
M backend/reservation_test.go
M backend/subnet.go
M backend/subnet_test.go
M backend/task.go
M backend/task_test.go
M backend/template.go
M backend/template_test.go
M backend/user.go
M backend/user_test.go
M frontend/frontend.go
M frontend/isos.go
M frontend/jobs.go
M frontend/machines.go
M frontend/plugins.go
M frontend/prefs.go
M frontend/profiles.go
M frontend/tasks.go
M frontend/users.go
M midlayer/dhcp_test.go
M server/server.go
commit e419347b11f9e5c4ca75bbee96fa504f8c847861
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 3 13:11:51 2017 -0500
Fix unit tests to actually write files and run commands.
M backend/renderData.go
commit 77b3c95aa4832610aabb9ff308b092c302c96949
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 2 16:35:07 2017 -0500
Try different code cov.
R059 .codecov.yml codecov.yml
commit 0319da95bc4924fc621e0ee50f2faaeb189e7015
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 2 16:08:44 2017 -0500
Add a new cli command that will run jobs per the
expected job work flow.
M backend/event.go
M backend/jobs.go
M frontend/jobs.go
commit 737e0e388aa078191db1c64b45618ac495be941b
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Aug 3 11:46:47 2017 -0500
Update job logging to avoid working with Strings and work with io.Readers instead
M backend/jobs.go
M frontend/jobs.go
commit 4ff187188a3b3292454cd62153715191cdc6af1f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 1 11:46:30 2017 -0500
Add missing closes for plugin upload and iso upload
M frontend/isos.go
commit b3df44ad06e37e0ce8ddfb73cefa040cdde6dbdb
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 1 10:18:08 2017 -0500
Add upload and remove plugin providers. This will allow for plugins
to be added to the running system through the API.
M frontend/plugin_providers.go
commit 60c5eeaee0daadb1c9484648df591e7c1560709a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Aug 1 07:08:16 2017 -0500
Add a codecov yaml file to always use the master branch for the
location of the codecov file and change our ranges to match
more realistic targets for us.
A .codecov.yml
commit 9228c127deb867d0437c660ed75c2c41c51fef69
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 31 16:28:45 2017 -0500
Add Enabled flag for subnet to allow for created but not enabled
subnets. The subnet will not hand out leases if not enabled.
M backend/bootenv.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/subnet.go
M embedded/assets/ui/app/render.jsx
M embedded/assets/ui/public/build.js
M frontend/subnets.go
commit e19038dbff950b30e297bb0442c216a56672a804
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 31 15:09:50 2017 -0500
Add additional info to the info call.
M frontend/frontend.go
M frontend/info.go
M frontend/users.go
M server/server.go
commit 7a3ed7421f4833e967cd6d9e796a517be6a12bee
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 31 13:43:22 2017 -0500
Separate provisioner enablement from tftp enablement.
This is mostly needed or used for the Packet environments.
We should be able to get them running without tftp. iPXE
should be using http accesses.
M server/server.go
commit 5ca64012a51cc1337f2f82537f649b9c20fed11d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Jul 29 22:24:32 2017 -0500
fix directory issue
M server/server_test.go
commit a91566435c14787ef56ba08f35f6647f41e57e5b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Jul 29 21:53:08 2017 -0500
Add the ability to append and get the log for a job.
Rework the directory parameters of drp so that we can
have a log-dir as well.
Fixes files get and exists as well.
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/jobs.go
M frontend/files.go
M frontend/jobs.go
M midlayer/dhcp_test.go
M server/server.go
M server/swagger.base.yml
commit 2854e91686e68af051c894ca465e4c3f825a23aa
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Jul 29 10:39:13 2017 -0500
Add Name to JobAction field
For auth, jobs will be authed by the machine uuid as the
specific key. This way a machine owns its jobs.
TO do this, AuthKey is added to all objects so that it
can override the primary key.
Update yaml code from glide.
Fix bug in nocontent json gin function
M backend/bootenv.go
M backend/dataTracker.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/plugins.go
M backend/preference.go
M backend/profiles.go
M backend/renderData.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M frontend/frontend.go
M frontend/jobs.go
commit 3b68aadb1677c46cf4a6aa650f6a0b5b5728b747
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jul 28 17:01:00 2017 -0500
Add the ability for the cli/API to render a job by
call the actions endpoint. This will render
the templates on the attached task and return
the templates as a list.
M backend/jobs.go
M frontend/jobs.go
commit 43173675e1fcde52dba4de12da0ac58caedd5d10
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jul 28 13:39:30 2017 -0500
Add a machines wait cli option.
This command will wait until the parameter becomes the
specified value or a timeout or interrupt occurs.
M backend/dataTracker.go
commit a582445d0d491beef069291a0332cd2d20b5bcc0
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 27 15:38:04 2017 -0500
Finish up unit tests on jobs and job flows.
M backend/jobs.go
commit f4dc17deb9f8c1b888b854f6e8c05b4d248dce02
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 27 09:45:15 2017 -0500
Add Runnable index to machines.
Allow Job Create to take machine uuid, name, or json struct.
M backend/machines.go
M frontend/machines.go
commit 26d9ef3edf2c98c07a6b6c21c04605cba6f5dd72
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 27 00:00:48 2017 -0500
Add the start of the jobs unit test. Fix list and other
bugs along the way. Still need to test update
and job/task workflow.
M backend/jobs.go
M backend/machines.go
M frontend/jobs.go
commit 24e78ad800320f2cd82fe5b05b3557942da74ce3
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 26 17:02:23 2017 -0500
Add jobs create code and tweak components to get that
close to working.
M backend/jobs.go
M backend/machines.go
M frontend/jobs.go
M frontend/machines.go
commit 3327d6756e7ec3b690ecd0c2a042e33f4b44ccd9
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 25 17:21:36 2017 -0500
Lots of little tweaks to provide two features.
1. Frontend can pass a validator that will get called on
Save/Patch/Update/Create/Remove with the old and new object.
For remove, new is nil. For create, old is nil.
Otherwise a save/update/patch operation receives new and old.
If an error is returned the action will fail.
2. Job objects are validated for valid conditions before save.
a. bootenv exists and is available.
b. task exists and is available.
c. state is valid.
d. Machine exists.
3. Job objects are validated for valid conditions before delete.
a. State is failed or finished before deleting.
4. Machine Object picks up tasks lists from bootenvs and profiles
when bootenv is changed.
5. Frontend uses the new capabilities to not change the bootenv
unless the task list is complete or force flag is set
6. Add force flag to CLI and use it for machine update/patch.
7. Removes the busted jobs cli unit tests. Add back later.
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/jobs.go
M backend/lease_test.go
M backend/machines.go
M backend/machines_test.go
M backend/param_test.go
M backend/plugins.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData_test.go
M backend/reservation_test.go
M backend/subnet_test.go
M backend/task_test.go
M backend/template_test.go
M backend/user.go
M backend/user_test.go
M frontend/bootenvs.go
M frontend/frontend.go
M frontend/isos.go
M frontend/jobs.go
M frontend/leases.go
M frontend/machines.go
M frontend/params.go
M frontend/plugins.go
M frontend/profiles.go
M frontend/reservations.go
M frontend/subnets.go
M frontend/tasks.go
M frontend/templates.go
M frontend/users.go
M midlayer/dhcp.go
commit 3839433f3accb80d75ac28a07d26481b6b5216ea
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 13:26:22 2017 -0500
Start a jobs unit test
Jobs should always have UUIDs
M frontend/jobs.go
commit 20dc2388b73b92794271ad6a61936d16e540575b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 27 13:39:12 2017 -0500
Add info struct to gettoken. This helps the UI do less calls.
M frontend/frontend.go
M frontend/info.go
M frontend/users.go
commit d2aad55e2bdf41c9a67ed7f8f0ba71d93a510493
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 26 11:01:06 2017 -0500
This tracks action and publish uses to ensure
that they are gone before removing a plugin.
Also fixes some start/stop sequencing when
plugins change.
Between these two, it seems to address #342
M backend/event.go
M frontend/websocket.go
commit 6eb92f338bf587d383662931a5d0e32efadaaf40
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 20:22:18 2017 -0500
Add more events. Still more to add, but probably a good start.
M frontend/machines.go
commit 858f068c4235956dda682ad1a47a3aa0d389f68b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 17:54:13 2017 -0500
Fix data race around publish list.
M backend/event.go
commit 31a7441f0ca1ed8ebbdb7a5b700f2a55afa9e846
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 17:14:29 2017 -0500
Only show actions that are available to the machine based
upon the required parameters.
M frontend/machines.go
commit e79c3d970268846d1ed3dd5d85ee1b1f60fa75e4
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 11:08:43 2017 -0500
Remove stats - too early.
Fix build test issues
M frontend/frontend.go
D frontend/stats.go
M midlayer/dhcp_test.go
M midlayer/static_test.go
M midlayer/tftp_test.go
commit f5aab87072909d07d5f75bbe4dba4b23741d57d0
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 10:41:55 2017 -0500
Switch from RPC style to start messaging on pipes.
M backend/dataTracker_test.go
M backend/event.go
M frontend/frontend.go
M frontend/machines.go
M frontend/plugin_providers.go
A frontend/stats.go
M server/server.go
commit bf0a4a463ac072651e522bdc5009c6f0b278a1ec
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 08:11:20 2017 -0500
Reorg code and drop rpc.
D midlayer/actions.go
D midlayer/plugin.go
D midlayer/rpc.go
commit e94ec3fcc0554c260515823a37c49c9341c9f42f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sun Jul 23 21:09:14 2017 -0500
This has a haning RPC close issue. I'm not sure this is
fixable.
M frontend/machines.go
M midlayer/actions.go
M midlayer/plugin.go
M midlayer/rpc.go
commit a5257f0605bf27895df1717b2986e56c898deb48
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 20 00:03:17 2017 -0500
Fix unit tests for plugins, plugin_providers, and machines actions.
This enhances the incrementer plugin to have most of the
features that we test. May need to add more.
M backend/plugins.go
M frontend/machines.go
M frontend/plugins.go
M midlayer/plugin.go
M midlayer/rpc.go
M server/server.go
commit 89449ab638f74a95a2a65a32a9d3fe3b8284dad6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 21:50:55 2017 -0500
Remove bin from list
M .gitignore
commit 072bd1909b862a524d4a1f192bc7964b7fe6dee5
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 17:54:10 2017 -0500
Fix bugs in support of adding machine action CLI
M frontend/machines.go
M midlayer/actions.go
M midlayer/plugin.go
commit f196b35cfe19b36d3801e16825fa676dc62282d5
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 16:47:07 2017 -0500
Allow Param validators to be called outside of backend control.
Fix var insanity in action call
M backend/param.go
M frontend/machines.go
commit 0366f4179a1db132e4a0aa2d7cfacddb75a66d77
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 13:13:14 2017 -0500
Add API endpoints and CLIs for Tasks and jobs and params.
Unit tests to follow.
M backend/dataTracker.go
M frontend/frontend.go
A frontend/jobs.go
A frontend/tasks.go
commit dc33ca97893bb7ad913544f1baaf7ccce12d6ecf
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 12:01:55 2017 -0500
Have validation down on all parameters in an action call.
M backend/dataTracker.go
M backend/renderData.go
M frontend/machines.go
commit 9e80d2c93275fc6f77723783f8462f7f83d1de2d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 11:52:34 2017 -0500
Add parameter creation and validation on actions from plugins.
M backend/machines.go
M backend/plugins.go
M frontend/machines.go
M midlayer/actions.go
M midlayer/plugin.go
commit 252f3d03cedecac89391ffb7e6ffc1a86ff5fb6b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 09:37:51 2017 -0500
Attempt to get existing unit tests working again.
M server/server.go
M server/server_test.go
commit a64b2f93cbb7ceec183b36a244cfd26a2f09b854
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 00:23:21 2017 -0500
Handle restart/remove/add for plugin providers
Don't loop as much.
M midlayer/plugin.go
M midlayer/rpc.go
commit 6ef33e238ef6b5419dacce2d6edbd17ace973c35
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 23:06:11 2017 -0500
Add more logging.
If config fails, fail the plugin start.
M midlayer/plugin.go
M midlayer/rpc.go
commit a1f7637830d6e9fdecb26ae3a8f8266b5464e24f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 22:43:09 2017 -0500
Fix path issue in startup plugin provider finding.
M midlayer/plugin.go
commit 6ca1e9c3f7ad34a86ed4f23ca070dc1d003d4a8a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 22:31:45 2017 -0500
Add Machine actions, an API to get and list them
Run them and pass them to plugins.
M backend/event.go
M frontend/machines.go
M frontend/plugins.go
A midlayer/actions.go
M midlayer/plugin.go
M midlayer/rpc.go
commit e2576e46a126642f21a47470f50433cbebbb99b0
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 09:35:55 2017 -0500
First pass at plugins. This does a publish plugin through
RPC over Pipes and exec. More robust process handling
is needed.
M backend/dataTracker.go
A backend/plugins.go
M frontend/frontend.go
A frontend/plugin_providers.go
A frontend/plugins.go
A midlayer/plugin.go
A midlayer/rpc.go
M server/server.go
M server/swagger.base.yml
commit 66298598837c3fd3e9f03d83dfea122c1af1c4d0
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 19:15:04 2017 -0500
Add an ID to DRP that is configurable from command line args
or is the first mac address
M frontend/frontend.go
M frontend/info.go
M server/server.go
commit 7dcf24594cce886e8a1943ebecde9f75859945d7
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 24 18:47:48 2017 -0500
Add an info api call to get DRP info.
M frontend/frontend.go
A frontend/info.go
M server/swagger.base.yml
commit 088c8a91095f9d3491432a7db6a9fe6eac2334f1
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 18 09:37:51 2017 -0500
Attempt to get existing unit tests working again.
M backend/dataTracker_test.go
M midlayer/dhcp_test.go
M midlayer/static_test.go
M midlayer/tftp_test.go
commit 0243a01eded001fa4650dc849ec14cddd920e408
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 09:26:25 2017 -0500
Remove extra websocket call
M frontend/websocket.go
commit c80f2e2f2f3f6a1146b1011aca8440790463f3ad
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jul 17 09:25:22 2017 -0500
Add missing event for save/update
M backend/dataTracker.go
commit 2bf16ec282896da42222c1257317c9b53a4562af
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Jul 15 14:20:41 2017 -0500
Add events and websockets to get them all
M backend/dataTracker.go
A backend/event.go
M frontend/frontend.go
A frontend/websocket.go
M midlayer/dhcp.go
M midlayer/static.go
M midlayer/tftp.go
M server/server.go
A websocket-test.html
commit e5a6ad01205c8eda1f4da015ccd02d9b4af5bbc8
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 14:16:29 2017 -0500
Remove DTI - it is not used anymore.
M frontend/frontend.go
M frontend/isos.go
commit de299a3362efaf1012cafff524560fe773c70803
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 14:13:45 2017 -0500
Remove commented out code.
M backend/bootenv.go
commit eaac6a776577330133fc6b4ece09a9c3077c4b1e
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 13:34:08 2017 -0500
Oopps forgot midlayer dt fixup.
M midlayer/dhcp_test.go
commit 8e73b4eb92fcde0ed6639fc21474649db7bda03a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 13:08:48 2017 -0500
Remove frontend tests for the moment - to see how bad
coverage falls
D frontend/bootenvs_test.go
D frontend/files_test.go
D frontend/frontend_test.go
D frontend/interfaces_test.go
D frontend/isos_test.go
D frontend/leases_test.go
D frontend/machines_test.go
D frontend/params_test.go
D frontend/prefs_test.go
D frontend/profiles_test.go
D frontend/reservations_test.go
D frontend/subnets_test.go
D frontend/templates_test.go
D frontend/users_test.go
commit 72331b6ef42312e109efedefa59ff216d242513d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 12:42:22 2017 -0500
Get CLI tests running again.
Undo validated state for machines and profiles. Not needed now.
M backend/machines.go
M backend/profiles.go
commit ea2bbd3975cd5582b7b6d3216c29ac58941cfb0a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 11:21:29 2017 -0500
More fixes and tweaks. All frontend tests to run with a
mostly update DTI system.
Fix backend and frontend lock semantics so that cli tests
mostly pass.
More to go.
M backend/bootenv.go
M backend/dataTracker.go
M backend/index/index.go
M backend/jobs.go
M backend/lease.go
M backend/machines.go
M backend/param.go
M backend/preference.go
M backend/profiles.go
M backend/reservation.go
M backend/subnet.go
M backend/task.go
M backend/template.go
M backend/user.go
M backend/user_test.go
M frontend/bootenvs_test.go
M frontend/frontend.go
M frontend/frontend_test.go
M frontend/leases_test.go
M frontend/machines.go
M frontend/machines_test.go
M frontend/params_test.go
M frontend/profiles.go
M frontend/profiles_test.go
M frontend/reservations_test.go
M frontend/subnets_test.go
M frontend/templates_test.go
M frontend/users.go
M frontend/users_test.go
commit e07e2aaf8e72fe66e355f27126adaa4d9f008c10
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 12 10:03:48 2017 -0500
Change cert to be not a CA cert that we use because
it wigs out some browsers.
M server/cert.go
commit 2af3c70204667c1e3e19129b06c91998067a8cdb
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 11 14:15:06 2017 -0500
Move the render unknown into the datatrack init.
Update unit tests to handle this fact.
Fix util tests for new signatures
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpUtils_test.go
M backend/preference_test.go
M server/server.go
commit 466f685720a14fbf38a02f51614c0de0384b1da0
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Jul 10 17:32:27 2017 -0500
Frontend compiles with new locking regime
M backend/user.go
M backend/user_test.go
M frontend/frontend.go
M frontend/isos.go
M frontend/machines.go
M frontend/prefs.go
M frontend/profiles.go
M frontend/users.go
commit f4050bef77663141c340057cbd38c13764e16ebb
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Jul 10 14:12:21 2017 -0500
Convert midlayer to new locking scheme
M backend/dhcpUtils.go
M midlayer/dhcp.go
commit 7a2a34067bacf90ddee441b9ceadd7b6b8bd2990
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Sat Jul 8 21:03:08 2017 -0500
Fix all the backend tests.
All the backend tests now conform to the New Locking Model(tm).
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/index/index.go
M backend/index/index_test.go
M backend/lease.go
M backend/lease_test.go
M backend/machines.go
M backend/machines_test.go
M backend/param_test.go
M backend/preference_test.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData_test.go
M backend/reservation_test.go
M backend/subnet_test.go
M backend/task_test.go
M backend/template_test.go
M backend/user_test.go
commit 14f8341a0355ca8a6834ff4c6c844fc624cdbfed
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Sat Jul 8 20:49:57 2017 -0500
Refactor logging, part 1. WIP, expect build and test failures
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/dataTracker_test.go
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M backend/errors.go
M backend/index/index.go
M backend/jobs.go
M backend/lease.go
M backend/lease_test.go
M backend/machines.go
M backend/machines_test.go
M backend/param.go
M backend/param_test.go
M backend/preference.go
M backend/profiles.go
M backend/profiles_test.go
M backend/renderData.go
M backend/renderData_test.go
M backend/reservation.go
M backend/reservation_test.go
M backend/subnet.go
M backend/subnet_test.go
M backend/task.go
M backend/task_test.go
M backend/template.go
M backend/template_test.go
M backend/user.go
M backend/user_test.go
commit ce267b17f86f0cbb35815378886870e474524500
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jul 6 12:41:29 2017 -0500
Add nonfunctional skeleton for Jobs
A backend/jobs.go
M backend/machines.go
M backend/task.go
commit 328a855544ee18b27e9e6624596f94a2c992e7da
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jul 6 12:40:50 2017 -0500
Validated cannot be changed via the API.
M backend/errors.go
commit 378ed61c59347620797e1efce1a4bf1a4442cc16
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 23:51:23 2017 -0500
This hack seems to work, but seems strange. It is actually
a fix for an issue that I've been having with iso uploads and
replacement of sledgehammer. The boot envs fail to replace
sledgehammer because the base file doesn't overwrite the sha256.
We may want to consider that sha256 missing means don't care.
M backend/bootenv.go
commit b35615fc0eed31ba5d0d3b61bf872963a45c7b36
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 23:40:13 2017 -0500
Fix unit tests for new fields.
Put back some model helpers.
Everything seems to work except for a race condition error.
Attempted to fix by altering the Validate flag setting location,
but that moved the race into the explode iso function.
M backend/bootenv.go
M backend/dataTracker.go
M backend/errors.go
M backend/machines.go
M backend/profiles.go
M frontend/bootenvs_test.go
commit f1732f1e6b332ce78b4af46f72d6f6a84a005554
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jun 28 15:45:31 2017 -0500
Start adding Tasks into dr-provision
This adds the Tasks model to the backend, and wires it in all the
places it needs to be w.r.t template expansion.
Please note that this is a work in progress -- Tasks are wired in, but
they do not do anything and there are further support changes to be
made for logging, task tracking, etc.
M backend/bootenv.go
M backend/bootenv_test.go
M backend/dataTracker.go
M backend/errors.go
M backend/machines.go
M backend/machines_test.go
M backend/param.go
M backend/profiles.go
M backend/renderData.go
M backend/renderData_test.go
A backend/task.go
A backend/task_test.go
M backend/template.go
commit 5b293e4e13b662a6fca1e438f0a0bda0bb4a0e71
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 16:25:23 2017 -0500
Add console defaults for all bootenvs.
M assets/bootenvs/centos-6.8.yml
M assets/bootenvs/centos-7.3.1611.yml
M assets/bootenvs/debian-7.yml
M assets/bootenvs/debian-8.yml
M assets/bootenvs/discovery.yml
M assets/bootenvs/redhat-6.5.yml
M assets/bootenvs/redhat-7.0.yml
M assets/bootenvs/scientificlinux-6.8.yml
M assets/bootenvs/sledgehammer.yml
M assets/bootenvs/ubuntu-14.04.yml
M assets/bootenvs/ubuntu-16.04.yml
commit 69861dcdb31697c8615023622c5a1ef0d657bc82
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 15:47:42 2017 -0500
Add UX unit test.
M frontend/frontend_test.go
commit 6f53fb47651622093a1c534e330a60a738e944f1
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 15:35:06 2017 -0500
Fix unit tests
M frontend/frontend_test.go
commit 69cb80b4a2dba7f93c13e53d1a007ef68e38da35
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 5 12:25:12 2017 -0500
Add redirect to public site.
M frontend/frontend.go
M server/server.go
End of Note