@@ -27,32 +27,47 @@ basis for later automation.
2727
2828```
2929$ ./openstack_workload_generator --help
30- usage: Create workloads on openstack installations [-h] [--log_level loglevel] [--os_cloud OS_CLOUD] [--ansible_inventory [ANSIBLE_INVENTORY]] [--config CONFIG]
31- (--create_domains DOMAINNAME [DOMAINNAME ...] | --delete_domains DOMAINNAME [DOMAINNAME ...])
32- (--create_projects PROJECTNAME [PROJECTNAME ...] | --delete_projects PROJECTNAME [PROJECTNAME ...])
33- (--create_machines SERVERNAME [SERVERNAME ...] | --delete_machines SERVERNAME [SERVERNAME ...])
30+ usage: Create workloads on openstack installations [-h] [--log_level loglevel] [--os_cloud OS_CLOUD]
31+ [--ansible_inventory [ANSIBLE_INVENTORY]]
32+ [--clouds_yaml [CLOUDS_YAML]] [--wait_for_machines]
33+ [--generate_clouds_yaml [GENERATE_CLOUDS_YAML]]
34+ [--config CONFIG]
35+ (--create_domains DOMAINNAME [DOMAINNAME ...] |
36+ --delete_domains DOMAINNAME [DOMAINNAME ...])
37+ [--create_projects PROJECTNAME [PROJECTNAME ...] |
38+ --delete_projects PROJECTNAME [PROJECTNAME ...]]
39+ [--create_machines SERVERNAME [SERVERNAME ...] |
40+ --delete_machines SERVERNAME [SERVERNAME ...]]
3441
3542options:
3643 -h, --help show this help message and exit
3744 --log_level loglevel The loglevel
38- --os_cloud OS_CLOUD The openstack config to use, defaults to the value of the OS_CLOUD environment variable or "admin" if the variable is not set
45+ --os_cloud OS_CLOUD The openstack config to use, defaults to the value of the OS_CLOUD environment variable or
46+ "admin" if the variable is not set
3947 --ansible_inventory [ANSIBLE_INVENTORY]
40- Dump the created servers as an ansible inventory to the specified directory, adds a ssh proxy jump for the hosts without a floating ip
41- --wait_for_machines Wait for every machine to be created (normally the provisioning only waits for machines which use floating ips)
42- --config CONFIG The config file for environment creation, define a path to the yaml file or a subpath in the profiles folder
48+ Dump the created servers as an ansible inventory to the specified directory, adds a ssh
49+ proxy jump for the hosts without a floating ip
50+ --clouds_yaml [CLOUDS_YAML]
51+ Use a specific clouds.yaml file
52+ --wait_for_machines Wait for every machine to be created (normally the provisioning only waits for machines
53+ which use floating ips)
54+ --generate_clouds_yaml [GENERATE_CLOUDS_YAML]
55+ Generate a openstack clouds.yaml file
56+ --config CONFIG The config file for environment creation, define a path to the yaml file or a subpath in
57+ the profiles folder
4358 --create_domains DOMAINNAME [DOMAINNAME ...]
4459 A list of domains to be created
4560 --delete_domains DOMAINNAME [DOMAINNAME ...]
4661 A list of domains to be deleted, all child elements are recursively deleted
4762 --create_projects PROJECTNAME [PROJECTNAME ...]
4863 A list of projects to be created in the created domains
4964 --delete_projects PROJECTNAME [PROJECTNAME ...]
50- A list of projects to be deleted in the created domains, all child elements are recursively deleted
65+ A list of projects to be deleted in the created domains, all child elements are
66+ recursively deleted
5167 --create_machines SERVERNAME [SERVERNAME ...]
5268 A list of vms to be created in the created domains
5369 --delete_machines SERVERNAME [SERVERNAME ...]
5470 A list of vms to be deleted in the created projects
55-
5671```
5772
5873# Testing Scenarios
@@ -162,19 +177,13 @@ $ ./openstack_workload_generator --delete_domains smoketest1
162177admin_domain_password: yolobanana
163178admin_vm_password: yolobanana
164179admin_vm_ssh_key: ' ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIACLmNpHitBkZGVbWAFxZjUATNvLjSktAKwokFIQ9Z1k
[email protected] 165-
166180 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyw2z/C+5YugYNXQXbeop0AcOjmWZCvcmci/vOAboO8
[email protected] 167-
168181 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHsMKOr3TEolg4+4hny/zBe4kLcjzkm+vkc932498fVD
[email protected] 169-
170182 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILa+/eL5ZM3AWKgm1h4/EFU9hOaSKqaoldHmNeg0qG46
[email protected] 171-
172183 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC2wE2xiuO+i3qmDvu8kCCKX7U7H1diOICbWmR2UrKIxqWgcfWMQsT3WclotJKuVJuKIWyFD6ZNwwLuvC3RxVSqhCiWjqxg3jzJBj7/C1O3IYyLGTUl/x7Cky530lf/aj4wrwt3Ketk/4QNwgget2nCvOy0S2NDCJ3rL6oIUjdJekvRrFf9IbWeX8fqYYCoh1cYJWto1XYPnhMDAB/lqtjN1ssurLSKoJg/bUT7q/KkIvvA/BOR2NMqS0aGx+bKhdkeB22V/t75Ct8ymoCYk9+MTC9i/QX20Fi7835/W7Gl18J8NiO9ebaWyYbsxZ5klWXQa5EiLLBDZ82OR88G+0FjXp1Z3VG6FcpdYpW7sxrT21HEvWOnQACZCdlzwyBJ31id/LjDRhJU6BmZm0Sa9EOJNL8XVOUUzuoa0XL1mIVTsmLpUwqLSfw6Ditb+q4afFi0iYMe3JKOt+JmftvBgeQCjNUsCzk+Ny2j6dZKv2aeF5LOQZGRM3HzG39Gkir3q1zdWmCl4lc3QQBfr5ZcdAp+wQMFSgJAudKffO9kdDVNoyjgih7rD3E+JjJdhY9//WQEEBm2vfEqm7qqEQUAELd0JBCivJmOhUVH0rGbTrnkTBtLR4Au40W5aYaNQJ7+U3hTRrvpycSC1pUU3Wq3OXJd2FRDgKQJljQcpBw4V9j8GQ== Operator
173-
174184 '
175185admin_vm_ssh_keypair_name: my_ssh_public_key
176186cloud_init_extra_script: ' #! /bin/bash
177-
178187 echo " HELLO WORLD" ; date > READY; whoami >> READY'
179188number_of_floating_ips_per_project: ' 1'
180189project_ipv4_subnet: 192.168.200.0/24
0 commit comments