-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a playbook to install openstack tempest, and to template a configuration file from the site-config. WARNING: Don't run this against a production site, you will impact your users and/or lose date. Use it only for development sites, or for acceptance tests prior to letting users on.
- Loading branch information
1 parent
f76728e
commit c082b23
Showing
8 changed files
with
215 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- hosts: deployment | ||
roles: | ||
- role: tempest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
tempest_install_dir: ~/tempest | ||
tempest_git_repo: https://github.com/openstack/tempest | ||
|
||
tempest_workspace_root: "{{ tempest_install_dir }}/workspaces" | ||
local_site_workspace: "{{ tempest_workspace_root }}/local" | ||
|
||
|
||
# TODO: these 4 parameters should be fetched from openstack API, since the values are | ||
# set dynamically during post-deploy | ||
tempest_fixed_network_name: "sharednet1" | ||
tempest_public_network_uuid: | ||
tempest_compute_image_uuid: | ||
tempest_baremetal_flavor_uuid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
- name: clone tempest git repo | ||
ansible.builtin.git: | ||
repo: "{{ tempest_git_repo }}" | ||
dest: "{{ tempest_install_dir }}" | ||
|
||
- name: create venv and install build deps | ||
ansible.builtin.pip: | ||
virtualenv: "{{ tempest_install_dir }}/.venv/" | ||
state: latest | ||
name: | ||
- pip | ||
- wheel | ||
|
||
- name: pip install tempest from the git checkout | ||
ansible.builtin.pip: | ||
name: "{{ tempest_install_dir }}/" | ||
virtualenv: "{{ tempest_install_dir }}/.venv/" | ||
|
||
- name: template tempest.conf from site-config | ||
template: | ||
src: "tempest.conf.j2" | ||
dest: "~/.tempest/etc/tempest.conf" | ||
|
||
- name: initialize tempest workspace | ||
ansible.builtin.command: | ||
chdir: "{{ tempest_install_dir }}" | ||
argv: | ||
- .venv/bin/tempest | ||
- init | ||
- --name | ||
- local | ||
- "{{ local_site_workspace}}" | ||
creates: "{{ local_site_workspace }}/etc/tempest.conf" | ||
|
||
- name: initialize tempest saved state | ||
ansible.builtin.command: | ||
chdir: "{{ local_site_workspace }}" | ||
argv: | ||
- ../../.venv/bin/tempest | ||
- cleanup | ||
- --init-saved-state | ||
creates: "{{ local_site_workspace }}/saved_state.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# tempest.scenario.test_server_basic_ops.TestServerBasicOps.test_server_basic_ops | ||
|
||
# tempest.api.compute.servers.test_create_server.ServersTestJSON | ||
# tempest.api.compute.servers.test_create_server.ServersTestManualDisk | ||
# tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON | ||
# tempest.api.compute.servers.test_server_addresses.ServerAddressesTestJSON | ||
|
||
tempest.api.network.test_floating_ips.FloatingIPTestJSON | ||
tempest.api.network.test_networks.BulkNetworkOpsTest.test_bulk_create_delete_network | ||
tempest.api.network.test_networks.BulkNetworkOpsTest.test_bulk_create_delete_port | ||
tempest.api.network.test_networks.BulkNetworkOpsTest.test_bulk_create_delete_subnet | ||
tempest.api.network.test_networks.NetworksTest | ||
tempest.api.network.test_ports.PortsTestJSON | ||
tempest.api.network.test_routers.RoutersTest.test_add_multiple_router_interfaces | ||
tempest.api.network.test_routers.RoutersTest.test_add_remove_router_interface_with_port_id | ||
tempest.api.network.test_routers.RoutersTest.test_add_remove_router_interface_with_subnet_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
[auth] | ||
|
||
# disabled due to flat networks in dev-in-a-box | ||
create_isolated_networks = false | ||
|
||
# don't use in prod!! | ||
use_dynamic_credentials = true | ||
|
||
admin_username = "{{ keystone_admin_user }}" | ||
admin_project_name = "{{ keystone_admin_project }}" | ||
admin_password = "{{ keystone_admin_password }}" | ||
admin_domain_name = Default | ||
admin_user_domain_name = Default | ||
admin_project_domain_name = Default | ||
|
||
[identity] | ||
|
||
uri_v3 = "{{ keystone_public_url }}/v3" | ||
auth_version = v3 | ||
region = "{{ openstack_region_name }}" | ||
|
||
[service_available] | ||
cinder = "{{ enable_cinder }}" | ||
neutron = true | ||
glance = true | ||
swift = false | ||
nova = true | ||
horizon = true | ||
|
||
[compute] | ||
|
||
image_ref = "{{ tempest_compute_image_uuid }}" | ||
image_ref_alt = "{{ tempest_compute_image_uuid }}" | ||
flavor_ref = "{{ tempest_baremetal_flavor_uuid }}" | ||
|
||
fixed_network_name = "{{ tempest_fixed_network_name }}" | ||
|
||
[compute-feature-enabled] | ||
|
||
# must match value in nova.conf | ||
scheduler_enabled_filters = ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,BlazarFilter | ||
|
||
metadata_service = true | ||
interface_attach = true | ||
config_drive = true | ||
serial_console = true | ||
|
||
# not currently working with our ironic config | ||
rescue = false | ||
|
||
# Do these work?? | ||
#disk_config = true | ||
#enable_instance_password = false | ||
#change_password = false | ||
#personality = false | ||
#unified_limits = false | ||
|
||
## VM only features, not applicable for barmetal | ||
snapshot = false | ||
resize = false | ||
pause = false | ||
shelve = false | ||
shelve_migrate = false | ||
suspend = false | ||
cold_migration = false | ||
live_migration = false | ||
live_migrate_back_and_forth = false | ||
vnc_console = false | ||
attach_encrypted_volume = false | ||
swap_volume = false | ||
volume_backed_live_migration = false | ||
volume_multiattach = false | ||
|
||
[network] | ||
project_networks_reachable = false | ||
public_network_id = "{{ tempest_public_network_uuid }}" | ||
|
||
project_network_cidr = 10.100.0.0/16 | ||
project_network_mask_bits = 28 | ||
|
||
[network-feature-enabled] | ||
ipv6 = false | ||
|
||
api_extensions = address-group,address-scope,router-admin-state-down-before-update,agent,agent-resources-synced,allowed-address-pairs,auto-allocated-topology,availability_zone,availability_zone_filter,default-subnetpools,dhcp_agent_scheduler,dvr,empty-string-filtering,external-net,extra_dhcp_opt,extraroute,extraroute-atomic,filter-validation,fip-port-details,flavors,floatingip-pools,ip-substring-filtering,router,ext-gw-mode,l3-ha,l3-flavors,l3-port-ip-change-not-allowed,l3_agent_scheduler,multi-provider,net-mtu,net-mtu-writable,network_availability_zone,network-ip-availability,network-segment-range,pagination,port-device-profile,port-mac-address-regenerate,port-numa-affinity-policy,binding,binding-extended,port-security,project-id,provider,quotas,quota_details,rbac-policies,rbac-address-group,rbac-address-scope,rbac-security-groups,rbac-subnetpool,revision-if-match,standard-attr-revisions,router_availability_zone,security-groups-normalized-cidr,port-security-groups-filtering,security-groups-remote-address-group,security-group,service-type,sorting,standard-attr-description,stateful-security-group,subnet_onboard,subnet-service-types,subnet_allocation,subnetpool-prefix-ops,standard-attr-tag,standard-attr-timestamp | ||
|
||
[dashboard] | ||
|
||
dashboard_url = "{{ horizon_public_endpoint }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters