Commit graph

41 commits

Author SHA1 Message Date
Nico Schottelius
8888f5d9f7 add logging 2020-01-19 12:55:06 +01:00
Nico Schottelius
1b36c2f96f Write VM to etcd 2020-01-14 14:23:26 +01:00
Nico Schottelius
22531a7459 Disable cli / otp reading for the moment
Imho this should clearly not leak into scripts/uncloud and
additionally it is broken at the moment
2020-01-14 11:09:45 +01:00
Nico Schottelius
b96e56b453 Begin to integrate hack into the main script 2020-01-14 11:05:42 +01:00
Ahmed Bilal
c3b42aabc6 Added --conf-dir, --etcd-{host,port,ca_cert,cert_cert,cert_key} parameters to cli and settings is now accessbile through uncloud.shared.shared.settings 2020-01-13 05:57:41 +01:00
cf4930ee84 cli enabled again 2020-01-10 16:42:07 +05:00
00d876aea1 Do not break if client section/or OTP creds missing from conf file 2020-01-10 16:39:40 +05:00
Nico Schottelius
e91fd9e24a disable cli until bug #25 is fixed 2020-01-10 12:00:02 +01:00
Nico Schottelius
469d03467d Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-01-10 11:56:56 +01:00
Nico Schottelius
ec66a756a0 ++confdir 2020-01-10 11:56:47 +01:00
b4f47adb4f print message removed 2020-01-10 15:47:38 +05:00
31ec024be6 passing arguments dict to componenets instead of **kwargs 2020-01-10 15:45:48 +05:00
Nico Schottelius
82a69701ce catch etcd in scripts/ 2020-01-10 11:43:53 +01:00
Nico Schottelius
d9dd6b48dc No try: needed for pop/importlib/getattr 2020-01-10 11:35:04 +01:00
Nico Schottelius
b7596e071a begin phasing in arguments instead of **arguments 2020-01-10 11:30:23 +01:00
Nico Schottelius
feb334cf04 Exit code == 1 in case we died with an exception 2020-01-10 10:07:01 +01:00
48efcdf08c 1. mp.set_start_method('spawn') commented out from scripts/uncloud
2. uncloud.shared moved under uncloud.common
3. Refactoring in etcd_wrapper e.g timeout mechanism removed and few other things
4. uncloud-{scheduler,host} now better handle etcd events in their block state (waiting for requests to come)
2020-01-09 00:40:05 +05:00
3296e524cc uncloud cli converted to argparse 2020-01-03 18:38:59 +05:00
Nico Schottelius
b95037f624 [metadata] allow passing in the port 2019-12-31 15:35:49 +01:00
Nico Schottelius
eb19b10333 [scheduler] partial debug support 2019-12-31 14:22:44 +01:00
Nico Schottelius
71c3f9d978 begin adding port support, catch OSError from Flask 2019-12-31 13:13:19 +01:00
Nico Schottelius
bff12ed930 ++ exception handling 2019-12-31 12:15:05 +01:00
Nico Schottelius
1fba79ca31 remove syslog handler (cruft), add debug flag 2019-12-31 11:56:28 +01:00
Nico Schottelius
6682f127f1 Remove colors, remove sophisticated logging
Go back to simple
2019-12-31 11:35:51 +01:00
Nico Schottelius
70c8da544e [refactor] rename scripts to uncloud 2019-12-30 20:06:15 +01:00
d13a4bcc37 Remove pending vm handling mechanism from scheduler + fixed issue that update VM's hostname even on migration failure 2019-12-30 20:05:12 +05:00
f980cdb464 Better error handling, Efforts to run non-root with occasional sudo 2019-12-29 23:14:39 +05:00
f79097cae9 Fix logging 2019-12-24 15:27:21 +05:00
972bb5a920 - Better error reporting.
- Flask now uses application's logger instead of its own.
- ucloud file scanner refactored.
2019-12-23 12:58:04 +05:00
eea6c1568e colored error output 2019-12-22 13:47:16 +05:00
e4d2c98fb5 Better logging. Errors without stacktrace are now printed to stderr 2019-12-22 13:14:42 +05:00
04993e4106 Refactoring, Removal of most global vars, config default path is ~/ucloud/ 2019-12-22 12:26:48 +05:00
bc58a6ed9c Configuration/Setting module added 2019-12-21 14:36:55 +05:00
71279a968f Fix issues in naming and few other things 2019-12-14 20:23:31 +05:00
Nico Schottelius
5b44034602 cleanup 2019-12-08 14:15:36 +01:00
Nico Schottelius
6d0ce65f5c begin to switch to configparser
To not have unwanted environment influence
2019-12-08 12:59:18 +01:00
Nico Schottelius
cfb09c29de simplify main script 2019-12-08 12:28:25 +01:00
Nico Schottelius
9517e73233 Migrate sanity_check.py into the respective daemons 2019-12-07 14:25:21 +01:00
Nico Schottelius
f9dbdc730a Remove logging configuration
Leave it to the OS/env to set this up.

Fixes #6
2019-12-07 14:15:48 +01:00
Nico Schottelius
57eaddb03f fix checkout support 2019-12-07 13:09:12 +01:00
Nico Schottelius
ba9ac4c754 add shell wrapper for running ucloud from checkout 2019-12-07 12:58:51 +01:00