Commit Graph

281 Commits

Author SHA1 Message Date
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
107a5fc659 attempting to fix "can't look up exception for http status 200" 2021-03-23 15:57:07 -05:00
8717ad477e Revert "fix postgres serializable transaction"
This reverts commit 0a70ea8a95.
2021-03-21 12:28:19 -05:00
1136e2436b baikal memory upgrade and patchign to changelog 2021-03-21 12:25:24 -05:00
6eb959bd12 Revert "Add notice"
This reverts commit 7f5b431364.
2021-03-21 12:16:25 -05:00
0a70ea8a95 fix postgres serializable transaction 2021-03-21 12:16:17 -05:00
j3s
7f5b431364 Add notice 2021-03-08 19:31:05 -06:00
j3s
040c36bbaf Adjust capacity warning to 20GB 2021-03-08 19:24:47 -06:00
a09c82ecfc Merge remote-tracking branch 'origin/master' 2021-02-21 14:26:29 -06:00
0320bb5e29 fix potential exceptions in error handler 2021-02-21 14:26:00 -06:00
b32db058f0 fix http session being used inside hub model 2021-02-21 14:22:14 -06:00
j3s
ca0f9d1a41 Remove ssh host key spacing 2021-02-18 11:13:58 -06:00
j3s
c8dd3d2e80 Correct ssh pubkey spacing 2021-02-18 11:12:51 -06:00
70628039c4 fix wrong var name 2021-02-17 21:57:57 -06:00
88905b944d clean up massive onliner 2021-02-17 21:57:09 -06:00
fa0ddad5f5 fix missing paren 2021-02-17 21:46:46 -06:00
2cca908d79 add to changelog 2021-02-17 21:45:29 -06:00
1de0388df2 fine-tuning vm list page ip display depending on state 2021-02-17 21:29:03 -06:00
5d3dbac9ba fixing more bash issues 2021-02-17 21:22:01 -06:00
64db728731 fixing bash if statement issues related to negation 2021-02-17 21:19:27 -06:00
8d5e3d007d add warnings when get.sh fails 2021-02-17 21:15:23 -06:00
ea1eec7f92 fixing exception in capsul detail 2021-02-17 21:10:20 -06:00
bf927c4f1e fix line before shebang in script and fine-tune list page style 2021-02-17 21:06:20 -06:00
fd5d23cf22 prevent keyError when double_check_capsul_address returns None 2021-02-17 20:56:52 -06:00
ba0b29462c first try at implementing the vm start and stop feature 2021-02-17 20:50:17 -06:00
e8348052a8 fixing get inconsistency and adding vm_state_command 2021-02-16 21:13:51 -06:00
j3s
2e265703bd Add vm state management scripts 2021-02-16 20:58:23 -06:00
dbff6e23ed simplify postgres connection parameters as a single string 2021-02-16 16:08:54 -06:00
f7d4b485a5 missed a spot 2021-02-15 23:52:52 -06:00
9389c80cb6 fixing error messages and naming functions better 2021-02-15 23:51:59 -06:00
0de5305eac explain error from vms with no ip yet 2021-02-15 21:17:10 -06:00
e55798494b pig snorting sounds 2021-02-15 21:10:57 -06:00
f75575313b fix merge missing "fix index out of range when parsing output from
shell_scripts/get.sh"
2021-02-15 21:08:44 -06:00
2bc5b10284 add INTERNAL_HTTP_TIMEOUT_SECONDS option 5min default 2021-02-15 21:00:34 -06:00
bf281b12e1 copy and paste error 2021-02-15 20:35:49 -06:00
ab4c94e37c correctly test for none result in double_check_capsul_address 2021-02-15 20:32:24 -06:00
af272a6b70 Revert "temporarily thow exception from check capsul addr"
This reverts commit 1fd3ccb8a3.
2021-02-15 20:27:17 -06:00
05d5b15c4a oops I was thinking golang dont assign append it returns None 2021-02-15 20:20:42 -06:00
1fd3ccb8a3 temporarily thow exception from check capsul addr 2021-02-15 20:13:04 -06:00
47b2b3ee13 introduce InterThreadResult to ensure that current_app is only accessed
from the main flask thread
2021-02-15 20:06:35 -06:00
0a70c974ec ssh_public_keys -> ssh_authorized_keys rename (merge fix) 2021-02-15 19:44:26 -06:00
8d0088ef13 fix version #s 2021-02-15 19:24:31 -06:00
534855c764 correctly merge db migrations with origin master (coreos) 2021-02-15 19:19:20 -06:00
4c9a492ae3 remove wishful thinking type anotation 2021-02-15 18:35:44 -06:00
cc164dce01 manually merging in the sshkeys to the spoke model/hub model interface 2021-02-15 18:16:15 -06:00
44ee42764c delete unused virt model 2021-02-15 18:05:17 -06:00
b1129a8355 manually merging the spoke model / virt model changes 2021-02-15 18:05:01 -06:00
1c6d7eb380 eclipse failed to add deleted files 2021-02-15 17:52:31 -06: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
j3s
4b3f3603cc CoreOS isnt ready 2021-02-01 12:27:22 -06:00
j3s
3639a295c4 Add coreos 2021-02-01 10:59:13 -06:00
645ddede02 fix a bug where accumulating stale login tokens can lock out an account 2021-01-31 18:02:46 -06:00
cbe658b7ae clarify cloud based use case for hypothetical non-tofu ssh 2021-01-31 02:31:27 -06:00
51721ffdc0 wording 2021-01-31 02:20:20 -06:00
7568699920 clearly specify that its about the default ssh config 2021-01-31 02:16:13 -06:00
9222daefbc fix wording 2021-01-31 02:13:55 -06:00
a853eeef69 replace nonsensical namecoin plug with "Why ssh more ssh" 2021-01-31 02:09:42 -06:00
d878a07350 Will anyone actually attack you like that? Who knows. Personally, I'd
rather not find out.
2021-01-31 01:31:20 -06:00
cee23f1799 apostrophe 2021-01-31 01:24:46 -06:00
658f8bf316 more fix wording 2021-01-31 01:22:23 -06:00
a785392b00 blah 2021-01-31 01:19:04 -06:00
57666cf2ab more grammar & writing edits 2021-01-31 01:18:15 -06:00
7a904114c3 mor grammer fixs 2021-01-31 00:57:33 -06:00
ebaf348dd3 fix grammer 2021-01-31 00:25:06 -06:00
a4f39ca018 fix whitespace 2021-01-31 00:21:25 -06:00
bef26c38cf dont put lists inside <p> tags 2021-01-30 22:41:20 -06:00
01a31be091 signed, forest 2021-01-30 22:30:12 -06:00
a9bf277842 more wikipedia links 2021-01-30 22:25:13 -06:00
f56135c599 more wikipedia links! 2021-01-30 22:24:12 -06:00
113e6e9339 link to https://en.wikipedia.org/wiki/Man-in-the-middle_attack 2021-01-30 22:22:32 -06:00
d85ebd9042 "on the network between A and B " 2021-01-30 22:20:26 -06:00
cf9bcd1912 duplicate links to /about-ssh 2021-01-30 22:17:09 -06:00
0b5583a0ed make link to about-ssh be a paragraph 2021-01-30 22:15:34 -06:00
7217ff7a6d add /about-ssh essay 2021-01-30 22:14:04 -06:00
c849ec3c11 add 25 cent buffer to affordable_vm_sizes logic for UX 2021-01-30 15:27:24 -06:00
280bcfd584 check null on double_check_capsul_address 😬 2021-01-30 02:10:22 -06:00
39980d836b remove debug log 2021-01-30 02:05:06 -06:00
485a17ae6b fix ssh-keyscan.sh newlines printf 2021-01-30 02:03:29 -06:00
e18d15f7e7 forgot to decode ssh-keyscan.sh output to string 2021-01-30 01:57:52 -06:00
71222e07e6 chmod +x capsulflask/shell_scripts/ssh-keyscan.sh 2021-01-30 01:51:52 -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
29008bc963 fix index out of range when parsing output from shell_scripts/get.sh 2021-01-29 00:26:21 -06:00
40016ecbe6 fix debug code again :( 2021-01-29 00:22:19 -06:00
7914a2e518 fix "datetime is not JSON serializable" err in debug log code 2021-01-29 00:19:05 -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
3f6491f359 add support for postgres sslmode 2021-01-20 16:43:32 -06:00
j3s
6a82e6df01 bump changelog 2021-01-19 19:25:03 -06:00
j3s
1c2d5cf605 Add Alpine 3.13 2021-01-19 19:24:07 -06:00
j3s
74621a85dd Add guixsystem 1.2.0 to capsul 2021-01-14 21:31:38 -06:00
e9d6230c69 remove janky logger monkey patch 2021-01-04 17:20:30 -06:00
d82aa99c40 working on cleaning up the logs 2021-01-04 17:20:03 -06:00
df7a750794 fixed delete not working 2021-01-04 15:27:18 -06:00
9fb6d58e1a fix remnants of list_ids being an async operation 2021-01-04 15:18:50 -06:00
3fdd78df2e fix segfault in draw_plot_png_bytes 2021-01-04 15:18:23 -06:00
4833c6250b create capsul is working 2021-01-04 15:02:56 -06:00
44e918a974 fix double slash 2021-01-04 13:34:53 -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