Joshua Boniface
e7728b8375
Allow modification of a VM profile
...
And fix some bugs around this.
Fixes #76
2020-01-30 11:45:46 -05:00
Joshua Boniface
b3558f1783
Ensure VM restart happens after cfg update
...
Fixes #74
2020-01-30 11:18:53 -05:00
Joshua Boniface
5d73974e95
Fix several bugs around load-based migrations
2020-01-29 17:35:10 -05:00
Joshua Boniface
65ddcee0db
Fix bad ZK node name
2020-01-29 17:20:08 -05:00
Joshua Boniface
0076bcc83f
Add provision to VM list state
2020-01-21 21:51:02 -05:00
Joshua Boniface
b6474198a4
Implement cluster maintenance mode
...
Implements a "maintenance mode" for PVC clusters. For now, the only
thing this mode does is disable node fencing while the state is true.
This allows the administrator to tell PVC that network connectivity,
etc. might be interrupted and to avoid fencing nodes.
Closes #70
2020-01-09 10:53:27 -05:00
Joshua Boniface
4e5bce4975
Update copyright header year to 2020
2020-01-08 19:38:02 -05:00
Joshua Boniface
c26ee544a9
Lower wait times in Ceph client commands
2020-01-08 18:21:28 -05:00
Joshua Boniface
682c6cecf7
Support overriding initial state of VM
...
Still defaults to "stop" state unless overridden in the calling
function.
2020-01-08 17:46:30 -05:00
Joshua Boniface
c515d63340
Add provision state for VMs
2020-01-08 17:40:02 -05:00
Joshua Boniface
9cab1c6eb5
Don't go unhealthy for migrate/unmigrate VMs
2020-01-08 17:37:07 -05:00
Joshua Boniface
096a740c4f
Fix bugs around dhcp4_flag
2020-01-06 15:38:06 -05:00
Joshua Boniface
3816da6be6
Don't set a domain except on managed networks
2020-01-06 15:06:00 -05:00
Joshua Boniface
65be917542
Make sure dhcp4_flag is boolean
2020-01-06 15:03:24 -05:00
Joshua Boniface
d1331401d8
Correct tense post-wait
2020-01-05 15:28:08 -05:00
Joshua Boniface
8cc20fbcfb
Properly handle empty node limit
2020-01-05 13:42:23 -05:00
Joshua Boniface
971b6adb0a
Handle removing static and dynamic DHCP leases
2020-01-05 01:06:03 -05:00
Joshua Boniface
b9fe918d7d
Remove extraneous print
2019-12-29 16:33:50 -05:00
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
e82b851643
Don't bother splitting name_servers
2019-12-27 12:15:57 -05:00
Joshua Boniface
4a0806d23e
Fix bug setting node limit of CSV
2019-12-26 19:08:26 -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
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
2fe808f812
Make this even nicer
2019-12-19 13:29:15 -05:00
Joshua Boniface
7901ffb5e3
Handle the list of node_limits even better
2019-12-19 13:22:38 -05:00
Joshua Boniface
684499cce3
Better handle list elements when defining VM
2019-12-19 12:08:44 -05:00
Joshua Boniface
2d14fabe62
Don't throw exception while defining new VM
...
This would throw an exception since we tried to find the current host of
a VM that did not exist yet. If this happens, just get None.
2019-12-19 11:30:13 -05:00
Joshua Boniface
c91c9ae6d5
Fix formatting of node_limit when writing
2019-12-12 21:36:21 -05:00
Joshua Boniface
fff44ab44e
Make node limit output nicer
2019-12-12 20:52:56 -05:00
Joshua Boniface
52127f2938
Add provisioner profile to VM information
2019-12-11 17:04:16 -05:00
Joshua Boniface
a95e7d1f76
Add profile from provisioner to data stored in ZK
2019-12-11 16:49:11 -05:00
Joshua Boniface
867634cea7
Fix missing argument
2019-12-09 11:31:56 -05:00
Joshua Boniface
d4dc3ac649
Enforce VM uniqueness when defining
...
Closes #56
2019-12-09 09:56:59 -05:00
Joshua Boniface
1fb560e996
Add DNS nameservers to networks
2019-12-08 23:55:45 -05:00
Joshua Boniface
356c12db2e
Add ceph df output to pool data
...
Allows additional information visible in the `ceph df` command,
including pool free space and used percentage.
2019-12-06 00:47:27 -05:00
Joshua Boniface
531578fd28
Use consistent tense for VM states
...
Replace "failed" with "fail" and "disabled" with "disable" for
consistency with the remaining states.
2019-10-23 23:57:59 -04:00
Joshua Boniface
6a4c75deb8
Clean up unnecessary zookeeper connection handling
2019-10-23 23:50:46 -04:00
Joshua Boniface
9736a3c653
Implement disabled state in cluster status
...
References #53
2019-10-23 23:49:19 -04:00
Joshua Boniface
32b4ed66e8
Add VM disable command
...
Closes #53
2019-10-23 23:44:47 -04:00
Joshua Boniface
715640955f
Better handle missing OSD stat keys
2019-10-22 13:59:28 -04:00
Joshua Boniface
d5a120f490
Add colour to the health status output
2019-10-22 12:24:47 -04:00
Joshua Boniface
e7129f0158
Correct invalid variable name
2019-10-22 12:18:51 -04:00
Joshua Boniface
4bff533571
Add cluster status command
2019-10-22 11:23:12 -04:00
Joshua Boniface
53dc343ea2
Avoid migration to invalid target_nodes
2019-10-17 12:16:21 -04:00
Joshua Boniface
8690d40927
Fix syntax error
2019-10-17 12:11:46 -04:00