Commit graph

479 commits

Author SHA1 Message Date
Nico Schottelius
c456355059 begin to introduce product
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-21 10:41:22 +01:00
Nico Schottelius
118c66799c ++views/permissions 2020-02-20 19:38:43 +01:00
Nico Schottelius
f8182e00e8 import secrets 2020-02-20 19:38:30 +01:00
Nico Schottelius
9fd445e947 add ldap support + tutorial example 2020-02-20 18:58:07 +01:00
Nico Schottelius
254429db55 .gitignore & more 2020-02-20 16:55:01 +01:00
Nico Schottelius
e472d20ae0 hacking uncloud v202002
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-20 16:52:50 +01:00
Nico Schottelius
315aaded41 Focus on creating a VPN as a first test case 2020-02-20 16:05:58 +01:00
Nico Schottelius
13292db39e +old notes 2020-02-20 11:57:03 +01:00
Nico Schottelius
0a1ccadda2 +ldaptest 2020-02-20 11:56:47 +01:00
Nico Schottelius
8160d01471 Merge remote-tracking branch 'origin/master' 2020-02-20 11:51:14 +01:00
8c353f277c is_order_valid added in helper.py 2020-02-20 15:23:15 +05:00
bb18f6b0e9 Flask-RESTful added in requirements.txt 2020-02-20 14:08:39 +05:00
00b35e0567 cleaned requirements.txt 2020-02-20 14:04:53 +05:00
9c7d458eec use code from ungleich-common 2020-02-20 13:57:32 +05:00
Nico Schottelius
074efffaa7 ++ hack 2020-02-20 09:44:30 +01:00
cee92f2e99 A lot of code moved to ungleich-common 2020-02-20 00:12:11 +05:00
ce709c3b6f Add certificates option for etcd 2020-02-19 14:44:19 +05:00
519279ce6f Update README.md 2020-02-19 13:13:39 +05:00
7b9a970307 Update README.md 2020-02-19 13:12:46 +05:00
5f1f451bc2 Added installation and getting started instructions in README.md 2020-02-19 13:12:07 +05:00
e37592bdc6 README.md updated and reorganized, Improved error handling for configparser and ldap manager, requirements.txt added 2020-02-19 11:59:54 +05:00
347843cb24 Sample config file added + uncloud dependency removed 2020-02-19 10:22:15 +05:00
Nico Schottelius
aa9548e753 +gitignore
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-15 11:15:26 +01:00
Nico Schottelius
c1f384fb9a so many notes&hacks! 2020-02-15 09:38:33 +01:00
Nico Schottelius
b38c9b6060 Ad capability to add and list hosts 2020-02-09 19:27:24 +01:00
Nico Schottelius
a80a279ba5 Add filtering support:
(venv) [12:54] diamond:uncloud% ./bin/uncloud-run-reinstall hack --product 'dualstack-vm' --os-image-name alpine311 --username nicocustomer --password '...' --hackprefix ~/vcs/uncloud/uncloud/hack/hackcloud/ --etcd-host etcd1.ungleich.ch --etcd-ca-cert ~/vcs/ungleich-dot-cdist/files/etcd/ca.pem --etcd-cert-cert ~/vcs/ungleich-dot-cdist/files/etcd/nico.pem --etcd-cert-key ~/vcs/ungleich-dot-cdist/files/etcd/nico-key.pem --list-orders --filter-order-key "status" --filter-order-regexp NEW
2020-02-09 12:54:52 +01:00
Nico Schottelius
5ef009cc9b Begin to phase in features and processing orders 2020-02-09 12:12:15 +01:00
Nico Schottelius
5da6dbb32e ++hack / list products
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-09 11:14:50 +01:00
Nico Schottelius
3b508fc87d phase in notion of a product 2020-02-09 09:36:50 +01:00
Nico Schottelius
55a2de72c8 [hack] begin to add ldap authentication 2020-02-09 08:51:35 +01:00
Nico Schottelius
f99d0a0b64 [requirements] add ldap3 2020-02-09 08:43:56 +01:00
Nico Schottelius
d9a756b50e Catch filenotfound errors when launching etcd 2020-02-06 15:33:01 +01:00
Nico Schottelius
592b745cea exit if an exception happened 2020-02-06 15:32:48 +01:00
Nico Schottelius
aaf0114df1 add image format option 2020-02-06 15:13:08 +01:00
0e667b5262 Fix UUID variable in oneshot/vm/get_name 2020-01-30 09:00:28 +01:00
f2337a14eb Yet another forgotten CLI parameter in oneshot... 2020-01-30 08:55:56 +01:00
8797e93baf Fix --name support in oneshot 2020-01-30 08:54:58 +01:00
9e2751c41e Remove deplicate vm definition in oneshot --stop 2020-01-30 08:52:24 +01:00
17d0c61407 Fix --accel parameter for oneshot 2020-01-30 08:47:23 +01:00
Nico Schottelius
3171ab8ccb [hack/vm] add self.vm dict 2020-01-29 19:55:55 +01:00
Nico Schottelius
56565ac7f7 Fix AttributeError: 'VM' object has no attribute 'vm'
ERROR:uncloud.vmm:Error occurred while starting VM.
Detail qemu-system-x86_64: -drive file=/home/nico/vcs/uncloud/uncloud/hack/hackcloud/alpine-virt-3.11.2-x86_64.iso,format=qcow2,if=virtio: Image is not in qcow2 format
Traceback (most recent call last):
  File "/home/nico/vcs/uncloud/uncloud/vmm/__init__.py", line 186, in start
    sp.check_output(command, stderr=sp.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sudo', '-p', 'Enter password to start VM 87230168-1b74-49f7-97c3-c968a26fc65e: ', '/usr/bin/qemu-system-x86_64', '-name', 'uncoud-87230168-1b74-49f7-97c3-c968a26fc65e', '-machine', 'pc,accel=kvm', '-drive', 'file=/home/nico/vcs/uncloud/uncloud/hack/hackcloud/alpine-virt-3.11.2-x86_64.iso,format=qcow2,if=virtio', '-device', 'virtio-rng-pci', '-m', '1024M', '-smp', 'cores=1,threads=1', '-netdev', 'tap,id=netmain,script=/home/nico/vcs/uncloud/uncloud/hack/hackcloud/ifup.sh,downscript=/home/nico/vcs/uncloud/uncloud/hack/hackcloud/ifdown.sh,ifname=uc000000000000', '-device', 'virtio-net-pci,netdev=netmain,id=net0,mac=42:00:00:00:00:01', '-qmp', 'unix:/home/nico/vcs/uncloud/uncloud/hack/hackcloud/sock/87230168-1b74-49f7-97c3-c968a26fc65e,server,nowait', '-vnc', 'unix:/tmp/tmpep71nz1f', '-daemonize']' returned non-zero exit status 1.
ERROR:root:'VM' object has no attribute 'vm'
Traceback (most recent call last):
  File "./bin/../scripts/uncloud", line 82, in <module>
    main(arguments)
  File "/home/nico/vcs/uncloud/uncloud/hack/main.py", line 47, in main
    vm.create()
  File "/home/nico/vcs/uncloud/uncloud/hack/vm.py", line 115, in create
    self.vm['mac'] = self.mac
AttributeError: 'VM' object has no attribute 'vm'
(venv) [18:49] diamond:uncloud% ./bin/uncloud-run-reinstall hack --create-vm --hackprefix ~/vcs/uncloud/uncloud/hack/hackcloud/ --image alpine-virt-3.11.2-x86_64.iso --no-db
2020-01-29 19:30:19 +01:00
Nico Schottelius
1b08a49aef Do not background dnsmasq 2020-01-29 18:45:50 +01:00
Dominique Roux
7e36b0c067 Debugging pipeline 2020-01-29 17:25:29 +01:00
Dominique Roux
1ca2f8670d Wrote first unit tests 2020-01-29 17:15:34 +01:00
Dominique Roux
d8a465bca4 Changed Exception in MAC class 2020-01-29 17:06:54 +01:00
Dominique Roux
dfa4e16806 Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-01-29 17:06:14 +01:00
Dominique Roux
bdbf26cfd4 Merge branch 'master' of code.ungleich.ch:uncloud/uncloud 2020-01-29 17:06:11 +01:00
Dominique Roux
5969d3b13d accessed the mac class with the correct function 2020-01-29 17:04:59 +01:00
3e69fb275f Oneshot: cleanup CLI, initial networking support 2020-01-29 10:08:15 +01:00
618fecb73f Initial implementation (no networking) of uncloud-oneshot 2020-01-28 16:30:43 +01:00