Commit Graph

1477 Commits

Author SHA1 Message Date
Joshua Boniface f83ede9ee8 Catch all exceptions around database commits
Just catching IntegrtiyError caused some to be missed; catch anything
instead since it all results in a Bad Request response.
2020-01-08 09:31:08 -05:00
Joshua Boniface 2005342a2d Correct verb on VM modify 2020-01-08 09:24:17 -05:00
Joshua Boniface 65e3d153cb Fix invalid is_fuzzy logic condition 2020-01-07 11:45:45 -05:00
Joshua Boniface 0fca10de4a Verify profile is valid when creating VM 2020-01-07 11:45:39 -05:00
Joshua Boniface e2b9ce2a70 Fix some bugs in provisioning 2020-01-07 01:44:23 -05:00
Joshua Boniface 977bd2a439 Fix return text of empty profile list 2020-01-07 00:48:00 -05:00
Joshua Boniface d6182d92fc Strip incoming userdata and script documents 2020-01-06 23:52:29 -05:00
Joshua Boniface 82a88f8433 Fix incorrect port in swagger docs 2020-01-06 23:50:12 -05:00
Joshua Boniface a174afa280 Remove obsolete artifacts upload from gitlab-ci 2020-01-06 23:49:14 -05:00
Joshua Boniface 21d87f5e51 Add v6 configurations to dnsmasq
These options were only applied with v4 networks; now, use the v6
address in a dual-stack or v6-only network.
2020-01-06 23:48:04 -05:00
Joshua Boniface b452a7355f Add GitHub note to README 2020-01-06 23:45:08 -05:00
Joshua Boniface f4206c2b44 Use correct method for userdata update 2020-01-06 23:39:47 -05:00
Joshua Boniface 62798f9ee8 Use the passed name to modify commands 2020-01-06 23:37:28 -05:00
Joshua Boniface 2aaccfffa7 Use POST body for large data objects 2020-01-06 23:30:34 -05:00
Joshua Boniface f326fd99e2 Properly fix IPv4 no-DHCP networking 2020-01-06 22:31:37 -05:00
Joshua Boniface 589b2b1677 Forcibly remove tempdir just in case 2020-01-06 16:52:25 -05:00
Joshua Boniface 38dae8b32f Change name of cluster in patronictl command 2020-01-06 16:37:17 -05:00
Joshua Boniface 2d2bdb879e Use get() instead of direct dict reference 2020-01-06 16:34:39 -05:00
Joshua Boniface a0542d61d0 Fix bad variable name 2020-01-06 16:30:59 -05:00
Joshua Boniface 30d4470c8f Only print AXFR errors in debug mode 2020-01-06 16:04:37 -05:00
Joshua Boniface bbfadac5e1 Fix dnsmasq options for DHCP-disabled networks 2020-01-06 16:04:26 -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 7b3e267f7a Implement bridge_device for bridged VNIs
Required due to #64. Bridged networks were being created on top of a
vLAN if the Cluster network was a vLAN device, rather than being created
on the underlying device. This came from a previous revision of the
cluster architecture guidelines where Cluster was supposed to be a raw
device rather than a vLAN. This fixed the problem by implementing a
configuration field for a "bridge_device", a NIC device that can then
have the bridged vLANs created on top of it.

Fixes #64
2020-01-06 14:44:56 -05:00
Joshua Boniface 17b6af3ee6 Only split nameservers if needed 2020-01-06 13:21:37 -05:00
Joshua Boniface 220230ad47 Add missing reqargs to network post() 2020-01-06 13:12:08 -05:00
Joshua Boniface 456a50a73c Send proper delete for OSD deletion 2020-01-06 12:59:00 -05:00
Joshua Boniface 47c49f7672 Fix click import (again) 2020-01-06 12:55:44 -05:00
Joshua Boniface 1122589b88 Add documentation of OSD endpoints and proper return 2020-01-06 12:54:18 -05:00
Joshua Boniface 27279c9686 Properly import click echo 2020-01-06 12:38:20 -05:00
Joshua Boniface 094ac8c3a8 Ensure stdout is used 2020-01-06 12:34:35 -05:00
Joshua Boniface 9ea86cc570 Better handle key values 2020-01-06 11:56:34 -05:00
Joshua Boniface 5edcd45ad6 Handle non-200 codes in the multi-template return 2020-01-06 11:43:32 -05:00
Joshua Boniface a9edbe0234 Improve retdata 2020-01-06 11:32:27 -05:00
Joshua Boniface 13548b791d Add additional debugging and fix pool_idx loop var 2020-01-06 11:31:22 -05:00
Joshua Boniface 56bc104f19 Actually return body 2020-01-06 10:53:25 -05:00
Joshua Boniface 1113234270 Send DELETE instead of POST 2020-01-06 10:47:01 -05:00
Joshua Boniface 66863a0183 Improve output of cluster 2020-01-06 09:23:35 -05:00
Joshua Boniface 007ee56a46 Fix some bugs and where no-cluster message happens 2020-01-06 09:18:22 -05:00
Joshua Boniface be5c67f696 Add messages when adding/removing clusters to CLI 2020-01-06 09:11:00 -05:00
Joshua Boniface 3e5c7c5546 Remove my stuff from userdata.yaml example 2020-01-05 23:55:11 -05:00
Joshua Boniface cdd887757e Use by-id labels for disks and dump/cpass /var/log 2020-01-05 23:46:06 -05:00
Joshua Boniface 5e2efacda5 Strip VM schema when defining 2020-01-05 23:22:23 -05:00
Joshua Boniface 3719d850c7 Fix setting hostname in debootstrap script 2020-01-05 23:09:33 -05:00
Joshua Boniface 8eb95afae5 Update the comment and remove hostname 2020-01-05 22:47:10 -05:00
Joshua Boniface e7bc4f7328 Handle empty None-type hostname 2020-01-05 22:46:56 -05:00
Joshua Boniface 46c5e8e36c Correct bad variable name 2020-01-05 22:11:40 -05:00
Joshua Boniface acc7c1b554 Ensure template code responses accross everything 2020-01-05 22:07:37 -05:00
Joshua Boniface f4ae245184 Avoid splitting an empty node_limit 2020-01-05 21:28:22 -05:00