Scheduler and Executor for avocado-cloud testing.
dnf install podman
git clone https://github.com/virt-s1/avocado-cloud.git
cd avocado-cloud
podman build --rm --pull -t "avocado-cloud" . -f ./container/Dockerfile
podman inspect avocado-cloud:latest
git clone https://github.com/schrht/avocado-cloud-scheduler.git
cd avocado-cloud-scheduler
vi config.toml
Prepare resources:
# Deliver image (example)
./utils/copy_image.sh -r cn-hangzhou -n redhat_8_5_x64_20G_alibase_20211117.qcow2 \
-R cn-hangzhou -N redhat_8_5_x64_20G_alibase_20211117_bios.qcow2
./utils/switch_image_boot.sh -r cn-hangzhou -n redhat_8_5_x64_20G_alibase_20211117_bios.qcow2 -m BIOS
./utils/copy_image.sh -r cn-hangzhou -n redhat_8_5_x64_20G_alibase_20211117_bios.qcow2 -R cn-beijing
./utils/switch_image_boot.sh -r cn-hangzhou -n redhat_8_5_x64_20G_alibase_20211117_uefi.qcow2 -m UEFI
./utils/copy_image.sh -r cn-hangzhou -n redhat_8_5_x64_20G_alibase_20211117_uefi.qcow2 -R cn-beijing
# Create VSwitches (example)
./utils/create_vsw_for_region.sh -r cn-beijing
# Create sshkey
(...Doing on the website...)
Then update the configuration in config.toml
.
cd avocado-cloud-scheduler
./executor.py --flavor ecs.i2.xlarge
./utils/make_tasklist.sh -f "ecs.hfg5.xlarge ecs.i2.xlarge ecs.g6.large"
./schedule.py