Skip to content

yoguo/avocado-cloud-scheduler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avocado-cloud-scheduler

Scheduler and Executor for avocado-cloud testing.

Usage

1. Setup

dnf install podman

2. Preparation

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

3. Configuration

git clone https://github.com/schrht/avocado-cloud-scheduler.git

cd avocado-cloud-scheduler
vi config.toml

3.1. Enable a region

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.

4. Manual test

cd avocado-cloud-scheduler
./executor.py --flavor ecs.i2.xlarge

5. Auto test

./utils/make_tasklist.sh -f "ecs.hfg5.xlarge ecs.i2.xlarge ecs.g6.large"
./schedule.py

About

Scheduler for avocado-cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.1%
  • Shell 47.9%