Skip to content

Commit da13b91

Browse files
committed
[multiple] Post changes after removing playbooks
Update comments in the playbooks, remove relations in Zuul for tracking removed files, and others that helps to remove the playbooks. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent bd84bd0 commit da13b91

File tree

9 files changed

+26
-33
lines changed

9 files changed

+26
-33
lines changed

deploy-edpm.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@
145145
ansible.builtin.import_role:
146146
name: run_hook
147147

148-
# FIXME:Earlier, where we were using import_playbook, the cifmw_architecture_scenario
149-
# variable was not available in playbooks/06-deploy-architecture.yml,
150-
# but by using import_playbook, the variables are parsed in different way,
151-
# so instead of cifmw_architecture_scenario not being defined, it is defined
152-
# and it is executing additional tasks, which should not.
153-
# Temporary move the end_play here and let's improve the tasks execution
154-
# where tasks execution would be merged into one if the tasks should
155-
# be done on same host.
156148
- name: Early end if not architecture deploy
157149
tags:
158150
- always

hooks/playbooks/ceph-deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
55
gather_facts: false
66
tasks:
7-
87
- name: Debug cifmw_make_ceph_environment
98
when:
109
- cifmw_make_ceph_environment is defined
@@ -13,10 +12,6 @@
1312

1413
# Since the hook injects the ansible.cfg in the ansible-playbook command,
1514
# we therefore should know where to look for the install_yamls_makes role.
16-
# For the records, this role is generated in the 01-bootstrap.yml playbook
17-
# (migrated to: roles/cifmw_setup/tasks/bootstrap.yml)
18-
# by leveraging the install_yamls role and related modules, especially
19-
# the generate_make_tasks.
2015
# And we can pass down the cifmw_make_ceph_environment set in the
2116
# environment of the main play. If we don't have anything for that param,
2217
# let's default to an empty hash.

playbooks/validations.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#
1+
---
2+
# TODO: remove this playbook.
23
# NOTE: Playbook migrated to: roles/cifmw_setup/tasks/hci_deploy.yml &
34
# 06-deploy-architecture.yml.
45
# This migration is temporary, and will be further migrated to role.

roles/ci_lvms_storage/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ clean and adds to an LVMS cluster.
3131

3232
If the ci-framework is called and `cifmw_use_lvms` is true, then
3333
the tasks in role `roles/cifmw_setup/tasks/deploy_architecture.yml`
34-
and playbook `06-deploy-edpm.yml` call the `ci_lvms_storage` role to create
34+
and `cifmw_setup/tasks/deploy-edpm.yml` call the `ci_lvms_storage` role to create
3535
a storage class called `lvms-local-storage` and the `ci_gen_kustomize_values`
3636
role will set the `storageClass` to `lvms-local-storage` in the generated
3737
values.yaml files used to build architecture CRs. The Tempest
3838
CR file, created by the `test_operator` role, will also set its
3939
`storageClass` value to `lvms-local-storage`.
4040

4141
If the ci-framework is called and `cifmw_use_lvms` is false, then the
42-
tasks in role `roles/cifmw_setup/tasks/deploy_architecture.yml` and playbook
43-
`06-deploy-edpm.yml` call the `ci_local_storage` role to create a storage class
44-
called `local-storage` and the `ci_gen_kustomize_values` role will set
45-
the `storageClass` to `local-storage` in the generated values.yaml
42+
tasks in role `roles/cifmw_setup/tasks/deploy_architecture.yml` and
43+
`cifmw_setup/tasks/deploy-edpm.yml` call the `ci_local_storage` role to create
44+
a storage class called `local-storage` and the `ci_gen_kustomize_values` role
45+
will set the `storageClass` to `local-storage` in the generated values.yaml
4646
files used to build architecture CRs. The Tempest CR file, created by
4747
the `test_operator` role, will also set its `storageClass` value to
4848
`local-storage`.

roles/cifmw_setup/tasks/hci_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
name: run_hook
2424

2525
# If we're doing an architecture deployment, we need to skip validations here.
26-
# Instead, they will be executed in the 06-deploy-architecture.yml playbook.
26+
# Instead, they will be executed in the roles/cifmw_setup/tasks/deploy_architecture.yml
2727
- name: Run validations
2828
ansible.builtin.include_role:
2929
name: validations

roles/reproducer/tasks/reuse_main.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,27 @@
116116
loop:
117117
- "{{ cifmw_reproducer_controller_user_dir }}/ansible-bootstrap.log"
118118

119+
- name: Read inventory file and add it using add_host module
120+
vars:
121+
include_inventory_file: "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml"
122+
ansible.builtin.include_role:
123+
name: cifmw_helpers
124+
tasks_from: inventory_file.yml
125+
119126
- name: Bootstrap environment on controller-0
120127
environment:
121-
ANSIBLE_LOG_PATH: "~/ansible-bootstrap.log"
128+
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/ansible-bootstrap.log"
122129
no_log: "{{ cifmw_nolog | default(true) | bool }}"
123-
ansible.builtin.command:
130+
ansible.builtin.import_role:
131+
name: cifmw_setup
132+
tasks_from: bootstrap.yml
133+
vars:
134+
ansible_extra_vars:
135+
- "{{ ansible_user_dir }}/ci-framework-data/parameters/reproducer-variables.yml"
136+
- "scenarios/reproducers/networking-definition.yml"
137+
changed_when: false
138+
args:
124139
chdir: "{{ _cifmw_reproducer_framework_location }}"
125-
cmd: >-
126-
ansible-playbook -i ~/ci-framework-data/artifacts/zuul_inventory.yml
127-
-e @~/ci-framework-data/parameters/reproducer-variables.yml
128-
-e @scenarios/reproducers/networking-definition.yml
129-
playbooks/01-bootstrap.yml
130-
creates: "{{ cifmw_reproducer_controller_user_dir }}/ansible-bootstrap.log"
131140

132141
- name: Install dev tools from install_yamls on controller-0
133142
environment:

scenarios/centos-9/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ cifmw_run_tests: true
3131
# The actual ceph_make task understands "make_ceph_environment".
3232
# But since we're calling it via hook, in order to expose it properly, we
3333
# have to prefix it with "cifmw_". It will then end in the generated file from
34-
# 01-bootstrap.yml playbook (custom-params.yml; migrated to
35-
# roles/cifmw_setup/tasks/bootstrap.yml), and the hook will be able
34+
# roles/cifmw_setup/tasks/bootstrap.yml, and the hook will be able
3635
# to load it and consume the parameters properly
3736
# Check hooks/playbooks/ceph-deploy.yml for the whole logic.
3837
cifmw_make_ceph_environment:

zuul.d/adoption.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@
118118
parent: adoption-standalone-to-crc-ceph
119119
files:
120120
# ci-framework
121-
- ^playbooks/02-infra.yml
122-
- ^playbooks/06-deploy-edpm.yml
123121
- ^roles/discover_latest_image/.*
124122
- ^roles/edpm_prepare/.*
125123
- ^roles/install_ca/.*

zuul.d/edpm_multinode.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@
363363
- ^hooks/playbooks/control_plane_ceph_backends.yml
364364
- ^hooks/playbooks/control_plane_hci_pre_deploy.yml
365365
- ^hooks/playbooks/templates/config_ceph_backends.yaml.j2
366-
- ^playbooks/06-deploy-edpm.yml
367366
- ^roles/edpm_deploy/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).*
368367
- ^roles/hci_prepare/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).*
369368
- ^roles/cifmw_ceph.*/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).*

0 commit comments

Comments
 (0)