commit b7531fd97f35cb577a9b7853d136856aae1ad219
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 2 17:06:17 2018 -0500
Add sprig template library to text expansion.
You can not use ago, now, env, or expandenv.
M backend/bootenv.go
M backend/dataTracker.go
M backend/renderData.go
M backend/renderData_test.go
M backend/template.go
commit 74c1219b2ceeeba5803ec1bcb8d25183b0790480
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Aug 2 11:48:01 2018 -0500
Fix Rob's issue with workflows with a starting stage that don't have
bootenvs specified.
M backend/machines.go
commit ca69fc115a06e16c7dd07dbe14180f41a98f222f
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 1 23:30:21 2018 -0500
Handle change-stage/map systems (old legacy)
Fix finish typo that was failing periodic jobs.
Only allow one of stage or bootenv to change at a time.
M frontend/job_create.go
commit f996064061c191aa15dfb832012eb60b35877fdd
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 1 16:52:35 2018 -0500
Fix silly typo in job_create.go
M frontend/job_create.go
commit bb7136c9219bd9bfbedfaf3c832d8f4743078199
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Aug 1 16:36:54 2018 -0500
Refactor job create code to be a bit more straightforward.
It also passes all the unit tests where we actually run jobs.
The unit test when not running a job went through waiting for stage change
twice instead of once.
A frontend/job_create.go
M frontend/jobs.go
commit c980d2d9faab90a66ab85b79e78f06992b448f97
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 1 10:22:51 2018 -0500
Rework frontend task pieces .
M backend/jobs.go
M frontend/jobs.go
commit 35dd73a01c4848bd716c52e62e9b3480525b1d1d
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 1 20:08:44 2018 -0500
Actually ship it.
M embedded/assets.go
M embedded/assets_test.go
commit bb02eef0fbf2dac57dc92dcf72e699eae8fe8130
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Aug 1 17:38:38 2018 -0500
Add ipxe.lkrn to our build pieces
M embedded/assets/ipxe-arm64.efi
M embedded/assets/ipxe.efi
A embedded/assets/ipxe.lkrn
M ipxe/build.sh
M ipxe/docker/Dockerfile
M ipxe/docker/build_ipxe.sh
A ipxe/docker/lkrn/general.h
commit 7b330afd81b5aecfe8c1a69ab8298b4c2aadd1dc
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 31 15:22:27 2018 -0500
Rename drp stats to have drp_ in front
M frontend/frontend.go
M midlayer/dhcpUtil.go
M midlayer/static.go
M midlayer/tftp.go
commit 9611d437f2795d02ddcc9bd6c454a44fe3ee2d66
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 31 14:31:10 2018 -0500
reduce logging level of debug message.
Add panic handler for template failures to generate a little bit
more of a helpful error message in the log.
M backend/jobs.go
M frontend/jobs.go
commit c0fcf175cee8e8ad9ca53f0b193d6bf58c2b71c9
Author: Rob Hirschfeld <rob@rackn.com>
Date: Tue Jul 31 11:31:12 2018 -0500
remove swagger js from our language bar!
A .gitattributes
commit fad8cd04f6271ca8b98bdeb31bfa2ddb9075d517
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Jul 27 15:52:55 2018 -0500
The backend is also marking a machine as not Runnable in error.
The only place that shoudl be doing that is the Runner itself,
but there was apparently backend code left over to do it as well.
The PR deletes the backend code that should not exist.
M backend/jobs.go
commit 8e8bfcd6b185a865d1f4f1625e4c7789746f7f30
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Tue Jul 24 16:50:27 2018 -0500
Have the runner skip JobActions that are not appropriate.
Use the OS metadata on a JobAction to determine if that action should be
run on a given machine based on whether it contains either 'any' or the OS
that the runner is running on.
Also allow explicit specification of the interpreter via the Interpreter
metadata on a JobAction for systems that do not have a built-in mechanism
for doing so.
M backend/jobs.go
M backend/renderData.go
M frontend/jobs.go
commit 5d4b08eed01e43ca6620abae48fee94be99b4c9a
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jul 24 16:57:51 2018 -0500
Attempt to make unit tests work without bad fakes.
Also fix fixInteractive.sh
M .gitignore
A midlayer/fake_midlayer_server_test.go
M midlayer/fixInteractive.sh
commit 02978fd6e72c30b1eca578c2db8c8a512acc8344
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Fri Jul 20 17:06:16 2018 -0500
Rework tests to get better coverage data.
M .gitignore
A midlayer/00_aone_test.go
M midlayer/common_test.go
M midlayer/tftp_test.go
commit 20927595d0cf5e0838e2c30a138e4ba6e19d6a0d
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Fri Jul 20 15:53:16 2018 -0500
Add secure param upgrades and content layer RequiredFeatures checking.
THis adds 2 useful features:
1. Automatic secure param upgrades. If a content layer changes
a param from insecure to secure (by setting the Secure flag),
dr-provision will automatically encrypt the appropriate data.
This will not happen when a Param is upgraded via the API --
in that case you need to have dr-provision rebuild the content
store by killing it with SIGHUP
2. RequiredFeatures metadata on content layers. If a content layer
has a RequiredFeatures metadata item (consisting of a comma-seperated
list of feature flags), the content layer will only be loaded if
dr-provision supports those feature flags.
M backend/dataTracker.go
M frontend/frontend.go
M midlayer/controller.go
M midlayer/stack.go
M server/server.go
commit 95f2206023729eb6f2d2f3f4ce629550cf21903c
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jul 19 16:19:06 2018 -0500
Add comboot options to the DHCP tests
M midlayer/dhcp-tests/0000-basic-ipxe-discover/0000.request
M midlayer/dhcp-tests/0000-basic-ipxe-discover/0001.request
commit 1843d6e7a1a33c80dee13414b62d77c82cf208e5
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jul 19 14:53:01 2018 -0500
Move to generating our own ipxe binaries.
This commit has us generate our own ipxe binaries and add them to the
embedded assets. Ipxe building is done in a Docker container, see
ipxe/build.sh for details.
This allows us to more tightly control what ipxe features we have.
M embedded/.gitignore
M embedded/assets.go
A embedded/assets/ipxe-arm64.efi
A embedded/assets/ipxe.efi
A embedded/assets/ipxe.pxe
A ipxe/.gitignore
A ipxe/build.sh
A ipxe/docker/Dockerfile
A ipxe/docker/build_ipxe.sh
A ipxe/docker/repos
A ipxe/docker/snponly_arm64/general.h
A ipxe/docker/snponly_x86_64/general.h
A ipxe/docker/undionly/general.h
M midlayer/dhcp.go
commit fb4b7b34fe96450f725f8d60534c207dc73a54d2
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jul 18 12:04:31 2018 -0500
Relax who can render multiple templates based on mac address
M backend/bootenv.go
commit b7fcc8960257b95546b00aca6ef8c8a3ec76e0e8
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 19 11:36:53 2018 -0500
Fix go vet and gofmt -s
M midlayer/dhcpUtil.go
M utils/prom_gateway.go
M utils/prom_gin.go
commit 7ad523faf1717364aa3ff8a0d88e45ad232cfadc
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 19 11:31:04 2018 -0500
Fix two more "misspellings"
M midlayer/dhcp.go
commit 11c90e6b2a0d4e23504ce88b6a2bb0a85cd14ae3
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 19 11:11:10 2018 -0500
Fix ineffective assignments and more spelling tests.
M backend/jwt-utils.go
M backend/renderData_test.go
M frontend/isos.go
M midlayer/controller.go
M midlayer/dhcp-tests/0000-basic-ipxe-discover/0001.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0007.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0008.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0009.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0010.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0011.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0012.logs-expect
M midlayer/dhcp-tests/0001-test-lease-wraparound/0016.logs-expect
M midlayer/ha.go
M server/cert.go
M server/server.go
commit cc92d29e37aa0fb41e516eb4067ab1ec6ec2e948
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Thu Jul 19 10:22:06 2018 -0500
Fix spelling issues.
M backend/dhcpUtils.go
M backend/dhcpUtils_test.go
M midlayer/dhcp.go
M midlayer/ha.go
M utils/prom_gateway.go
commit e97daa9fa7bffec64c8fd40670e8fce7ad31b402
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 18 15:37:24 2018 -0500
Fix render template error messages.
Instead of:
Starting task fake-deploy:start:task1 on drp-000019.unspecified.domain.local
Failed to render actions: CLIENT_ERROR: json: cannot unmarshal object into Go value of type []*models.JobAction
Updated job for fake-deploy:start:task1 to incomplete
Now get:
Starting task fake-deploy:start:task1 on drp-000019.unspecified.domain.local
Failed to render actions: : template: :3:16: executing "task1" at <.Machine.Fred>: can't evaluate field Fred in type *backend.rMachine
Updated job for fake-deploy:start:task1 to incomplete
M backend/jobs.go
M frontend/jobs.go
commit 88e2728caf3466a8043fa5f35fadf33ad1627051
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Wed Jul 4 16:35:29 2018 -0500
Allow concurrent tests to run.
M server/server_test.go
commit 41358ccd9e1a02e067fe975a3d39c2f34bc8d565
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jun 26 14:19:39 2018 -0500
cull port off from host in web stats
M utils/prom_gin.go
commit d4957a6a6ca07f78462f04cca9459084bad723b3
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jun 26 11:40:42 2018 -0500
Add push gateway configs.
Add compress URL for frontend.
M frontend/frontend.go
M server/server.go
M utils/prom_gateway.go
commit 97c78dcf7f9445436eed86808ac22e1811b3e943
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Tue Jun 26 10:34:33 2018 -0500
Make static host field point to remote address.
M utils/prom_gin.go
commit 1ef9b93e81ddd23c805c959d9d1e52c4baac5f77
Author: Greg Althaus <galthaus@austin.rr.com>
Date: Mon Jun 25 22:33:35 2018 -0500
Add some metrics to the system.
Prometheus based stats.
Still need to do the backend.
M frontend/frontend.go
M midlayer/dhcp.go
M midlayer/dhcpUtil.go
M midlayer/dhcp_test.go
A midlayer/metrics.go
M midlayer/static.go
M midlayer/tftp.go
M server/server.go
M server/server_test.go
A utils/prom.go
A utils/prom_gateway.go
A utils/prom_gin.go
A utils/prom_metrics.go
commit 8d3fe436d7c577996efd9eeb7e997b1036e53b8e
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Jul 12 12:44:58 2018 -0500
Add unit tests to validate that switching workflows in a task works as advertised.
M frontend/jobs.go
commit 5515e7ed4ae6ea53c7c834bc5bf6339bb265b344
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jul 11 13:11:28 2018 -0500
Actually extract chain.c32
M embedded/assets.go
commit 9328bee2c555933a99f5be76938b4605323a4383
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jul 11 12:43:14 2018 -0500
Sigh, fix schema thinko.
M backend/dataTracker.go
commit 0ebd36e29a85dd56d2824e3398366e370e7d62e0
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Wed Jul 11 11:46:51 2018 -0500
Make the pxelinux local boot method configurable via param
M backend/dataTracker.go
M embedded/.gitignore
commit a6b65a76f614066fd4acac35ccd69762048dd1a4
Author: Shane Gibson <shane@rackn.com>
Date: Mon Jun 25 17:51:52 2018 -0700
Add IP Addr logging for 'No DRP authenticationtoken' msgs
M frontend/frontend.go
commit 42ff33e42db2c4a495f932bab7e12d597a8dfd06
Author: Shane Gibson <shane@rackn.com>
Date: Mon Jun 25 13:11:34 2018 -0700
Allow empty args for '{{.Machine.MacAddr}}' template expansion
M backend/renderData.go
End of Note