
For multi-rhel environments the container/service names are different based on the RHEL version. Introduce the capacity to define the expected container/service names for each of the compute nodes in a deployment. Current compute yaml file follows the below format: computerhel8-0.redhat.local: services: libvirt: container_name: nova_libvirt start_command: 'systemctl start tripleo_nova_libvirt' stop_command: 'systemctl stop tripleo_nova_libvirt' nova-compute: container_name: nova_compute config_path: '/var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf' start_command: 'systemctl start tripleo_nova_compute' stop_command: 'systemctl stop tripleo_nova_compute' compute-0.redhat.local: services: libvirt: container_name: nova_virtqemud start_command: 'systemctl start tripleo_nova_virtqemud' stop_command: 'systemctl stop tripleo_nova_virtqemud' nova-compute: container_name: nova_compute config_path: '/var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf' start_command: 'systemctl start tripleo_nova_compute' stop_command: 'systemctl stop tripleo_nova_compute' Also removed the unit test execution since they do not support this latest change and do not feel the tests are adding any value to commit validation at this time. Change-Id: I98ac827feb4be77af9a482d8ce43d0f1d062e54d
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
- hosts: all
|
|
roles:
|
|
- ensure-pip
|
|
|
|
tasks:
|
|
- name: crudini
|
|
pip:
|
|
name: crudini
|
|
state: present
|
|
become: yes
|
|
- name: Install additional packages needed by job environment
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
become: yes
|
|
loop:
|
|
- "{{ extra_packages }}"
|
|
when: extra_packages is defined
|
|
# NOTE(artom) The run-tempest role runs as the tempest user, so we need to give
|
|
# the tempest user SSH access to all hosts. Devstack's orchestrate-devstack
|
|
# role should have put a pubkey into the stack user's authorized_keys, so if we
|
|
# put the corresponding private key in the tempest user's .ssh, things should
|
|
# magically work.
|
|
- name: Setup tempest SSH key
|
|
include_role:
|
|
name: copy-build-sshkey
|
|
vars:
|
|
ansible_become: yes
|
|
copy_sshkey_target_user: 'tempest'
|
|
|
|
- name: Collect compute hostnames
|
|
set_fact:
|
|
computes: "{{ ansible_play_hosts_all|map('extract', hostvars, 'ansible_fqdn')|list }}"
|
|
run_once: true
|
|
|
|
- name: Render compute_nodes.yaml template
|
|
template:
|
|
src: ../templates/compute_nodes.yaml.j2
|
|
dest: /home/zuul/compute_nodes.yaml
|
|
run_once: true
|
|
delegate_to: controller
|
|
|
|
- name: Output the rendered file at /home/zuul/compute_nodes.yaml
|
|
shell: |
|
|
cat /home/zuul/compute_nodes.yaml
|
|
run_once: true
|
|
delegate_to: controller |