Commit Graph

389 Commits

Author SHA1 Message Date
forest db4797c044 validate_dollars to support different values for stripe vs btcpay 2021-12-14 01:27:25 -06:00
forest 59ec894f17 net_set_dhcp() missing 1 required positional argument: 'add_ipv4' 2021-12-10 20:44:46 -05:00
forest f8415dbba5 don't error when trying to remove a dhcp entry that does not exist 2021-12-10 20:38:02 -05:00
forest f85f282854 shell is not my first language 2021-12-10 20:31:05 -05:00
forest d91600b031 net_set_dhcp() missing 1 required positional argument: 'remove_ipv4' 2021-12-10 20:21:07 -05:00
forest 59fd43e164 try to fix get_all_by_id 2021-12-10 20:06:21 -05:00
forest 63332108aa blah2 2021-12-10 20:01:30 -05:00
forest c11d4001ce blah 2021-12-10 19:58:53 -05:00
forest cf9e534063 get_all_vms_from_hosts() missing 1 required positional argument 2021-12-10 19:57:11 -05:00
forest 4bbacffeae refactor get_all_by_host_and_network to get_all_by_id 2021-12-10 19:53:14 -05:00
forest 96786acb13 missing 1 required positional argument: 'host_id' 2021-12-09 17:45:20 -06:00
forest aed35c43eb pass email correctly in net_set_dhcp 2021-12-09 17:42:53 -06:00
forest 1cdd918e28 Object of type dict_keys is not JSON serializable 2021-12-09 17:41:28 -06:00
forest 37babae903 fix sql syntax error 2021-12-09 17:39:40 -06:00
forest 9ce4792cdb fix copy and paste error 2021-12-09 17:37:54 -06:00
forest 8bcdc99664 delete potentially conflicting dhcp configs before adding a new one 2021-12-09 17:34:39 -06:00
forest c7469f2acb first draft of full implementation with net_set_dhcp 2021-12-09 17:25:44 -06:00
forest baee2f9178 fix margins on admin panel 2021-12-09 15:12:48 -06:00
forest 1e9043bbf2 clean up and add email display to admin panel 2021-12-09 15:11:03 -06:00
forest 57c62a7abc handle the situation where the IP address (desired or actual) is null 2021-12-09 15:04:16 -06:00
forest ca26d4b2af fix missing vm ids 2021-12-09 14:44:25 -06:00
forest 9a34921916 fix copy and paste error network vs network_name 2021-12-09 14:42:51 -06:00
forest 92af0192c7 print debugging 2021-12-09 14:41:25 -06:00
forest 2ce638ab29 trying to get admin tools in place 2021-12-09 14:38:17 -06:00
forest fd0d112834 fix get_all_by_host_and_network hub logic 2021-12-09 13:19:42 -06:00
forest 5f87f6ef9b oops fix dictionary iteration being set up wrong 2021-12-09 13:16:05 -06:00
forest 288d0c9630 print debugging 2021-12-09 13:10:48 -06:00
forest 2ff7a26bf1 woops 2021-12-09 13:07:28 -06:00
forest a88075f2dc trying to fix traceback formatting 2021-12-09 13:06:44 -06:00
forest 6d4bba8d3e try to add traceback to my_exec_info_message 2021-12-09 13:02:21 -06:00
forest 4c5cddc08b clean up log messages in get_all_by_host_and_network 2021-12-09 12:54:27 -06:00
forest 089cb4d696 trying to fix bugs in get_all_by_host_and_network 2021-12-09 12:53:29 -06:00
forest 1748b869f1 fix copy and paste error 2021-12-09 12:46:07 -06:00
forest f2e03919d7 trying to improve error handling inside get_all_by_host_and_network 2021-12-09 12:40:30 -06:00
forest 51d2c6e7a2 megaphone is live 2021-12-09 11:44:30 -06:00
forest c52e35b9c8 warning -> warn 2021-12-09 11:32:00 -06:00
forest fabb59e0dd chmod +x capsulflask/shell_scripts/virsh-net-list.sh 2021-12-09 11:30:01 -06:00
forest e76786955b allow post method for megaphone 2021-12-09 11:29:06 -06:00
forest 099b90081f comment out temporarily broken ensure_vms_and_db_are_synced 2021-12-09 11:21:53 -06:00
forest b3f62018ea Admin Megaphone: Email All Users With Active Capsuls 📢 2021-12-09 11:21:33 -06:00
techieb0y fe3082eaae Add missing closing-parens for f1-x 2021-12-09 01:59:49 +00:00
forest e32ecd5ce2 commit unsaved file 2021-12-08 19:45:35 -06:00
forest e134184ab7 push wip get_all_by_host_and_network 2021-12-08 12:57:22 -06:00
forest a93a97c66c save unsaved files 2021-12-05 16:50:55 -06:00
forest cc349d266f working on support for managing VM state and IP address 2021-12-05 16:47:37 -06:00
Maveth 9d74c99ce8 Update View Source link to working URL 2021-11-23 12:24:34 -06:00
Maveth bb4281270c Fix error caused by negative or really big numbers 2021-11-23 12:24:14 -06:00
forest d3aeea9ec6 add ids (anchors) to faq 2021-10-24 18:23:25 +00:00
forest 25715f5aee dont silently crash when database connection fails 2021-10-05 10:50:31 -05:00
forest 5a18fc7e13 add comments describing how to correct async creates / handle fails 2021-09-02 12:34:51 -05:00
forest 5a67a58f98 better error handling when the btcpay server goes down 2021-09-02 12:00:48 -05:00
forest 3346a45ed4 return success whn attempting to destroy a capsul that doesnt exist 2021-08-27 12:18:17 -05:00
forest f8e187ff84 local variable 'assigned_hosts_string' referenced before assignment 2021-08-27 12:14:38 -05:00
forest ba997bb3ff defer fkey constraints until end of txn -- allow change email 2021-08-16 13:24:11 -05:00
forest f3630fbacf account-balance cli command 2021-07-26 15:29:34 -05:00
j3s f94d3aa1d3 Add centos deprecation yeet 2021-07-25 09:36:04 -05:00
j3s a9c4ae7572 Add archlinux, bump everything' 2021-07-25 09:33:32 -05:00
j3s dc8da3170b Remove ops linky 2021-07-25 08:29:33 -05:00
j3s 59b72adefb Add linebreak to support page 2021-07-25 08:28:21 -05:00
j3s c6380f292f Add ops 2021-07-25 08:27:38 -05:00
j3s dbe75dd868 * 2021-07-25 08:26:25 -05:00
j3s ae5f57645f Update support wording 2021-07-25 08:24:18 -05:00
forest 50ee1144f9 Merge remote-tracking branch 'threewordchant/master' 2021-07-21 16:46:50 -05:00
forest 08eb38dc57 correctly enforce affordable_vm_sizes post form submission 2021-07-21 16:45:53 -05:00
3wordchant f999adaf71 Add VMs to the database even with HUB_MODE=mock (#6)
https://todo.cyberia.club/~cyberia/services/83

Co-authored-by: 3wc <3wc.cyberia@doesthisthing.work>
Co-authored-by: forest <forest.n.johnson@gmail.com>
Reviewed-on: 3wordchant/capsul-flask#6
Co-authored-by: 3wordchant <3wordchant@noreply.git.autonomic.zone>
Co-committed-by: 3wordchant <3wordchant@noreply.git.autonomic.zone>
2021-07-21 23:26:10 +02:00
3wc 8f2becb9ee Fix SyntaxWarning on `is not ""`
`capsulflask/__init__.py:143: SyntaxWarning: "is not" with a literal. Did you mean "!="?`
2021-07-21 21:51:50 +02:00
3wordchant f848eda931 Merge pull request 'Disable BTCPay in the interface, if BTCPAY_PRIVATE_KEY is un-set' (#3) from optional-btcpay into master
Reviewed-on: 3wordchant/capsul-flask#3
2021-07-21 20:20:40 +02:00
3wordchant 46f49e8d8f Merge pull request 'Auto-generate the pricing table from the database' (#4) from generated-prices into master
Reviewed-on: 3wordchant/capsul-flask#4
2021-07-21 19:32:09 +02:00
forest 36329796f0 define BTCPAY_ENABLED based on URL and btcpay key, pass it explicitly 2021-07-21 12:12:41 -05:00
forest 28271ee852 remove class="small" from pricing table cuz normal size fits fine 2021-07-21 11:53:44 -05:00
3wc 7923f3a99f Auto-generate the pricing table from the database 2021-07-21 12:19:28 +02:00
3wc 7ed847251f Don't load /btcpay if BTCPAY_PRIVATE_KEY un-set 2021-07-21 00:22:58 +02:00
3wc e3a4776a5d Hide the BTCPay link if BTCPAY_PRIVATE_KEY un-set 2021-07-21 00:20:38 +02:00
3wc 357d99cb91 Add load_config_vars context processor..
..to allow accessing config variables in the templates.

This removes the need for adding config variables manually to template
contexts.
2021-07-21 00:19:38 +02:00
forest b8279d7491 add about ssh link to faq 2021-07-19 18:09:02 -05:00
forest 908d02803f move hardcoding public3 to the right place 2021-07-12 16:10:28 -05:00
forest 6e6bd2b143 fix syntax error 2021-07-12 16:00:37 -05:00
forest 47fbaab403 hardcode network_name=public3 to sidestep phantom dhcp lease issues 2021-07-12 15:59:20 -05:00
forest 06a2bd3a6f add public_ipv4_first_usable_ip, public_ipv4_last_usable_ip 2021-07-12 14:38:56 -05:00
forest fbe9c7fca4 fix last IP address hanging off the end of the display on admin page 2021-07-12 12:27:07 -05:00
forest 6bdb133153 make admin display work better on phones 2021-07-12 12:23:27 -05:00
forest b459e56f3a use the provided network_name when creating a capsul 2021-07-12 12:19:56 -05:00
forest be54117736 migration 17: network_name -> virtual_bridge_name, add network_name col 2021-07-12 12:16:32 -05:00
forest aaf33a245b point capsul at new public3/virbr3 network 2021-07-12 11:29:37 -05:00
forest ad9c3476c7 simplify cidr block logic a little bit 2021-07-12 11:29:33 -05:00
forest fcbea1e29b fixing capsul creation after I broke it with the pre-allocated IP
address changes
2021-07-11 12:18:58 -05:00
forest a2f2e744e4 MAIL_USE_TLS=False, MAIL_USE_SSL=True defaults 2021-07-11 10:28:47 -05:00
forest 79ef90c380 hub allocate capsul IP addr when the create operation is being claimed
create.sh will now be passed two extra arguments from the web app:

network_name and public_ipv4_address

network_name will be virbr1 or virbr2 or whatever the network is called
and public_ipv4_address will be an ipv4 from that network which is not
currently being used
2021-07-09 17:08:51 -05:00
forest c216c5b992 adjust admin display 2021-07-09 14:52:46 -05:00
forest 47cdb0c7e6 hotfix support MAIL_USE_SSL 2021-07-09 14:44:48 -05:00
forest 74d77224f7 finishing touches and fixes on managed IPs database migration 16 2021-07-09 14:35:23 -05:00
forest 862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
forest e685c8a773 start working on managed IPs 2021-07-08 14:10:14 -05:00
forest 1e19902df1 fix syntax error and beeteeceepae2 warning formatting 2021-07-07 21:12:31 -05:00
forest a08edd870f add beeteeceepae2 message to btcpay launch page & cleanup 2021-07-07 21:04:23 -05:00
forest a42d35be51 more fixing default values for quick start 2021-07-07 15:17:00 -05:00
forest bdabd61057 fix defaults for running locally and make email server not required. 2021-07-07 13:47:21 -05:00
forest 3cb6992359 don't crash if btcpay key is invalid: log warning msg 2021-06-27 10:46:48 -05:00
forest ebf338eb12 don't crash if btcpay key is invalid 2021-06-27 10:41:46 -05:00
j3s e6cba96d2d Correct default email settings 2021-06-27 10:40:34 -05:00