[go: up one dir, main page]

tezt-cloud: support non cos vms

What

Add basic support of non-gcp VMS accessed by ssh.

How

Introduce a new deployment target : Ssh_host alongside Remote and Localhost. This duplicates the deployment for proxy that is tighly bound to gcp, but allows to reuse all initialization and support for proxy mode. At this time, the deployment is done on the machine specified in multiple local (the to machine) docker containers. Only --network host is supported at this time. Graphana and Prometheus, should be supported.

The new deployment does not yet allow to run multiple deployment on the same ssh machine (it will be fixed in a follow-up)

A new option: ssh-host is introduced, for example:

--ssh-host root@10.50.223.211

How to test

Create your debian vm and get its ip:

By using a debian GCP vm:

TEZT_CLOUD=myvmteztcloud
dune exec tezt/tests/cloud/main.exe -- BASIC run vm --tezt-cloud $TEZT_CLOUD --os debian -v

# Get its IP:
gcloud compute instances list | grep $TEZT_CLOUD
# Opens the ports to allow connection:
gcloud compute firewall-rules update $TEZT_CLOUD-0-firewall --rules=tcp:80,tcp:8080,tcp:4317,tcp:14250,tcp:16686,tcp:55681,tcp:9090,tcp:20000-30050,tcp:3000,tcp:19999,tcp:22,tcp:11732,tcp:2222

By using your favorite hypervisor:

  • qemu, libvirt, virtualbox ? You should configure it to allow ssh root access or an account with sudo and ssh key authentication.

Deploy

Now you can deploy on this VM:

TEZT_CLOUD=deploymentteztcloud # Do not use the same tezt-cloud as for your VM
MACHINEIP= # Set the machine IP:
dune exec tezt/tests/cloud/main.exe -- DAL --bootstrap -v --prometheus --dockerfile-alias baugr --tezt-cloud baugr2 --log-file /tmp/log --refresh-binaries --vms-limit 0 --ssh-host MACHINEIP
Edited by Guillaume B

Merge request reports

Loading