commit a3841492db814441c80310a971532f630203da51
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Feb 20 12:33:43 2018 -0600
Bump go deps, and get rid of the delayed EmbeddedAsset stuff
M cli/common_test.go
commit f6ec3d3ed6cca8f2f32d2d2ed329d13a5470ebc0
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Feb 20 11:45:24 2018 -0600
Fix a couple of data races the race detector found
M api/client.go
M api/jobs.go
commit 33353396966d9e53cdfc5862b0cde2c05ca5f4bb
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Feb 20 10:31:03 2018 -0600
Switch to line by line logging
M api/jobs.go
commit 81464172f0346f1c43eabd9c8ed0dbb8890aa29a
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Feb 20 09:39:25 2018 -0600
Switch to using os.Pipe for the job runner
M api/jobs.go
commit 817b1775e3d981b200224334e40792cff34cfc83
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Feb 19 16:05:40 2018 -0600
Oops, need params when rendering job tasks
M api/cmdHelper.go
commit 13536f9870540c68c3bfa0e0dfe143a39511c4a6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 19 16:20:10 2018 -0600
Add some migration notes.
M doc/upgrade.rst
commit a67bc836d6027a5495a119ab3c2c14f79d4a6e38
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 19 16:10:28 2018 -0600
Udpate docs heading into 3.7 release.
M doc/cli/drpcli.rst
A doc/cli/drpcli_gohai.rst
commit 6c24e910109b7a15b7871b038232c4da9b598b9c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Sat Feb 17 17:47:27 2018 -0600
Move the unpack function into the plugin wrapper
triggered by an interface function.
M cmds/incrementer/incrementer.go
M plugin/plugin.go
commit ec96f34080fa63ed2ec936723970513d9abb3735
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Feb 16 11:42:41 2018 -0600
Have the plugins only use stdlib for HTTP server stuff
A plugin/mux/utils.go
M plugin/plugin.go
D plugin/utils.go
commit e5f03d93f665712d0e8caf565211799588311147
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Feb 15 16:30:00 2018 -0600
Fix busted files API test
M api/files_test.go
commit 3461fd013f5c049bee60726ecc5adbe433077ae3
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Feb 15 14:26:08 2018 -0600
Allow plugin providers to unpack assets to be served statically
M cli/plugin_providers_test.go
M cli/test-data/output/TestFilesCli/files.list.2/stdout.expect
M cli/test-data/output/TestFilesCli/files.list.3/stdout.expect
M cli/test-data/output/TestFilesCli/files.list/stdout.expect
A cli/test-data/output/TestPluginProviderCli/files.get./plugin_providers/incrementer/noFile.to.336d5ebc5436534e61d16e63ddfca327/stderr.expect
A cli/test-data/output/TestPluginProviderCli/files.get./plugin_providers/incrementer/testFile.to.336d5ebc5436534e61d16e63ddfca327/stdout.expect
M cmds/incrementer/incrementer.go
commit 28f3ca443ac9cfefc0e70079a783165a1a0c1e65
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Feb 14 17:18:38 2018 -0600
To make docker builds work correctly in
docker-cloud which updates docker hub,
we need to have a delay for docker builds
until the zip is uploaded. Add a delay
in install.sh option for a file to
show up. Once the file shows up, we will
continue the install.
M .gitignore
commit fcd0267c6f727e46ebc7054135b2588b8621abbf
Author: Rob Hirschfeld <rob@rackn.com>
Date: Wed Feb 14 12:23:26 2018 -0600
tweaks for embedding
M doc/quickstart.rst
commit 3eb76c11d5b3fba965b9a1277061c5014e027f06
Author: Rob Hirschfeld <rob@rackn.com>
Date: Tue Feb 13 15:26:58 2018 -0600
update the graphic for docs
M doc/images/digital_rebar_small.png
commit b0c1dd8bbcc5f811bc545df6b0bd3806d29c6a5c
Author: Rob Hirschfeld <rob@rackn.com>
Date: Tue Feb 13 11:14:52 2018 -0600
Ensure
M doc/quickstart.rst
commit bd1e730c617c74acd2a8e6cea58b52c3f28b0c39
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 12 23:01:38 2018 -0600
Add KeyName to model so that things can know what field is
used for key. Terraform provider can use this to
figure out what translates to make.
M models/bootenv.go
M models/content.go
M models/interface.go
M models/job.go
M models/lease.go
M models/machine.go
M models/param.go
M models/plugin.go
M models/plugin_provider.go
M models/preference.go
M models/profile.go
M models/reservation.go
M models/stage.go
M models/subnet.go
M models/task.go
M models/template.go
M models/user.go
M models/utils.go
commit 3bad6deec6de2e140ee72f299d06dda3e6a0a976
Author: Shane Gibson <shane@rackn.com>
Date: Mon Feb 12 18:08:46 2018 -0800
Add 'note' to use latest doc to ToC and QuickStart
M README.rst
M doc/quickstart.rst
commit e27ad1f6d1e2a3fca284c79c0d704a82f29e80f2
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Feb 12 14:57:55 2018 -0600
Have requestTracker.Find always return a copy.
Only the backend should be able to mess with objects in the indexes
directly.
To start fixing this up, arrange for Find to always return a copy of
the backend object instead of the object itself, unless we are calling
it from the backend directly.
Also add a test to catch the use case that is a consequence of not
having this check in place.
M cli/contents_test.go
A cli/test-data/output/TestContentCli/contents.create.9e158a3d3b178f0103e2e0402e827273/stdout.expect
A cli/test-data/output/TestContentCli/contents.destroy.withProfile/stdout.expect
A cli/test-data/output/TestContentCli/profiles.get.englobal.param.foo/stdout.expect
A cli/test-data/output/TestContentCli/profiles.set.englobal.param.foo.to.baz/stderr.expect
M models/bootenv.go
M models/lease.go
commit 4d697b2c99bd18294034fb36e7a4f4d07b27cc28
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 12 11:08:37 2018 -0600
When idle waiting for new tasks in the runner,
we should also look for a stage change. In case
the admin chooses to make an empty task stage
as the start of a workflow, we should additionally
watch for a stage change and then continue the
process.
M api/jobs.go
commit 3627833627d981eacf3f049797d9d1a155dee8db
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 12 09:59:13 2018 -0600
Fix unbundle and allow contents bundle/unbundle to work
without access to DRP.
M cli/contents.go
M cli/startup.go
commit c848095197924a8014330c1ba0212b6be48e3311
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Feb 9 16:39:38 2018 -0600
Fix issue with yaml import.
Add unit tests for file imports.
More could be added, but the general case is
covered.
M cli/machines_test.go
M cli/profiles_test.go
A cli/test-data/base/machines/bad.json
A cli/test-data/base/machines/bad.yaml
A cli/test-data/base/machines/create.json
A cli/test-data/base/machines/create.yaml
A cli/test-data/base/machines/update.json
A cli/test-data/base/machines/update.yaml
A cli/test-data/base/profiles/bad.json
A cli/test-data/base/profiles/bad.yaml
A cli/test-data/base/profiles/create.json
A cli/test-data/base/profiles/create.yaml
A cli/test-data/base/profiles/update.json
A cli/test-data/base/profiles/update.yaml
M cli/test-data/output/TestBootEnvCli/bootenvs.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestJobCli/jobs.update.00000000-0000-0000-0000-000000000001.2613e56daa4b9dcd02c9e93badc4aa5b/stderr.expect
M cli/test-data/output/TestJobCli/jobs.update.00000000-0000-0000-0000-000000000001.c8a25146f0e38b134dc596637b05d52e/stderr.expect
M cli/test-data/output/TestMachineCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.asdgasdg/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.create.test-data/base/machines/bad.json/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.create.test-data/base/machines/bad.yaml/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.create.test-data/base/machines/create.json/stdout.expect
A cli/test-data/output/TestMachineFileImport/machines.create.test-data/base/machines/create.yaml/stdout.expect
A cli/test-data/output/TestMachineFileImport/machines.destroy.a2d9b43a-b545-464b-8bc4-088daa7fa7c4/stdout.expect
A cli/test-data/output/TestMachineFileImport/machines.destroy.b2d9b43a-b545-464b-8bc4-088daa7fa7c4/stdout.expect
A cli/test-data/output/TestMachineFileImport/machines.update.a2d9b43a-b545-464b-8bc4-088daa7fa7c4.test-data/base/machines/bad.yaml/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.update.a2d9b43a-b545-464b-8bc4-088daa7fa7c4.test-data/base/machines/update.yaml/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.update.a2d9b43a-b545-464b-8bc4-088daa7fa7c4.test-data/base/machines/update.yaml/stdout.expect
A cli/test-data/output/TestMachineFileImport/machines.update.b2d9b43a-b545-464b-8bc4-088daa7fa7c4.test-data/base/machines/bad.json/stderr.expect
A cli/test-data/output/TestMachineFileImport/machines.update.b2d9b43a-b545-464b-8bc4-088daa7fa7c4.test-data/base/machines/update.json/stdout.expect
M cli/test-data/output/TestParamCli/params.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestPluginCli/plugins.update.i-woman.asdgasdg/stderr.expect
M cli/test-data/output/TestProfileCli/profiles.update.john.asdgasdg/stderr.expect
A cli/test-data/output/TestProfileFileImport/profiles.create.test-data/base/profiles/bad.json/stderr.expect
A cli/test-data/output/TestProfileFileImport/profiles.create.test-data/base/profiles/bad.yaml/stderr.expect
A cli/test-data/output/TestProfileFileImport/profiles.create.test-data/base/profiles/create.json/stdout.expect
A cli/test-data/output/TestProfileFileImport/profiles.create.test-data/base/profiles/create.yaml/stdout.expect
A cli/test-data/output/TestProfileFileImport/profiles.destroy.jsontest/stdout.expect
A cli/test-data/output/TestProfileFileImport/profiles.destroy.yamltest/stdout.expect
A cli/test-data/output/TestProfileFileImport/profiles.update.jsontest.test-data/base/profiles/bad.json/stderr.expect
A cli/test-data/output/TestProfileFileImport/profiles.update.jsontest.test-data/base/profiles/update.json/stdout.expect
A cli/test-data/output/TestProfileFileImport/profiles.update.yamltest.test-data/base/profiles/bad.yaml/stderr.expect
A cli/test-data/output/TestProfileFileImport/profiles.update.yamltest.test-data/base/profiles/update.yaml/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.update.192.168.100.100.asdgasdg/stderr.expect
M cli/test-data/output/TestStageCli/stages.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestSubnetCli/subnets.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestTaskCli/tasks.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestTemplateCli/templates.update.john.asdgasdg/stderr.expect
M cli/test-data/output/TestUserCli/users.update.john.asdgasdg/stderr.expect
M cli/utils.go
commit 1a545538ffc457122efe990dfd8d33ced0d660b0
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Feb 8 15:10:28 2018 -0600
Make NextServer handling identical in Reservations and Subnets.
Also update the documentation and comments to node that you only need
to set NextServer if you are transferring TFTP or DHCP control away
from dr-provision.
M doc/operation.rst
M doc/quickstart.rst
M models/reservation.go
M models/subnet.go
commit 0ed625c52191137a2335d77b5f1f7e14eb84b734
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Feb 5 12:56:27 2018 -0600
Fix up the CLI tests to account for the new Unamanged flag
M cli/test-data/output/TestSubnetCli/subnets.create.90eb4f34bce524495a681f3914843f65/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.create.bef8372121d11414c0ca0b3baa59175e/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.leasetimes.john.65.7300/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.2/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.4/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Enabled=false/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Name=john/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.NextServer=3.3.3.3/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Proxy=false/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Strategy=MAC/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Subnet=192.168.100.0/24/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.nextserver.john.1.24.36.16/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.pickers.john.none,nextFree,mostExpired/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.range.john.192.168.100.10.192.168.100.200/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.set.john.option.6.to.66/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.set.john.option.6.to.null/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.2/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.3/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.4/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.subnet.john.192.168.100.0/10/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.update.john.0d31ee68d06b9887be58c054b49e9155/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.update.john.9bd683d4d27a328470940be5d534aa60/stdout.expect
commit d101ce20444e1ddc7864506c5b54dc42c8565bcf
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Feb 5 12:23:02 2018 -0600
Update docs for new DHCP features and update testcases.
We no longer require that option 67 be specified on individual
subnets. The docs have been updated to remove option 67 from examples.
Basic discover testcases expanded to test PXE with legacy BIOS, UEFI,
and iPXE seperately.
M doc/arch/dhcp.rst
M doc/configuring.rst
M doc/operation.rst
M doc/quickstart.rst
M doc/server.rst
commit d59a8b14567d3bd7bbf68e2553f6f100236777a7
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Feb 5 11:50:10 2018 -0600
Option 67 is optional now.
You no longer have to specify option 67 in a subnet or a reservation,
the DHCP server now has sane defaults for what to do if it is missing
for legacy BIOS and UEFI systems, and for iPXE vs non-iPXE. You can
still specify option 67 if you want to override the defaults.
If (for whatever reason), you do not want systems to PXE boot from a
subnet ever, you can toggle the new Unmanaged bit on the subnet. This
will tell dr-provision to never send any PXE related options in a DHCP
response packet.
M models/subnet.go
commit 40ae1cda012ec0d742f78e8ce5489ccc079f32e6
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Feb 2 17:00:21 2018 -0600
Do a better job at seperating control flow from PXE and DHCP.
This PR starts disentagling the DHCP and PXE control flows through the code.
As a side effect, we no longer offer PXE related files when operating
purely as a DHCP server. This is a temporary situation, and will not persist.
M models/dhcpOption.go
commit cd8c8d21c7bd2aa1e60a6792b8bcf0fea92e6e3c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 5 11:19:25 2018 -0600
Also translate quote and double quote
M cli/common_test.go
R100 "cli/test-data/output/TestEventsCli/events.post.\"e1\"/stderr.expect" cli/test-data/output/TestEventsCli/events.post.dquotee1dquote/stderr.expect
commit 9d92cf1fcefc86498590cee26967080bfea7976b
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Feb 5 09:37:14 2018 -0600
Change : to . in unit test names
M cli/common_test.go
R100 cli/test-data/output/TestContentCli/contents.create.https:/gi333thub.com/digitalrebar/provision-content/releases/download/v1.3.0/drp-community-content.yamljj/stderr.expect cli/test-data/output/TestContentCli/contents.create.https./gi333thub.com/digitalrebar/provision-content/releases/download/v1.3.0/drp-community-content.yamljj/stderr.expect
R100 cli/test-data/output/TestContentCli/contents.create.https:/github.com/digitalrebar/provision-content/releases/download/v1.3.0/drp-community-content.yaml/stdout.expect cli/test-data/output/TestContentCli/contents.create.https./github.com/digitalrebar/provision-content/releases/download/v1.3.0/drp-community-content.yaml/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.list.EndTime=0001-01-01T00:00:00Z/stdout.expect cli/test-data/output/TestJobCli/jobs.list.EndTime=0001-01-01T00.00.00Z/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.list.EndTime=2001-01-01T00:00:00Z/stdout.expect cli/test-data/output/TestJobCli/jobs.list.EndTime=2001-01-01T00.00.00Z/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.list.StartTime=0001-01-01T00:00:00Z/stdout.expect cli/test-data/output/TestJobCli/jobs.list.StartTime=0001-01-01T00.00.00Z/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.list.StartTime=2001-01-01T00:00:00Z/stdout.expect cli/test-data/output/TestJobCli/jobs.list.StartTime=2001-01-01T00.00.00Z/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.show.Key:00000000-0000-0000-0000-000000000001/stdout.expect cli/test-data/output/TestJobCli/jobs.show.Key.00000000-0000-0000-0000-000000000001/stdout.expect
R100 cli/test-data/output/TestJobCli/jobs.show.Uuid:00000000-0000-0000-0000-000000000001/stdout.expect cli/test-data/output/TestJobCli/jobs.show.Uuid.00000000-0000-0000-0000-000000000001/stdout.expect
R100 cli/test-data/output/TestLeaseCli/leases.list.ExpireTime=2006-01-02T15:04:05-07:00/stdout.expect cli/test-data/output/TestLeaseCli/leases.list.ExpireTime=2006-01-02T15.04.05-07.00/stdout.expect
R100 cli/test-data/output/TestLeaseCli/leases.list.Token=11:22:33:44:55:66/stdout.expect cli/test-data/output/TestLeaseCli/leases.list.Token=11.22.33.44.55.66/stdout.expect
R100 cli/test-data/output/TestMachineCli/machines.show.Key:3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect cli/test-data/output/TestMachineCli/machines.show.Key.3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
R100 cli/test-data/output/TestMachineCli/machines.show.Name:john/stdout.expect cli/test-data/output/TestMachineCli/machines.show.Name.john/stdout.expect
R100 cli/test-data/output/TestMachineCli/machines.show.Uuid:3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect cli/test-data/output/TestMachineCli/machines.show.Uuid.3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
R100 cli/test-data/output/TestPluginCli/plugins.show.Key:i-woman/stdout.expect cli/test-data/output/TestPluginCli/plugins.show.Key.i-woman/stdout.expect
R100 cli/test-data/output/TestPluginCli/plugins.show.Name:i-woman/stdout.expect cli/test-data/output/TestPluginCli/plugins.show.Name.i-woman/stdout.expect
commit a0b2a9e8e570a0e2b1880fa683e6993f96f41431
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Feb 2 10:20:35 2018 -0600
Add Lease filter tests and clean up some dead code.
M cli/lease_test.go
A cli/test-data/output/TestLeaseCli/leases.list.Addr=1.1.1.1/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.Addr=fred/stderr.expect
A cli/test-data/output/TestLeaseCli/leases.list.ExpireTime=2006-01-02T15:04:05-07:00/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.ExpireTime=fred/stderr.expect
A cli/test-data/output/TestLeaseCli/leases.list.State=sleep/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.Strategy=COW/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.Strategy=MAC/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.Token=1.1.1.1/stdout.expect
A cli/test-data/output/TestLeaseCli/leases.list.Token=11:22:33:44:55:66/stdout.expect
commit 4dd294091a92c88cf352c580e8cbdd150ef86105
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Feb 1 19:49:18 2018 -0600
Add unit test that deadlocks like we were seeing
M api/events_test.go
commit 8faebe21e83e42a27630fdf0ef6ba9c820287701
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Feb 1 11:57:07 2018 -0600
DRY up the content calls to use the common routines
in models and move some models code from frontend to
models.
M api/contents_test.go
M models/content.go
commit fcc14c990cac8effa7aaf47b13f51d130c17b107
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jan 31 12:39:04 2018 -0600
Bootstrap first working DHCP tests
M models/dhcpOption.go
commit c5ec6356df0b04f499b3a3e1b7619c57b7924ba1
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jan 25 10:38:17 2018 -0600
Fix DHCP unit tests to properly handle the new notion of when to offer a bootfile
M api/bootenv_test.go
M cli/test-data/output/TestBootEnvCli/bootenvs.list.2/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.3/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.33d4eb22c5df62e83097c23fc4597c5a/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.4/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.5/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.708af06cd4868a90764f58b0dd2011f9/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Available=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.OnlyUnknown=false/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.ReadOnly=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Valid=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list/stdout.expect
M cli/test-data/output/TestCorePieces/2df325711fa0d8b85ba33f9846817da8/stdout.expect
M cli/test-data/output/TestCorePieces/a98887b36060c32b63908a01f0020907/stdout.expect
commit 150ffe32549e4e70f25f3b51e4e6e277c091ad80
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Jan 23 14:55:39 2018 -0600
Clean up more unit tests to handle MAC specific bootfile serving
M api/bootenv_test.go
M api/contents_test.go
M cli/test-data/output/TestBootEnvCli/bootenvs.list.2/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.3/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.33d4eb22c5df62e83097c23fc4597c5a/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.4/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.5/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.708af06cd4868a90764f58b0dd2011f9/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Available=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Name=ignore/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.OnlyUnknown=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.ReadOnly=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Valid=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.show.ignore/stdout.expect
M cli/test-data/output/TestCorePieces/2df325711fa0d8b85ba33f9846817da8/stdout.expect
M cli/test-data/output/TestCorePieces/a98887b36060c32b63908a01f0020907/stdout.expect
commit f7c755b744ae44975f25f4b8ee07f8375c9cb4ca
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Jan 23 11:21:05 2018 -0600
Fix up api unit tests to deal with bootenv availability changes
M api/bootenv_test.go
M api/machines_test.go
commit a0fbbc77d9036cf4696fc1fef17f1258de5d2610
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Jan 19 17:07:22 2018 -0600
Update CLI unit tests to reflect backend and model changes
M cli/test-data/output/TestBootEnvCli/bootenvs.create.9ac6649586a3c79996d0b5e459845a0b/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.create.fa874ddcd87d0d565c8a8a5fab3fd067/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.create.fred/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.2/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.3/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.33d4eb22c5df62e83097c23fc4597c5a/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.4/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.5/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.708af06cd4868a90764f58b0dd2011f9/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Available=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.OnlyUnknown=false/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.ReadOnly=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list.Valid=true/stdout.expect
M cli/test-data/output/TestBootEnvCli/bootenvs.list/stdout.expect
M cli/test-data/output/TestContentsFunctionalCli/machines.addprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.p1-prof/stdout.expect
M cli/test-data/output/TestContentsFunctionalCli/machines.create.7df3aabd2b2a9aa089f7c54b01060cb9/stdout.expect
M cli/test-data/output/TestCorePieces/2df325711fa0d8b85ba33f9846817da8/stdout.expect
M cli/test-data/output/TestCorePieces/a98887b36060c32b63908a01f0020907/stdout.expect
M cli/test-data/output/TestJobCli/machines.create.32cb4c9864de6e606c2e84397f300c18/stdout.expect
M cli/test-data/output/TestJobCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestJobCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.15ef88524f82284ee914fdb15df5a1ef/stdout.expect
M cli/test-data/output/TestMachineCli/machines.addprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.jean/stdout.expect
M cli/test-data/output/TestMachineCli/machines.addprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.jill/stdout.expect
M cli/test-data/output/TestMachineCli/machines.bootenv.3e7031fe-3062-45f1-835c-92541bc9cbd3.john2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.bootenv.3e7031fe-3062-45f1-835c-92541bc9cbd3.local/stdout.expect
M cli/test-data/output/TestMachineCli/machines.create.2912607b00fab33ffd503f06c4ee28b8.3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.create.2912607b00fab33ffd503f06c4ee28b8/stdout.expect
M cli/test-data/output/TestMachineCli/machines.create.cfb21459eb66dff02c687e0bdfed8ab9/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.4/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.Address=192.168.100.110/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.BootEnv=local/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.Name=john/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.Runnable=true/stdout.expect
M cli/test-data/output/TestMachineCli/machines.list.Uuid=3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.removeprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.jean/stdout.expect
M cli/test-data/output/TestMachineCli/machines.removeprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.jill/stdout.expect
M cli/test-data/output/TestMachineCli/machines.removeprofile.3e7031fe-3062-45f1-835c-92541bc9cbd3.justine/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3.3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3.4/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3.5/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.Key:3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.Name:john/stdout.expect
M cli/test-data/output/TestMachineCli/machines.show.Uuid:3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.stage.3e7031fe-3062-45f1-835c-92541bc9cbd3.c23ab3adaec8ca15ff3ffd0971be6152.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.stage.3e7031fe-3062-45f1-835c-92541bc9cbd3.c23ab3adaec8ca15ff3ffd0971be6152/stdout.expect
M cli/test-data/output/TestMachineCli/machines.stage.3e7031fe-3062-45f1-835c-92541bc9cbd3.stage1/stdout.expect
M cli/test-data/output/TestMachineCli/machines.stage.3e7031fe-3062-45f1-835c-92541bc9cbd3.stage2.c23ab3adaec8ca15ff3ffd0971be6152.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.stage.3e7031fe-3062-45f1-835c-92541bc9cbd3.stage2.c23ab3adaec8ca15ff3ffd0971be6152/stdout.expect
M cli/test-data/output/TestMachineCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.15ef88524f82284ee914fdb15df5a1ef.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.15ef88524f82284ee914fdb15df5a1ef/stdout.expect
M cli/test-data/output/TestMachineCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.21522342df50227b4f678203d499d51a/stdout.expect
M cli/test-data/output/TestMachineCli/machines.update.3e7031fe-3062-45f1-835c-92541bc9cbd3.5372645be509d5c9bddcfa65cf87f668/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.create.2912607b00fab33ffd503f06c4ee28b8/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.add.3e7031fe-3062-45f1-835c-92541bc9cbd3.at.0.task4.task3.task2.task1.2/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.add.3e7031fe-3062-45f1-835c-92541bc9cbd3.at.0.task4.task3.task2.task1/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.add.3e7031fe-3062-45f1-835c-92541bc9cbd3.task1.task2.task3.task4.2/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.add.3e7031fe-3062-45f1-835c-92541bc9cbd3.task1.task2.task3.task4.3/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.add.3e7031fe-3062-45f1-835c-92541bc9cbd3.task1.task2.task3.task4/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.del.3e7031fe-3062-45f1-835c-92541bc9cbd3.task1.task1/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.del.3e7031fe-3062-45f1-835c-92541bc9cbd3.task1.task3/stdout.expect
M cli/test-data/output/TestMachineTaskCli/machines.tasks.del.3e7031fe-3062-45f1-835c-92541bc9cbd3.task2.task4/stdout.expect
M cli/test-data/output/TestParamsDefaultGet/machines.create.2912607b00fab33ffd503f06c4ee28b8/stdout.expect
M cli/test-data/output/TestProcessJobsCli/machines.create.2912607b00fab33ffd503f06c4ee28b8/stdout.expect
commit 742979659013cd6c281b25b2142d936f83f61a9b
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Jan 19 16:36:54 2018 -0600
Add HardwareAddrs to machines
M models/machine.go
commit 1c356afe1ff85da029be3a22f107f824716e0d8d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jan 29 14:02:47 2018 -0600
Add a content layer stack description
M doc/arch/design.rst
commit 4a839699735fb355ea73c365707df04ca495b891
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jan 29 13:07:19 2018 -0600
Update the content test cases and the meta data
reported to reflect the actual overwrite
possibilities for the local, basic, and default
content stores.
M api/contents_test.go
M cli/test-data/output/TestContentCli/contents.list.2/stdout.expect
M cli/test-data/output/TestContentCli/contents.list.3/stdout.expect
M cli/test-data/output/TestContentCli/contents.list.4/stdout.expect
M cli/test-data/output/TestContentCli/contents.list.5/stdout.expect
M cli/test-data/output/TestContentCli/contents.list/stdout.expect
M cli/test-data/output/TestContentsFunctionalCli/contents.list.2/stdout.expect
M cli/test-data/output/TestContentsFunctionalCli/contents.list/stdout.expect
M test-data/usr/share/dr-provision/default.yaml
commit 8c872c406ad46002002a9fda2e3f4a67e3c26324
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Jan 29 12:11:21 2018 -0600
Make DHCP option processing exit even earlier.
We were not properly handling the case where there were additional
padding options after the dhcp.End option. Now, we just flat-out
return upon encountering an end or running out of option values to
process.
M models/dhcpOption.go
commit 00d8a73afbe075ee950f682c0da4f93552555351
Author: Shane Gibson <shane@rackn.com>
Date: Mon Jan 29 07:37:32 2018 -0800
Fix a few issues with Content Upgrade FAQ
M doc/faq-troubleshooting.rst
commit 2ddd05c772298349482ed6bd5b2cbfa754518dda
Author: Shane Gibson <shane@rackn.com>
Date: Sun Jan 28 10:00:10 2018 -0800
Update FAQ; kickseed, add Rackn/CC CLI download info
M doc/faq-troubleshooting.rst
commit d0b527fde6efcad2ac59216d13c02a6cc3ca923f
Author: Shane Gibson <shane@rackn.com>
Date: Fri Jan 26 17:16:31 2018 -0800
update FAQ on change name
M doc/faq-troubleshooting.rst
commit 542d7a90595a2b5deb11f54a7a29653d1fc3f2a6
Author: Shane Gibson <shane@rackn.com>
Date: Fri Jan 26 16:55:47 2018 -0800
v2 changes - fix FAQ change name
M doc/faq-troubleshooting.rst
commit 8a4527ba5b62e68b4b2bf1fddd2720067b105f18
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jan 26 17:08:06 2018 -0600
Have the frontend make all tasks sane-exit-codes unless
already set to orignal-exit-codes
M cli/test-data/output/TestJobCli/tasks.create.task1/stdout.expect
M cli/test-data/output/TestJobCli/tasks.create.task3/stdout.expect
M cli/test-data/output/TestMachineCli/tasks.create.jamie/stdout.expect
M cli/test-data/output/TestMachineCli/tasks.create.justine/stdout.expect
M cli/test-data/output/TestMachineTaskCli/tasks.create.task1/stdout.expect
M cli/test-data/output/TestMachineTaskCli/tasks.create.task2/stdout.expect
M cli/test-data/output/TestMachineTaskCli/tasks.create.task3/stdout.expect
M cli/test-data/output/TestMachineTaskCli/tasks.create.task4/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.create.57cf9696bfa564f4c60897d46a7aafea/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.create.9c7d0e97470482f05d8b6cdc3672e7da/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.list.2/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.list.4/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.list.Name=john/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.show.john.2/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.show.john.3/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.show.john.4/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.show.john/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.update.john.1688dee131fa580f0feb1f24cb2eadf8/stdout.expect
M cli/test-data/output/TestTaskCli/tasks.update.john.9024f1981153698ae2970886fb1b5d0b/stdout.expect
commit 4fd1745a1fdb3e3dc48a407758205ac711ef5a6c
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jan 26 10:58:55 2018 -0600
Add plugin version so we can stop and start plugins
that aren't correct for our system.
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list.3/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.show.incrementer/stdout.expect
M cmds/incrementer/incrementer.go
M models/plugin_provider.go
commit 67719682302642d349953a2e8d7bf0e97abb1db6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jan 24 23:59:44 2018 -0600
This addresses a deadlock in the event system.
The unit tests would hang but still print messages in
travis until it times out after an hour.
The problem is that we test the event registration
system by registering for an event and immediately
sending it. The problem is that the register send
on the websocket is not blocking and can return
before the registration is complete. For our
unit test, the sent event is handled before
the registration is complete causing the event
to not be sent on the websocket.
To fix this, the register and deregister calls
generate events. The event stream register
and deregister calls don't return until the
event from the registration call returns.
This allows for the system not "miss" events during
registration.
M api/event_stream.go
commit a5b7fc3d214adb3c1a014e71fd5b7ab599165a91
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jan 24 12:17:43 2018 -0600
Add protection about comms path length.
Default is safe. /tmp is safe. Directories on MACs
may not be.
M cli/plugins_test.go
M plugin/plugin.go
commit aaa748fa18547c2b17b12eaf1220f126644bf04e
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jan 19 09:55:16 2018 -0600
Forgot a unit test.
M api/info_test.go
commit 4cd191a7ead28a0471e29a54e93cbb8808b69428
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jan 18 17:46:53 2018 -0600
Add a feature tag for plugin-v2
M cli/test-data/output/TestUserCli/users.token.rocketskates.scope.all.ttl.330.action.list.specific.asdgag/stdout.expect
M cli/test-data/output/TestUserCli/users.token.rocketskates/stdout.expect
commit 6ce0c1d425b1fed336b5d68c3250efcadf0b9aff
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jan 18 15:35:01 2018 -0600
Fix a bug where the actions lock map was missing.
Add system action support and unit tests for that.
M cli/machines_test.go
M cli/new_common.go
A cli/system.go
A cli/system_test.go
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list.3/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.show.incrementer/stdout.expect
A cli/test-data/output/TestSystemCli/plugin_providers.list/stdout.expect
A cli/test-data/output/TestSystemCli/plugins.create.168f5fd0e0bc2fff8821bf45f68b2553/stdout.expect
A cli/test-data/output/TestSystemCli/plugins.destroy.incr/stdout.expect
A cli/test-data/output/TestSystemCli/plugins.list/stdout.expect
A cli/test-data/output/TestSystemCli/system.action.command/stderr.expect
A cli/test-data/output/TestSystemCli/system.action.incrstatus/stderr.expect
A cli/test-data/output/TestSystemCli/system.action.incrstatus/stdout.expect
A cli/test-data/output/TestSystemCli/system.actions/stderr.expect
A cli/test-data/output/TestSystemCli/system.actions/stdout.expect
A cli/test-data/output/TestSystemCli/system.get.john2/stdout.expect
A cli/test-data/output/TestSystemCli/system.runaction.command/stderr.expect
A cli/test-data/output/TestSystemCli/system.runaction.incrstatus/stderr.expect
A cli/test-data/output/TestSystemCli/system.runaction.incrstatus/stdout.expect
A cli/test-data/output/TestSystemCli/system.runaction/stderr.expect
A cli/test-data/output/TestSystemCli/system/stdout.expect
M cmds/incrementer/incrementer.go
M doc/cli/drpcli.rst
A doc/cli/drpcli_system.rst
A doc/cli/drpcli_system_action.rst
A doc/cli/drpcli_system_actions.rst
A doc/cli/drpcli_system_runaction.rst
commit fd466d6432a5aa9234f072cd2be5cb7cf8780fab
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jan 16 12:20:30 2018 -0600
Update docs for new plugin actions
M doc/cli/drpcli_autocomplete.rst
M doc/cli/drpcli_bootenvs.rst
A doc/cli/drpcli_bootenvs_action.rst
A doc/cli/drpcli_bootenvs_actions.rst
A doc/cli/drpcli_bootenvs_runaction.rst
M doc/cli/drpcli_jobs.rst
A doc/cli/drpcli_jobs_plugin_action.rst
A doc/cli/drpcli_jobs_plugin_actions.rst
A doc/cli/drpcli_jobs_runplugin_action.rst
M doc/cli/drpcli_leases.rst
A doc/cli/drpcli_leases_action.rst
A doc/cli/drpcli_leases_actions.rst
A doc/cli/drpcli_leases_runaction.rst
M doc/cli/drpcli_machines.rst
M doc/cli/drpcli_machines_action.rst
M doc/cli/drpcli_machines_actions.rst
M doc/cli/drpcli_machines_runaction.rst
M doc/cli/drpcli_plugins.rst
A doc/cli/drpcli_plugins_action.rst
A doc/cli/drpcli_plugins_actions.rst
A doc/cli/drpcli_plugins_runaction.rst
M doc/cli/drpcli_profiles.rst
A doc/cli/drpcli_profiles_action.rst
A doc/cli/drpcli_profiles_actions.rst
A doc/cli/drpcli_profiles_runaction.rst
M doc/cli/drpcli_reservations.rst
A doc/cli/drpcli_reservations_action.rst
A doc/cli/drpcli_reservations_actions.rst
A doc/cli/drpcli_reservations_runaction.rst
M doc/cli/drpcli_stages.rst
A doc/cli/drpcli_stages_action.rst
A doc/cli/drpcli_stages_actions.rst
A doc/cli/drpcli_stages_runaction.rst
M doc/cli/drpcli_subnets.rst
A doc/cli/drpcli_subnets_action.rst
A doc/cli/drpcli_subnets_actions.rst
A doc/cli/drpcli_subnets_runaction.rst
M doc/cli/drpcli_tasks.rst
A doc/cli/drpcli_tasks_action.rst
A doc/cli/drpcli_tasks_actions.rst
A doc/cli/drpcli_tasks_runaction.rst
M doc/cli/drpcli_templates.rst
A doc/cli/drpcli_templates_action.rst
A doc/cli/drpcli_templates_actions.rst
A doc/cli/drpcli_templates_runaction.rst
M doc/cli/drpcli_users.rst
A doc/cli/drpcli_users_action.rst
A doc/cli/drpcli_users_actions.rst
A doc/cli/drpcli_users_runaction.rst
commit 3456126c19ff076a32f17444d1520b16af353759
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jan 16 10:46:54 2018 -0600
This is an bit of an API rework with regard to
models (mostly with plugins). This only has
incompatability with the plugins. Other components
should be fine. Golang programs using the API
might have an issue.
1. Get rid of pointers in the models. Since these are
converted in and out of JSON for transport, we should
not be using pointers in these structures. It also
makes them more useful for separated control through
locking. Less chance of point cross refs.
2. Add description to subnet and reservation
3. Remove the deprecated Parameters field of the plugins
M api/info_test.go
M cli/subnet.go
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list.3/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.show.incrementer/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.create.75df77d836ef173cf5c09b72568df958/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.create.b44b9b003ee789b023adbf62f74a4fde/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.2/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.4/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.Addr=192.168.100.100/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.NextServer=2.2.2.2/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.Strategy=MAC/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.list.Token=john/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.show.192.168.100.100.2/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.show.192.168.100.100.3/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.show.192.168.100.100.4/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.show.192.168.100.100/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.update.192.168.100.100.20886f942745e5752eae7b4e2914de1e/stdout.expect
M cli/test-data/output/TestReservationCli/reservations.update.192.168.100.100.8b9440de63375c2f17131897d2ca34e9/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.create.90eb4f34bce524495a681f3914843f65/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.create.bef8372121d11414c0ca0b3baa59175e/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.leasetimes.john.65.7300/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.2/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.4/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Enabled=false/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Name=john/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.NextServer=3.3.3.3/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Proxy=false/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Strategy=MAC/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.list.Subnet=192.168.100.0/24/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.nextserver.john.1.24.36.16/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.pickers.john.none,nextFree,mostExpired/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.range.john.192.168.100.10.192.168.100.200/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.set.john.option.6.to.66/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.set.john.option.6.to.null/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.2/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.3/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john.4/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.show.john/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.subnet.john.192.168.100.0/10/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.update.john.0d31ee68d06b9887be58c054b49e9155/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets.update.john.9bd683d4d27a328470940be5d534aa60/stdout.expect
A cmds/incrementer/content/params/parameter.yaml
A cmds/incrementer/content/params/step.yaml
M cmds/incrementer/incrementer.go
M models/dhcpOption.go
M models/info.go
M models/plugin_provider.go
M models/reservation.go
M models/subnet.go
commit 7edfccdce8311a804bae448314209177cef7fc0e
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Jan 16 11:41:59 2018 -0600
This reworks the plugin system and requires
a complete rebuild of all plugins.
1. Convert plugins to use unix domain sockets
2. Use http2/Rest as API comm path
3. Allow for return parameters.
4. Create a server side path for publishing events and
logging into the DRP log
5. Get off of standard err and standard out.
M cli/common_test.go
M cli/jobs.go
M cli/machines.go
M cli/new_common.go
M cli/test-data/output/TestBootEnvCli/bootenvs/stdout.expect
M cli/test-data/output/TestJobCli/jobs/stdout.expect
M cli/test-data/output/TestLeaseCli/leases/stdout.expect
M cli/test-data/output/TestLogsCli/logs.get/stdout.expect
M cli/test-data/output/TestMachineCli/machines.action.3e7031fe-3062-45f1-835c-92541bc9cbd3.command/stderr.expect
A cli/test-data/output/TestMachineCli/machines.action.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment/stderr.expect
M cli/test-data/output/TestMachineCli/machines.action.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment/stdout.expect
A cli/test-data/output/TestMachineCli/machines.action.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count/stderr.expect
M cli/test-data/output/TestMachineCli/machines.action.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count/stdout.expect
M cli/test-data/output/TestMachineCli/machines.action.john.command/stderr.expect
M cli/test-data/output/TestMachineCli/machines.action.john/stderr.expect
M cli/test-data/output/TestMachineCli/machines.action/stderr.expect
M cli/test-data/output/TestMachineCli/machines.actions.3e7031fe-3062-45f1-835c-92541bc9cbd3.2/stdout.expect
M cli/test-data/output/TestMachineCli/machines.actions.3e7031fe-3062-45f1-835c-92541bc9cbd3.3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.actions.3e7031fe-3062-45f1-835c-92541bc9cbd3/stdout.expect
M cli/test-data/output/TestMachineCli/machines.actions.john/stderr.expect
M cli/test-data/output/TestMachineCli/machines.actions/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.command/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.576c47cb28f5c9217182dd4ccc70e8a2/stderr.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.8bdcff43fa7ac5b7b0d8b59850ca52c9/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.8bdcff43fa7ac5b7b0d8b59850ca52c9/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.b85c353cfd55a3e23be637618bfb3b31.2/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.b85c353cfd55a3e23be637618bfb3b31.2/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.b85c353cfd55a3e23be637618bfb3b31/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.b85c353cfd55a3e23be637618bfb3b31/stdout.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.fred/stderr.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.asgdasdg/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.asgdasdg/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.parm1.extra.10/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.parm1.extra.10/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.parm2.incrementer/step.10/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment.incrementer/parameter.parm2.incrementer/step.10/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.increment/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count.8bdcff43fa7ac5b7b0d8b59850ca52c9/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count.8bdcff43fa7ac5b7b0d8b59850ca52c9/stdout.expect
A cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.3e7031fe-3062-45f1-835c-92541bc9cbd3.reset_count/stdout.expect
M cli/test-data/output/TestMachineCli/machines.runaction.fred.command/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction.fred/stderr.expect
M cli/test-data/output/TestMachineCli/machines.runaction/stderr.expect
M cli/test-data/output/TestMachineCli/machines/stdout.expect
M cli/test-data/output/TestPluginCli/plugins/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list.3/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.list/stdout.expect
M cli/test-data/output/TestPluginProviderCli/plugin_providers.show.incrementer/stdout.expect
M cli/test-data/output/TestProfileCli/profiles/stdout.expect
M cli/test-data/output/TestReservationCli/reservations/stdout.expect
M cli/test-data/output/TestStageCli/stages/stdout.expect
M cli/test-data/output/TestSubnetCli/subnets/stdout.expect
M cli/test-data/output/TestTaskCli/tasks/stdout.expect
M cli/test-data/output/TestTemplateCli/templates/stdout.expect
M cli/test-data/output/TestUserCli/users/stdout.expect
M cmds/incrementer/incrementer.go
M models/bootenv.go
M models/job.go
M models/lease.go
M models/machine.go
M models/plugin.go
M models/plugin_provider.go
M models/profile.go
M models/reservation.go
M models/stage.go
M models/subnet.go
M models/task.go
M models/template.go
M models/user.go
M models/utils.go
M plugin/plugin.go
A plugin/utils.go
commit 4c4c10e400d2b0acbfec4460a5ea074e75bfca51
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Jan 26 13:24:43 2018 -0600
Clean up a usecase where we can fail if DHCP options are cut off
M models/dhcpOption.go
commit e31f778268b29e3ee4704f4180b518b4d21505d2
Author: Shane Gibson <shane@rackn.com>
Date: Fri Jan 26 13:49:40 2018 -0800
Added 'nested' template FAQ info
M doc/faq-troubleshooting.rst
commit d04a3cf5deaa566d430a59a5acdbd872874d7dc8
Author: Shane Gibson <shane@rackn.com>
Date: Fri Jan 26 12:54:47 2018 -0800
Fix typo, additional 'Note' info on clone
M doc/faq-troubleshooting.rst
commit 0beac1e07c4516d48ad4fa64ee92ba90b56e616d
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jan 24 15:06:51 2018 -0600
Change up DHCP debugging to include entire packets when logging at the Debug level
M models/dhcpOption.go
commit 062eb779c41dd4637087fa684655c4c2614afd52
Author: Shane Gibson <shane@rackn.com>
Date: Tue Jan 23 11:46:16 2018 -0800
one-liner added to Rename Machine
M doc/operation.rst
commit 5c12ef9be01584817f10edc8f4c7153f537bc378
Author: Shane Gibson <shane@rackn.com>
Date: Tue Jan 23 10:52:20 2018 -0800
added 'kickseed' to FAQ documentation
M doc/faq-troubleshooting.rst
commit aebeb71e4b4a44282ffe0fe1fc76bba203a06f94
Author: Shane Gibson <shane@rackn.com>
Date: Tue Jan 23 10:47:19 2018 -0800
added Rename Machine to Operations
M doc/operation.rst
commit cf436ddf89b4d86065e0d7b59ed786e28a2cfdf3
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jan 23 10:47:42 2018 -0600
Add gohai to drpcli. THis way we don't have
to rebuild sledgehammer as we increase functionality
of gohai library.
For linux platforms, it responds with big json
blog of awesomeness.
For other platforms, it responds with little
json blob of error.
M cli/common_test.go
A cli/gohai_linux.go
A cli/gohai_other.go
M cli/startup.go
A cli/test-data/output/TestCorePieces/gohai.0c113ca6d57519b559ba5a426be3c6b6/stdout.expect
commit 46ea198fa04ed2014ad1b0170a8c1dec8c8c872b
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Mon Jan 22 16:01:36 2018 -0600
Tweak address cache for more proper operation.
First, logs have been threaded through the address cache, so we can
see what is being added to the local -> remote address cache at either
Debug or Trace log levels.
Second, close a potential hole that woul lead to deleting cache
entries too early by moving to a timeout-per-cache-line system instead
of an expired/non-expired bit, and increase the timeout to 10 minutes.
Third, close a potential race with what the kernel thinks each
connections local IP address should be by not asking for the local IP
address until the http connection state is Active, which means that
the client has sent us at least 1 byte. The Linux kernel apparently
does not assign the local address until the handshake as completed,
and we were asking for the address before we checked to see that the
conn state was Active.
M cli/common_test.go
M cli/test-data/output/TestLogsCli/logs.get/stdout.expect
commit 52bca4821d6f9094fd64e703311d52bedf2017a2
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jan 22 17:29:41 2018 -0600
Try to remove a deadlock in the event stream handler.
M api/event_stream.go
commit 8ca9b5cb73538bf117d8342775f295c12409b6a6
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jan 22 17:26:56 2018 -0600
Allow the dynamic parameters that are string to be strings
without json parsing.
M models/param.go
End of Note