Skip to content

Commit dfaeb93

Browse files
Merge pull request #1112 from rebtoor/OSPNW-881
add playbook for Ceph + Ironic adoption
2 parents 89fb3f3 + 9cc9b85 commit dfaeb93

File tree

2 files changed

+132
-1
lines changed

2 files changed

+132
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ test-with-ceph: ## Launch test suite with ceph
4444
mkdir -p tests/logs
4545
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) $(TEST_ARGS) tests/playbooks/test_with_ceph.yaml 2>&1 | tee $(TEST_OUTFILE)
4646

47+
test-with-ceph-and-ironic: TEST_OUTFILE ?= tests/logs/test_with_ceph_and_ironic_out_$(shell date +%FT%T%Z).log
48+
test-with-ceph-and-ironic: ## Launch test suite with ceph and ironic
49+
mkdir -p tests/logs
50+
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) $(TEST_ARGS) tests/playbooks/test_with_ceph_and_ironic.yaml 2>&1 | tee $(TEST_OUTFILE)
51+
4752
test-tripleo-requirements: TEST_OUTFILE ?= tests/logs/test_tripleo_requirements_out_$(shell date +%FT%T%Z).log
4853
test-tripleo-requirements: ## Launch test suite related to the ceph migration
4954
mkdir -p tests/logs
@@ -88,7 +93,7 @@ test-rollback-only-with-ceph:
8893
test-with-ironic: TEST_OUTFILE ?= tests/logs/test_with_ironic_out_$(shell date +%FT%T%Z).log
8994
test-with-ironic: ## Launch test suite with Ironic
9095
mkdir -p tests/logs
91-
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) tests/playbooks/test_with_ironic.yaml 2>&1 | tee $(TEST_OUTFILE)
96+
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_SECRETS) -e @$(TEST_VARS) $(TEST_ARGS) tests/playbooks/test_with_ironic.yaml 2>&1 | tee $(TEST_OUTFILE)
9297

9398
##@ DOCS
9499

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
- name: Prelude
2+
hosts: local
3+
gather_facts: false
4+
module_defaults:
5+
ansible.builtin.shell:
6+
executable: /bin/bash
7+
roles:
8+
- prelude_local
9+
10+
- name: Cleanup
11+
hosts: local
12+
gather_facts: false
13+
module_defaults:
14+
ansible.builtin.shell:
15+
executable: /bin/bash
16+
roles:
17+
- pcp_cleanup
18+
19+
- name: Common pre-adoption tasks
20+
import_playbook: _before_adoption.yaml
21+
22+
- name: Adoption
23+
hosts: local
24+
gather_facts: false
25+
force_handlers: true
26+
vars:
27+
# Ceph backend configuration
28+
glance_backend: ceph
29+
manila_backend: cephfs
30+
cinder_volume_backend: ceph
31+
cinder_backup_backend: ceph
32+
nova_libvirt_backend: ceph
33+
# Ironic adoption configuration
34+
ironic_adoption: true
35+
prelaunch_test_instance_scripts:
36+
- pre_launch_ironic.bash
37+
module_defaults:
38+
ansible.builtin.shell:
39+
executable: /bin/bash
40+
roles:
41+
- role: development_environment
42+
tags:
43+
- development_environment
44+
- role: tls_adoption
45+
tags:
46+
- tls_adoption
47+
when: enable_tlse|default(false)
48+
- role: backend_services
49+
tags:
50+
- backend_services
51+
- role: ceph_backend_configuration
52+
tags:
53+
- ceph_backend_configuration
54+
- role: get_services_configuration
55+
tags:
56+
- get_services_configuration
57+
- role: stop_openstack_services
58+
tags:
59+
- stop_openstack_services
60+
- role: mariadb_copy
61+
tags:
62+
- mariadb_copy
63+
- role: ovn_adoption
64+
tags:
65+
- ovn_adoption
66+
- role: keystone_adoption
67+
tags:
68+
- keystone_adoption
69+
- role: barbican_adoption
70+
tags:
71+
- barbican_adoption
72+
- role: neutron_adoption
73+
tags:
74+
- neutron_adoption
75+
- role: swift_adoption
76+
tags:
77+
- swift_adoption
78+
- role: glance_adoption
79+
tags:
80+
- glance_adoption
81+
- role: placement_adoption
82+
tags:
83+
- placement_adoption
84+
- role: nova_adoption
85+
tags:
86+
- nova_adoption
87+
- role: cinder_adoption
88+
tags:
89+
- cinder_adoption
90+
- role: octavia_adoption
91+
tags:
92+
- octavia_adoption
93+
- role: horizon_adoption
94+
tags:
95+
- horizon_adoption
96+
- role: heat_adoption
97+
tags:
98+
- heat_adoption
99+
- role: telemetry_adoption
100+
tags:
101+
- telemetry_adoption
102+
when: telemetry_adoption|default(true)
103+
- role: autoscaling_adoption
104+
tags:
105+
- autoscaling_adoption
106+
when: telemetry_adoption|default(true)
107+
- role: manila_adoption
108+
tags:
109+
- manila_adoption
110+
- role: ironic_adoption
111+
tags:
112+
- ironic_adoption
113+
- role: stop_remaining_services
114+
tags:
115+
- stop_remaining_services
116+
- role: pull_openstack_configuration
117+
tags:
118+
- pull_openstack_configuration
119+
when: dataplane_adoption|default(true)
120+
- role: dataplane_adoption
121+
tags:
122+
- dataplane_adoption
123+
when: dataplane_adoption|default(true)
124+
125+
- name: Stop the ping test
126+
import_playbook: _stop_ping_test.yaml

0 commit comments

Comments
 (0)