Skip to content

Commit fa4ca82

Browse files
committed
Remove patching OSP as the package is released now
Signed-off-by: Bohdan Dobrelia <[email protected]>
1 parent 9892d01 commit fa4ca82

File tree

1 file changed

+0
-81
lines changed

1 file changed

+0
-81
lines changed

devsetup/tripleo/tripleo_install.sh

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -225,87 +225,6 @@ openstack overcloud deploy --stack overcloud \
225225
-e /home/zuul/vips_provision_out.yaml -e /home/zuul/network_provision_out.yaml --disable-validations --heat-type pod \
226226
--disable-protected-resource-types --log-file overcloud_deployment.log
227227
if [ $EDPM_COMPUTE_CELLS -gt 1 ] ; then
228-
# FIXME(bogdando): w/a OSP17.1 https://bugzilla.redhat.com/show_bug.cgi?id=2294898 until the fix merged and shipped
229-
sudo dnf install -y patch
230-
cd /usr/share/ansible
231-
cat > /tmp/patch << EOF
232-
--- a/tripleo-playbooks/create-nova-cell-v2.yaml
233-
+++ b/tripleo-playbooks/create-nova-cell-v2.yaml
234-
@@ -21,22 +21,23 @@
235-
tripleo_cellv2_cell_name: "{{ tripleo_cellv2_cell_name }}"
236-
# containercli can be tropped when we fully switched to podman
237-
tripleo_cellv2_containercli: "{{ tripleo_cellv2_containercli }}"
238-
- tripleo_cellv2_cellcontroller_group: "{{ groups['CellController'] }}"
239-
tasks:
240-
- import_role:
241-
name: tripleo_cellv2
242-
tasks_from: check_cell_exist.yml
243-
244-
-- hosts: CellController[0]
245-
+- hosts: Controller[0]
246-
remote_user: stack
247-
- gather_facts: true
248-
+ gather_facts: false
249-
vars:
250-
tripleo_cellv2_cell_name: "{{ tripleo_cellv2_cell_name }}"
251-
# containercli can be tropped when we fully switched to podman
252-
tripleo_cellv2_containercli: "{{ tripleo_cellv2_containercli }}"
253-
- tripleo_cellv2_cellcontroller_group: "{{ groups['CellController'] }}"
254-
+ tripleo_cellv2_cellcontroller_group: "{{ groups[tripleo_cellv2_cell_name ~ '_' ~ tripleo_cellv2_cellcontroller_rolename] }}"
255-
tasks:
256-
- - import_role:
257-
+ - delegate_to: "{{ tripleo_cellv2_cellcontroller_group[0] }}"
258-
+ delegate_facts: false
259-
+ import_role:
260-
name: tripleo_cellv2
261-
tasks_from: extract_cell_information.yml
262-
263-
@@ -47,7 +48,7 @@
264-
tripleo_cellv2_cell_name: "{{ tripleo_cellv2_cell_name }}"
265-
# containercli can be tropped when we fully switched to podman
266-
tripleo_cellv2_containercli: "{{ tripleo_cellv2_containercli }}"
267-
- tripleo_cellv2_cellcontroller_group: "{{ groups['CellController'] }}"
268-
+ tripleo_cellv2_cellcontroller_group: "{{ groups[tripleo_cellv2_cell_name ~ '_' ~ tripleo_cellv2_cellcontroller_rolename] }}"
269-
tasks:
270-
- import_role:
271-
name: tripleo_cellv2
272-
273-
--- a/roles/tripleo_cellv2/defaults/main.yml
274-
+++ b/roles/tripleo_cellv2/defaults/main.yml
275-
@@ -18,10 +18,11 @@
276-
# All variables intended for modification should be placed in this file.
277-
278-
tripleo_cellv2_debug: "{{ (ansible_verbosity | int) >= 2 | bool }}"
279-
-tripleo_cellv2_cell_name: ""
280-
+tripleo_cellv2_cell_name: "cell1"
281-
# containercli can be tropped when we fully switched to podman
282-
tripleo_cellv2_containercli: "docker"
283-
284-
-tripleo_cellv2_cellcontroller_group: "{{ groups['CellController'] }}"
285-
-tripleo_cellv2_cell_database_vip: "{{ hostvars[tripleo_cellv2_cellcontroller_group[0]]['cell_database_vip'] }}"
286-
-tripleo_cellv2_cell_transport_url: "{{ hostvars[tripleo_cellv2_cellcontroller_group[0]]['cell_transport_url'] }}"
287-
+tripleo_cellv2_cellcontroller_rolename: "CellController"
288-
+tripleo_cellv2_cellcontroller_group: "{{ groups[tripleo_cellv2_cellcontroller_rolename] }}"
289-
+tripleo_cellv2_cell_database_vip: ""
290-
+tripleo_cellv2_cell_transport_url: ""
291-
292-
--- a/roles/tripleo_cellv2/tasks/create_cell.yml
293-
+++ b/roles/tripleo_cellv2/tasks/create_cell.yml
294-
@@ -21,8 +21,8 @@
295-
shell: >-
296-
{{ tripleo_cellv2_containercli }} exec -i -u root nova_api
297-
nova-manage cell_v2 create_cell --name {{ tripleo_cellv2_cell_name }}
298-
- --database_connection "{scheme}://{username}:{password}@{{ tripleo_cellv2_cell_database_vip }}/nova?{query}"
299-
- --transport-url "{{ tripleo_cellv2_cell_transport_url }}"
300-
+ --database_connection "{scheme}://{username}:{password}@{{ tripleo_cellv2_cell_database_vip | default(cell_database_vip, true) }}/nova?{query}"
301-
+ --transport-url "{{ tripleo_cellv2_cell_transport_url | default(cell_transport_url, true) }}"
302-
303-
- name: List Cells
304-
shell: >
305-
EOF
306-
sudo patch -p1 < /tmp/patch
307-
cd -
308-
309228
mkdir -p /home/zuul/inventories
310229
cp /home/zuul/overcloud-deploy/overcloud/config-download/overcloud/tripleo-ansible-inventory.yaml /home/zuul/inventories/overcloud.yaml
311230
export OS_CLOUD=overcloud

0 commit comments

Comments
 (0)