Dominique Roux
d5a7f8ef59
Merge branch 'master' of code.ungleich.ch:uncloud/uncloud
2020-01-23 18:43:42 +01:00
Dominique Roux
0982927c1b
Added DNSmasq ability for RA
2020-01-23 18:43:41 +01:00
Nico Schottelius
8e839aeb44
commit stuff before dominique does
2020-01-23 18:41:59 +01:00
Nico Schottelius
8888f5d9f7
add logging
2020-01-19 12:55:06 +01:00
Nico Schottelius
bd9dbb12b7
Cleanup networking
2020-01-19 11:30:41 +01:00
Nico Schottelius
b847260768
++network
2020-01-19 09:16:29 +01:00
Nico Schottelius
1b5a3f6d2e
Progress with networking
2020-01-15 13:26:05 +01:00
Nico Schottelius
8a451ff4ff
[hack] phase in networking
2020-01-15 12:40:37 +01:00
Nico Schottelius
bd03f95e99
[docs] move one level higher
2020-01-15 11:32:23 +01:00
Nico Schottelius
26d5c91625
Update hacking docs
2020-01-15 10:53:22 +01:00
Nico Schottelius
b877ab13b3
add hack code
2020-01-15 10:02:37 +01:00
Nico Schottelius
12e8ccd01c
Cleanups for mac handling
2020-01-14 19:10:59 +01:00
Nico Schottelius
8078ffae5a
Add working --last-used-mac
...
{'create_vm': False, 'last_used_mac': True, 'get_new_mac': False, 'debug': False, 'conf_dir': '/home/nico/uncloud', 'etcd_host': 'etcd1.ungleich.ch', 'etcd_port': None, 'etcd_ca_cert': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/ca.pem', 'etcd_cert_cert': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/nico.pem', 'etcd_cert_key': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/nico-key.pem'}
00:20:00:00:00:00
(venv) [19:02] diamond:uncloud% ./bin/uncloud-run-reinstall hack --etcd-host etcd1.ungleich.ch --etcd-ca-cert /home/nico/vcs/ungleich-dot-cdist/files/etcd/ca.pem --etcd-cert-cert /home/nico/vcs/ungleich-dot-cdist/files/etcd/nico.pem --etcd-cert-key /home/nico/vcs/ungleich-dot-cdist/files/etcd/nico-key.pem --last-used-mac
2020-01-14 19:02:15 +01:00
Nico Schottelius
1b36c2f96f
Write VM to etcd
2020-01-14 14:23:26 +01:00
Nico Schottelius
c0e6d6a0d8
Begin further integration of code into hack
2020-01-14 11:25:06 +01:00
Nico Schottelius
083ba43918
Integrate hack + vm create into python code
2020-01-14 11:22:04 +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
Nico Schottelius
9f02b31b1b
Add hacky etcd client
2020-01-13 12:54:02 +01:00
Nico Schottelius
10c8dc85ba
Begin hacky database handling
2020-01-13 12:14:30 +01:00
Nico Schottelius
091131d350
dummy
2020-01-13 11:52:40 +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
Nico Schottelius
e6d22a73c5
++ cleanup
2020-01-12 14:44:53 +01:00
Nico Schottelius
02526baaf9
add ifdown support
2020-01-12 14:43:06 +01:00
Nico Schottelius
3188787c2a
++mac change
2020-01-12 14:38:01 +01:00
Nico Schottelius
94dad7c9b6
Add script to generate mac addresses
2020-01-12 14:35:59 +01:00
Nico Schottelius
53c6a14d60
mac: begin to downstrip
2020-01-12 14:03:04 +01:00
Nico Schottelius
64ab011299
import mac.py from cinv
2020-01-12 13:41:54 +01:00
Nico Schottelius
b017df4879
ignore iso, update nft rules
2020-01-12 13:20:38 +01:00
Nico Schottelius
aaf29adcbb
+ mac prefix
2020-01-12 00:41:31 +01:00
Nico Schottelius
6d51e2a8c4
[metadata] change default port to 1234
2020-01-12 00:32:17 +01:00
Nico Schottelius
c6b7152464
update nftrules example
2020-01-11 21:21:30 +01:00
Nico Schottelius
8544df8bad
don't use tcg
2020-01-11 16:36:41 +01:00
Nico Schottelius
708e3ebb97
cleanup ifup.sh
2020-01-11 16:20:29 +01:00
Nico Schottelius
3b68a589d4
cleanup vm.sh
2020-01-11 16:17:35 +01:00
Nico Schottelius
029ef36d62
net +debug
2020-01-11 15:54:19 +01:00
Nico Schottelius
3cf4807f7c
Merge branch 'master' of code.ungleich.ch:uncloud/uncloud
...
flush ruleset
2020-01-11 02:43:39 +01:00
Nico Schottelius
c1cabb7220
add working nft
2020-01-11 02:42:04 +01:00
Nico Schottelius
5d95f11b3d
Merge branch 'master' of code.ungleich.ch:uncloud/uncloud
2020-01-11 00:24:25 +01:00
Nico Schottelius
23d805f04f
++stuff
2020-01-11 00:24:17 +01:00
Nico Schottelius
3825c7c210
Add vxlan into the bridge
2020-01-11 00:23:55 +01:00
Nico Schottelius
7c9e3d747a
Merge branch 'master' of code.ungleich.ch:uncloud/uncloud
2020-01-11 00:06:29 +01:00
Nico Schottelius
b9c9a5e0ec
add working network
2020-01-10 23:55:21 +01:00
Nico Schottelius
ebcb1680d7
add hack scripts
2020-01-10 23:27:21 +01:00
00d876aea1
Do not break if client section/or OTP creds missing from conf file
2020-01-10 16:39:40 +05:00
31ec024be6
passing arguments dict to componenets instead of **kwargs
2020-01-10 15:45:48 +05:00
Nico Schottelius
b7596e071a
begin phasing in arguments instead of **arguments
2020-01-10 11:30:23 +01:00
Nico Schottelius
71fd0ca7d9
Remove double try/except blocks (with wraps)
2020-01-10 11:00:00 +01:00
Nico Schottelius
92f985c857
Handle etcd connection error
2020-01-10 10:10:37 +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
f8f790e7fc
nested dict doesn't play well with configparser
2020-01-07 22:18:13 +05:00
5a646aeac9
prefix is renamed to base_prefix, uncloud now respects base_prefix and put things under it
2020-01-07 21:45:11 +05:00
6046015c3d
Add base prefix option for uncloud so that we can run independent instance on uncloud
2020-01-07 20:26:10 +05:00
b4292615de
Display more info about tracked files to user e.g creation_date, host on which it is stored, size etc
2020-01-07 18:27:22 +05:00
48cc37c438
add hostname to file entry (uncloud filescanner)
2020-01-07 17:57:44 +05:00
6086fec633
move settings under uncloud.common
2020-01-06 12:25:59 +05:00
Nico Schottelius
388127bd11
[hack] add scripts to start VM
2020-01-05 18:32:14 +01:00
ef0f13534a
bug fixed that add extra space in QEMU command when there is no network to be attached
2020-01-05 21:59:24 +05:00
ec40d6b1e0
don't suppress error when changing permissions in uncloud vmm
2020-01-05 20:20:00 +05:00
b7f3ba1a34
remove cache=none from QEMU args as it is not supported on tmpfs/rootfs
2020-01-05 19:46:38 +05:00
6f51ddbb36
renamed argument, and changed destination and make it required (uncloud.cli.image.create_image_from_file)
2020-01-05 18:31:48 +05:00
7fff280c79
uncloud filescanner os.path.getsize expects str given Path instead
2020-01-05 18:00:05 +05:00
6847a0d323
base dir reverted back to str path
2020-01-05 17:56:42 +05:00
180f6f4989
No longer using xattrs as they don't work on tmpfs/rootfs
2020-01-05 17:21:26 +05:00
344a957a3f
Removed duplicate add_help from argument parsers in cli/image and cli/network
2020-01-03 18:42:20 +05:00
3296e524cc
uncloud cli converted to argparse
2020-01-03 18:38:59 +05:00
50fb135726
uncloud cli converted to argparse, code isn't beautiful yet. Would make it soom
2020-01-03 15:02:39 +05:00
cd2f0aaa0d
Using click instead of argparse in uncloud script
2020-01-01 14:59:47 +05:00
2afb37daca
get() methods converted to post()
2019-12-31 20:33:55 +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
2566e86f1e
[host] get ourselves from etcd
2019-12-31 14:13:08 +01:00
Nico Schottelius
e775570884
Make uncloud host running
2019-12-31 14:06:51 +01:00
Nico Schottelius
9662e02eb7
Allow to not have keys in etcd
2019-12-31 13:50:56 +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
433a3b9817
refactor #2
...
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-12-31 11:30:02 +01:00
Nico Schottelius
7b6c02b3ab
find ucloud -name \*.py -exec sed -i "s/ucloud/uncloud/g" {} \;
2019-12-31 11:29:08 +01:00