Joshua Boniface
3e960b8adf
Fix bugs in ACL
2019-12-29 16:33:28 -05:00
Joshua Boniface
e55f2f0b92
Ensure var is valid first
2019-12-29 16:19:33 -05:00
Joshua Boniface
a3df70014b
Refactor modify_network to use nicer format
2019-12-27 12:30:45 -05:00
Joshua Boniface
e29405c1ed
Add missing argument to net_modify
2019-12-27 12:18:01 -05:00
Joshua Boniface
e82b851643
Don't bother splitting name_servers
2019-12-27 12:15:57 -05:00
Joshua Boniface
bc22c008dd
Split the name_servers in the right place
2019-12-27 12:14:34 -05:00
Joshua Boniface
33e5dcd5e8
Add missing reqargs to network put
2019-12-27 12:12:07 -05:00
Joshua Boniface
4a0806d23e
Fix bug setting node limit of CSV
2019-12-26 19:08:26 -05:00
Joshua Boniface
1d4e4d178c
Correct bad comma
2019-12-26 18:58:46 -05:00
Joshua Boniface
5e226af4a1
Pass VM argument into function
2019-12-26 18:56:34 -05:00
Joshua Boniface
89f598e429
Fix another instance of selector name
2019-12-26 18:55:01 -05:00
Joshua Boniface
f178436025
Fix selector name in POST
2019-12-26 18:53:35 -05:00
Joshua Boniface
c9fb9600a4
Fix two small bugs and regen docs
2019-12-26 18:45:11 -05:00
Joshua Boniface
49dfc6564f
Add additional bit about response bodies
2019-12-26 11:26:30 -05:00
Joshua Boniface
20ae2186f9
Run VM state actions in a thread
...
Prevents blocking the main thread(s) while a VM is changing state. In
particular, this caused some issues with nodes not responding to
cancellation/reversal of a flush/ready state until the previous
migration was finished, which could cause issues. This entire subset of
actions is now threaded and so can run on its own in the background.
2019-12-26 11:08:16 -05:00
Joshua Boniface
b3483fa810
Add explicit returns from flush/ready threads
2019-12-26 11:08:00 -05:00
Joshua Boniface
47cf0a8006
Ensure migration out occurs
2019-12-25 21:11:02 -05:00
Joshua Boniface
77db36a891
Ensure migration out occurs
2019-12-25 21:02:46 -05:00
Joshua Boniface
9a39d739e8
Ensure we empty of flush_thread
2019-12-25 20:29:17 -05:00
Joshua Boniface
e8d8fb161b
Add wait functionality to API domain-state
2019-12-25 20:24:12 -05:00
Joshua Boniface
b1c19a21ba
Move int cast to helper try block
2019-12-25 19:31:51 -05:00
Joshua Boniface
1f77b382ef
Support providing console log lines from API
2019-12-25 19:13:53 -05:00
Joshua Boniface
8a0a278fe9
Cast numbers to strings for length
2019-12-25 13:47:46 -05:00
Joshua Boniface
1f6f486b3b
Fix broken unwanted change to pvc.py
2019-12-25 13:35:31 -05:00
Joshua Boniface
b92c1876d6
Make sure we return True from init function
2019-12-25 12:18:26 -05:00
Joshua Boniface
9b81a02805
Disable doc endpoint to avoid flask_swagger dep
2019-12-24 11:19:06 -05:00
Joshua Boniface
88f1be8cc9
Add API reference link
2019-12-24 10:53:58 -05:00
Joshua Boniface
e4c96ee43d
Add flask-restful dependency
2019-12-24 10:48:15 -05:00
Joshua Boniface
f48d1e6d40
Add documentation for API_Doc endpoint
2019-12-24 08:59:17 -05:00
Joshua Boniface
ebcf0cee43
Add doc endpoint
2019-12-23 23:11:55 -05:00
Joshua Boniface
2dec61ce88
Fix the host in the output file
2019-12-23 21:22:09 -05:00
Joshua Boniface
914b3d84e1
Fix URL hosts
2019-12-23 21:17:30 -05:00
Joshua Boniface
142e1f186d
Fix in-app host URL
2019-12-23 21:15:26 -05:00
Joshua Boniface
d75a9749ac
Regenerate host value
2019-12-23 21:14:59 -05:00
Joshua Boniface
398fb2dfe9
Set URL and information in local swagger.json
2019-12-23 21:09:58 -05:00
Joshua Boniface
60ffe534a1
Add proper (local) URL to swagger docs
2019-12-23 21:06:08 -05:00
Joshua Boniface
05f08a714a
Update link to API reference document
2019-12-23 20:59:46 -05:00
Joshua Boniface
14b811e3c7
Rename API reference page
2019-12-23 20:59:24 -05:00
Joshua Boniface
1d59453252
API documentation page cleanup
2019-12-23 20:58:20 -05:00
Joshua Boniface
57127d2fa8
Move gen-doc helper script
2019-12-23 20:51:44 -05:00
Joshua Boniface
fd4f033a04
Update return from initialize
2019-12-23 20:51:18 -05:00
Joshua Boniface
9076208a92
Fix missing code end block
2019-12-23 20:47:01 -05:00
Joshua Boniface
e6a8ed0734
Replace in-markdown API docs with Swagger
2019-12-23 20:45:30 -05:00
Joshua Boniface
a6683d5b17
Rebuild API using Flask-RESTful and Swagger docs
2019-12-23 20:43:20 -05:00
Joshua Boniface
91cb542e37
Make sure ACLs are name-unique in both directions
2019-12-22 22:33:26 -05:00
Joshua Boniface
66078223a4
Fix several bugs
2019-12-22 22:28:34 -05:00
Joshua Boniface
de8c79755b
Add documentation about the provisioner API
2019-12-19 23:44:10 -05:00
Joshua Boniface
eecc07b731
Depend daemons on systemd
...
Numerous parts of PVC call systemctl commands or otherwise require a
functioning systemd-based system. Make the dependencies explicitly
reflect this.
2019-12-19 19:04:25 -05:00
Joshua Boniface
a66b834ae4
Fix several small bugs
2019-12-19 18:58:53 -05:00
Joshua Boniface
b17b7bf22b
Add black magic to minimize ping losses
...
This particular arping interval/count, along with forcing it to run in
the foreground, seems to minimize the packet loss when the primary
coordinator transitions. Through extensive testing, this value results
in the, consistently, least amount of loss: 1-2 pings, at an 0.025s ping
interval, return "TTL exceeded", with no other loss, and only when the
node the test VM is on is the one switching to secondary state. No other
combination of values here, nor tweaks to other parts of the code, seem
able to reduce this further, therefore this is likely the best
configuration possible.
2019-12-19 18:57:32 -05:00