Commit Graph

45 Commits

Author SHA1 Message Date
8a4794a344 trying to get tests to pass with hub_model=capsulflask
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-27 12:48:48 -05:00
06a2bd3a6f add public_ipv4_first_usable_ip, public_ipv4_last_usable_ip 2021-07-12 14:38:56 -05:00
fcbea1e29b fixing capsul creation after I broke it with the pre-allocated IP
address changes
2021-07-11 12:18:58 -05:00
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
862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
e685c8a773 start working on managed IPs 2021-07-08 14:10:14 -05:00
46a691b876 temporarily disable serializable transactions
until this can get figured out better
2021-03-23 16:03:48 -05:00
c623c65fda Limit the utilization of serializable transactions
A user encountered this error when deleting a vm:

self.cursor.execute("UPDATE vms SET deleted = now() WHERE email = %s AND
id = %s", ( email, id))

psycopg2.errors.SerializationFailure: could not serialize access due to
read/write dependencies among transactions
2021-03-23 15:59:17 -05:00
8717ad477e Revert "fix postgres serializable transaction"
This reverts commit 0a70ea8a95.
2021-03-21 12:28:19 -05:00
0a70ea8a95 fix postgres serializable transaction 2021-03-21 12:16:17 -05:00
dad6547825 Merge branch 'master' into multiple-hosts
Conflicts:
	capsulflask/console.py
	capsulflask/db.py
	capsulflask/shared.py
	capsulflask/virt_model.py
2021-02-15 17:52:17 -06:00
645ddede02 fix a bug where accumulating stale login tokens can lock out an account 2021-01-31 18:02:46 -06:00
a7c61f01df remove extra debug logs 2021-01-30 01:42:27 -06:00
50cea6e0b4 first crack at adding ssh host key display to the capsul detail page 2021-01-30 01:39:48 -06:00
274c7a2c76 add logging around ssh keys to capsul creation to support a user who is
experiencing bugs
2021-01-29 00:13:32 -06:00
4833c6250b create capsul is working 2021-01-04 15:02:56 -06:00
6764c5c97d got httpclient working, spoke heartbeat is working 2021-01-04 13:32:52 -06:00
d9c30e1ef8 trying to set up assignment of create operation 2021-01-03 19:17:30 -06:00
c59dc21ba6 starting work on hub mode and spoke mode -- implemented hub model 2021-01-02 17:10:01 -06:00
eba3bd6a5a fixing bugs with email ignore case feature 2020-12-29 19:03:37 -06:00
ff38858c74 fixing login email case sensitivity issues 2020-12-29 18:42:38 -06:00
d8d6124005 forest uncommitted changes on multi-host branch 2020-12-29 17:34:43 -06:00
44738c78a9 first steps towards multiple hosts -- schema & heartbeat 2020-12-10 20:32:43 -06:00
e6021324f7 fix exceptions related to btcpay HTTP calls. better cleanup of expired
btcpay invoices.
2020-07-18 10:16:17 -05:00
672ff49d6d implement content-security-policy, static assets cache bust, and fix
stripe back button ratchet issue

because the only way to use stripe checkout is to run their proprietary
JS, and we arent using a SPA, naturally what happens is, when you land
on the stripe payment page if you hit the back button it goes back to
the same page where you got re-directed to stripe. this commit fixes
that.
2020-05-22 15:20:26 -05:00
e2c51d067e implement ensure_vms_and_db_are_synced in cron task and add default
sender to readme
2020-05-21 21:40:41 -05:00
5a4c67d202 WHERE deprecated = FALSE os_images 2020-05-19 23:04:28 -05:00
2b04463e4e switch to polling for btcpay payment sessions because btcpay web hooks
are super duper slow
2020-05-16 22:04:51 -05:00
26340f118f trying to fix logging 2020-05-15 23:19:01 -05:00
e9dcf80f6c btcpay working! added bitpay client code to source tree to fix a bug
fixed a stripe race condition

added account balance warning to account balance page
2020-05-15 18:18:19 -05:00
0434c4d43b implement deleting capsuls 2020-05-15 12:23:42 -05:00
d1078b8f30 started working on cron job task 2020-05-14 23:40:27 -05:00
0dc58ed6a8 add sql cli and explain it in the readme 2020-05-14 20:05:02 -05:00
8de802aff5 btcpay generating invoices and payments can be invalidated 2020-05-14 18:03:00 -05:00
30464ac8e5 metrics are working!!! 2020-05-13 00:28:53 -05:00
7337375ae8 stripe tested and working 2020-05-12 13:04:35 -05:00
08e23cf0d1 stripe payment processor 2020-05-12 12:38:36 -05:00
5df06dc1b3 Your account does not have sufficient funds to create a Capsul 2020-05-11 22:59:36 -05:00
d7ddf37cfa fine-tuning and starting to work on account-balance 2020-05-11 20:34:12 -05:00
a6e655ef72 basic capsul detail page 2020-05-11 16:24:37 -05:00
231d1ed7c0 create capsul and capsuls list page working 2020-05-11 15:13:20 -05:00
452f236c6b SSH keys CRUD working 2020-05-11 11:57:39 -05:00
18e6a1b141 starting to build console controller and views 2020-05-11 01:47:14 -05:00
d706ae7761 updating virt_model with email and 2020-05-10 20:23:00 -05:00
426fad7b10 first try at creating VirtualizationInterface 2020-05-10 18:59:30 -05:00