Commit Graph

26 Commits

Author SHA1 Message Date
Ahmed Bilal 3f406799db Merge branch 'without-ceph' into 'master'
allow ucloud-api to also be able work without ceph i.e use filesystem

See merge request ungleich-public/ucloud-api!2
2019-09-07 12:38:58 +02:00
Ahmed Bilal 08cbecebdb allow ucloud-api to also be able work without ceph i.e use filesystem 2019-09-07 12:38:58 +02:00
Ahmed Bilal bc803d5c08 Merge branch 'wip' into 'master'
Merge into master

1. All source code files share etcd client inside **config.py**
2. Make use of fact that Python 3 classes implicitly inherits from **object** class https://stackoverflow.com/questions/15374857/should-all-python-classes-extend-object/15374884

See merge request ungleich-public/ucloud-api!1
2019-09-03 18:01:40 +02:00
Ahmed Bilal 4a3c81852a Merge into master 2019-09-03 18:01:40 +02:00
ahmadbilalkhalid 9aeb05987b ListUserVM result now includes hostname of VM 2019-08-12 18:36:38 +05:00
ahmadbilalkhalid 080933b140 Rolled out new request mechanism, vm migration view added 2019-08-11 22:01:27 +05:00
ahmadbilalkhalid 47b0ba7719 Cleaning 2019-08-01 15:04:40 +05:00
ahmadbilalkhalid 31a5c3c4a7 Files -> File 2019-07-30 20:45:05 +05:00
ahmadbilalkhalid 715128a138 check owner of vm after ensuring that vm exists 2019-07-20 15:19:39 +05:00
ahmadbilalkhalid cdf3c741ee last_heart_beat -> last_hearbeat 2019-07-18 19:09:26 +05:00
ahmadbilalkhalid c474282b33 implemented add host, authenticate user before performing action of vm 2019-07-18 17:10:17 +05:00
ahmadbilalkhalid 68f9bebccb Shutdown VM, ListUserFiles added. Able to parse units included in specs 2019-07-11 13:34:21 +05:00
ahmadbilalkhalid 993fbbc3ac etcd3_wrapper updated 2019-07-04 16:03:57 +05:00
ahmadbilalkhalid c6b91dffe3 ListPublicImages, StartVM, SuspendVM, ResumeVM, ListUserVM Views added. 2019-07-03 17:47:24 +05:00
ahmadbilalkhalid 084da2eee5 Make message more clear if file is not found in create_image_from_file view and added gunicorn 2019-07-02 12:45:13 +05:00
ahmadbilalkhalid 0253aa9afc create_image view added + etcd3_wrapper module added 2019-07-01 23:53:38 +05:00
ahmadbilalkhalid 78d6fc2105 app now binds to :: 2019-06-30 21:20:02 +05:00
ahmadbilalkhalid a65a9b243c DeleteVM endpoint added 2019-06-26 12:33:29 +05:00
ahmadbilalkhalid 272bbcd5c6 enums removed 2019-06-25 15:18:32 +05:00
ahmadbilalkhalid 77741f363d endpoint (/vm/status) created to dump vm status 2019-06-25 15:07:23 +05:00
ahmadbilalkhalid 7781a1b68b use etcd3 instead of python-etcd. use uuid instead of increasing number. 2019-06-24 22:14:45 +05:00
ahmadbilalkhalid 62b023e2db BUG FIX: correctly use Enum class 2019-06-24 17:47:07 +05:00
ahmadbilalkhalid 588c2462de Added status to VM (entry) on creation, correctly wrap (etcd) critical section using lock 2019-06-24 17:43:48 +05:00
ahmadbilalkhalid 126a3415e5 race condition removed + return message on success updated 2019-06-24 17:21:18 +05:00
ahmadbilalkhalid 55dfda523b added try/except around etcdclient.read to cater if EtcdKeyNotFound 2019-06-24 16:39:53 +05:00
ahmadbilalkhalid 1cd8eee616 v1 code 2019-06-24 15:46:06 +05:00