~blake-rouse/maas:region-check-ip

Last commit made on 2019-07-25
Get this branch:
git clone -b region-check-ip https://git.launchpad.net/~blake-rouse/maas
Only Blake Rouse can upload to this branch. If you are Blake Rouse please log in for upload directions.

Branch merges

Branch information

Name:
region-check-ip
Repository:
lp:~blake-rouse/maas

Recent commits

5ff54fc... by Blake Rouse

Add the unit testing around the IP check logic.

f57ce6b... by Blake Rouse

Fix existing tests and new test for temp_expires_on.

a2049af... by Blake Rouse

Add the IP address checking to the claim AUTO IP process.

d25417b... by Blake Rouse

Add IP address checking to the claim AUTO IP address process.

86829f9... by Blake Rouse

Add the temp_expires_on field to the StaticIPAddress model.

Field is used for assignment of AUTO IP addresses. Field is set to a time in the future for IP address assignment, once the IP is checked and its free then the field is cleared. If the checking process where to crash a cleanup task is run to free any expired assignments based the desired time.

a4b044a... by Lyubomir Popov

Restore density multiplier setting

46d1ff9... by Blake Rouse

Switch to performing the AUTO IP address allocation in a post commit hook.

This allows the work to be executed on a separate database thread so the main execution thread can be committed to the database. Once the AUTO IP addresses are allocated for the machine, only then will it be powered on.

f0e85ae... by Alberto Donato

snap: drop unneeded log-observe plug

this was added for granting DAC_OVERRIDE to nginx to silence a denial, but
that's actually harmless, since we run nginx as root, and the reason for
DAC_OVERRIDE in nginx is so that the master process can write to logfiles
which are created by workes (and thus usually have a different user/group)

5bf3e32... by Steve Rydz

Fix login page + intro pages regressions

b696e1f... by Alberto Donato

don't use the ld-preload for supervisord, just for postgres

Using the snapcraft-preload library breaks scripts that use mkdir because of the way chdir+mkdir are wrapped (specifically, scripts like run-nginx/run-squid/run-chronyd)
We don't need to wrap everything that supervisor runs with all preloads, only postgres needs snapcraft-preload because of /dev/shm usage.