Create nova endpoints for tempest test
Horizon tempest tests validate that the Project Overview page is accessible after logging in. I1b2ddee0395ad9f55692111604b31618c4eaf69e added permissions to this page, requiring that the compute service be registered within the keystone catalog. Add tasks to create the nova service and endpoints to allow the tempest tests to complete. Change-Id: Iec0f0f55477464979ef36eb71b9f606348857a52
This commit is contained in:
parent
6020a7f2a4
commit
961d117048
@ -18,6 +18,45 @@
|
|||||||
user: root
|
user: root
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
# Horizon tempest testing require the compute service
|
||||||
|
# and endpoints to be registered within the region
|
||||||
|
- name: Ensure nova service
|
||||||
|
keystone:
|
||||||
|
command: "ensure_service"
|
||||||
|
endpoint: "{{ keystone_service_adminurl }}"
|
||||||
|
login_user: "{{ keystone_admin_user_name }}"
|
||||||
|
login_password: "{{ keystone_auth_admin_password }}"
|
||||||
|
login_project_name: "{{ keystone_admin_tenant_name }}"
|
||||||
|
service_name: "{{ nova_service_name }}"
|
||||||
|
service_type: "{{ nova_service_type }}"
|
||||||
|
description: "{{ nova_service_description }}"
|
||||||
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
|
register: add_service
|
||||||
|
until: add_service|success
|
||||||
|
retries: 5
|
||||||
|
delay: 2
|
||||||
|
- name: Ensure nova endpoint
|
||||||
|
keystone:
|
||||||
|
command: "ensure_endpoint"
|
||||||
|
endpoint: "{{ keystone_service_adminurl }}"
|
||||||
|
login_user: "{{ keystone_admin_user_name }}"
|
||||||
|
login_password: "{{ keystone_auth_admin_password }}"
|
||||||
|
login_project_name: "{{ keystone_admin_tenant_name }}"
|
||||||
|
region_name: "{{ nova_service_region }}"
|
||||||
|
service_name: "{{ nova_service_name }}"
|
||||||
|
service_type: "{{ nova_service_type }}"
|
||||||
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
|
endpoint_list:
|
||||||
|
- url: "{{ nova_service_publicurl }}"
|
||||||
|
interface: "public"
|
||||||
|
- url: "{{ nova_service_internalurl }}"
|
||||||
|
interface: "internal"
|
||||||
|
- url: "{{ nova_service_adminurl }}"
|
||||||
|
interface: "admin"
|
||||||
|
register: add_service
|
||||||
|
until: add_service|success
|
||||||
|
retries: 5
|
||||||
|
delay: 10
|
||||||
- name: Run tempest
|
- name: Run tempest
|
||||||
shell: |
|
shell: |
|
||||||
. {{ tempest_bin }}/activate
|
. {{ tempest_bin }}/activate
|
||||||
|
@ -58,6 +58,18 @@ keystone_service_password: "secrete"
|
|||||||
keystone_venv_tag: "testing"
|
keystone_venv_tag: "testing"
|
||||||
memcached_encryption_key: "secrete"
|
memcached_encryption_key: "secrete"
|
||||||
memcached_servers: 127.0.0.1
|
memcached_servers: 127.0.0.1
|
||||||
|
nova_service_name: nova
|
||||||
|
nova_service_type: compute
|
||||||
|
nova_service_description: "Nova Compute Service"
|
||||||
|
nova_service_port: 8774
|
||||||
|
nova_service_proto: http
|
||||||
|
nova_service_region: RegionOne
|
||||||
|
nova_service_publicuri: "{{ nova_service_proto }}://{{ external_lb_vip_address }}:{{ nova_service_port }}"
|
||||||
|
nova_service_publicurl: "{{ nova_service_publicuri }}/v2.1/%(tenant_id)s"
|
||||||
|
nova_service_adminuri: "{{ nova_service_proto }}://{{ internal_lb_vip_address }}:{{ nova_service_port }}"
|
||||||
|
nova_service_adminurl: "{{ nova_service_adminuri }}/v2.1/%(tenant_id)s"
|
||||||
|
nova_service_internaluri: "{{ nova_service_proto }}://{{ internal_lb_vip_address }}:{{ nova_service_port }}"
|
||||||
|
nova_service_internalurl: "{{ nova_service_internaluri }}/v2.1/%(tenant_id)s"
|
||||||
openrc_os_auth_url: "http://127.0.0.1:5000/v3"
|
openrc_os_auth_url: "http://127.0.0.1:5000/v3"
|
||||||
openrc_os_domain_name: "Default"
|
openrc_os_domain_name: "Default"
|
||||||
openrc_os_password: "{{ keystone_auth_admin_password }}"
|
openrc_os_password: "{{ keystone_auth_admin_password }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user