Commit graph

61 commits

Author SHA1 Message Date
Nico Schottelius
139aca6a61 Remove vms field from vmhost
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 14:58:45 +01:00
Nico Schottelius
2a73f0e767 [migration] make vm name optional, use storage class choices
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 14:22:56 +01:00
Nico Schottelius
66e224e926 [storage] move choices to uncloud_storage 2020-03-05 14:21:10 +01:00
Nico Schottelius
ec7a2a3c3a Correct pricing for VMProduct 2020-03-05 14:00:14 +01:00
Nico Schottelius
cf17373b3f Fix ahmed introduced migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-05 11:35:00 +01:00
Nico Schottelius
14a4fa8cc1 Merge remote-tracking branch 'ahmed/migrate-one-to-regular-vm' 2020-03-05 11:34:15 +01:00
371c5ccf00 Merge remote-tracking branch 'origin/fnux-hacks' 2020-03-04 12:12:22 +01:00
a662b1fe29 Make migrate-one-vm-to-regular command idempotent 2020-03-04 13:25:46 +05:00
fea0568bb9 init commit 2020-03-03 23:46:39 +05:00
Nico Schottelius
ebc9238845 recreate all migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 17:50:52 +01:00
3846e49395 Fix migration issue introduced in previous merge 2020-03-03 11:40:37 +01:00
a849e642dd Merge remote-tracking branch 'origin/master' into fnux-hacks 2020-03-03 11:36:08 +01:00
11e22f5001 Consistently use one_time_price instead of setup_fee 2020-03-03 11:27:35 +01:00
Nico Schottelius
a50095f873 Merge remote-tracking branch 'origin/fnux-stable'
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-03 11:23:29 +01:00
9fdf66ed74 Fix MatrixService ordering 2020-03-03 10:51:16 +01:00
b31aa72f84 Allow to select billing period when registering VM 2020-03-03 10:14:56 +01:00
531bfa1768 actual thing name is replaced by pseudo names 2020-03-02 19:20:12 +05:00
750d8c8cbf Use fictional hostname for VMHost 2020-03-02 17:42:54 +05:00
0c3e6d10ae Indentation/Spacing fixes 2020-03-02 17:20:30 +05:00
afdba3d7d9 Remove duplicate code 2020-03-02 17:17:30 +05:00
52e74c22cc Merge branch 'nico/meow-pay-master' into HEAD 2020-03-02 17:05:23 +05:00
6c9c63e0da Add sample clean() for model + Add tests for uncloud_vm 2020-03-02 16:54:36 +05:00
9e253d497b Wrap VM creation in database transaction 2020-03-02 09:30:51 +01:00
81bd54116a Add records to orders 2020-03-02 09:25:03 +01:00
Ahmed Bilal
028fd6789f ++cleanup
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-03-02 07:17:04 +01:00
be2b0a8855 Fix a few errors on preview billing rework
Another WIP commit to sync with laptop, do not forget to rebase!
2020-03-01 12:23:04 +01:00
Nico Schottelius
4115eed2a8 +migration
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:58:10 +01:00
Nico Schottelius
5c33bc5c02 support creating disks
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:57:57 +01:00
Nico Schottelius
6a38e4e0a4 add url for importing disk image
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 17:00:13 +01:00
Nico Schottelius
bcbd6f6f83 Introduce disk->image relationship
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-29 16:45:52 +01:00
e319d1d151 WIP revamped bill logic 2020-02-29 09:08:55 +01:00
af1265003e Define custom fields and serializer for MatrixServiceProduct 2020-02-28 16:26:45 +01:00
eaa483e018 Commit forgottem uncloud_vm migrations 2020-02-28 15:08:45 +01:00
181005ad6c Cleanup VMProduct serializer, add name field to VMProduct 2020-02-28 15:08:00 +01:00
b3bbfafa04 Introduce custom ProductViewSet preventing customer from updating
products
2020-02-28 14:57:45 +01:00
b5a242f176 Merge branch 'master' into fnux-hacks 2020-02-28 14:06:29 +01:00
059791e2f2 Add initial generate-bills and charge-negative-balance uncloud-pay
commands
2020-02-28 08:59:32 +01:00
ef5e7e8035 Quickly wire vm creation to orders 2020-02-28 07:26:34 +01:00
0e28e50bac Revert "Commit WIP changes for /order, if needed at any point"
This reverts commit 83794a1781a1b84506100b39a6997882c654b4f3.
2020-02-28 07:25:18 +01:00
38d3a3a5d3 Commit WIP changes for /order, if needed at any point 2020-02-28 07:25:18 +01:00
809a55e1dd Wire VMProduct creation to order 2020-02-28 07:25:18 +01:00
b2fe5014d8 Make recurring_period an Enum, VMProduct a Product, initial wire for
order
2020-02-28 07:25:05 +01:00
Nico Schottelius
288a65f219 ++update
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-27 15:29:15 +01:00
Nico Schottelius
7bf4f2adb2 --debug
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-27 12:36:33 +01:00
Nico Schottelius
a9aac39486 Create a vmsnapshot + associated order 2020-02-27 12:31:20 +01:00
Nico Schottelius
41a5eae879 cleanup views/vmsnapshot 2020-02-27 12:09:29 +01:00
Nico Schottelius
657dfc541e Merge remote-tracking branch 'origin/fnux-hacks'
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-27 12:06:02 +01:00
Nico Schottelius
fd648ade65 ++cleanup
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-27 12:02:41 +01:00
06ab21c577 Fix python errors on latest hack commits => make runserver happy again 2020-02-27 11:59:28 +01:00
Nico Schottelius
a58a361254 Move snapshot to _pay and _vm 2020-02-27 11:36:50 +01:00