@@ -19,11 +19,9 @@ Pre-provisioned nodes:: Setting `preProvisioned: true` in the
1919 Existing disk mounts are untouched. The `SwiftRawDisks` parameter from
2020 {OpenStackPreviousInstaller} is not migrated or converted. Disks on
2121 converted nodes must be managed manually.
22- Rolling conversion with multiple node sets:: In production, do not convert
23- all {object_storage} nodes at once. Instead, create separate
24- `OpenStackDataPlaneNodeSet` custom resources and deploy them sequentially. Align
25- groups with ring zones or regions so that no more than one replica of any
26- partition is affected during the conversion.
22+ Rolling conversion:: The `swift-conversion` service uses `serial: 1` by
23+ default, which converts one node at a time to keep the {object_storage}
24+ available.
2725
2826.Prerequisites
2927
@@ -89,18 +87,41 @@ $ oc patch openstackcontrolplane openstack --type=merge --patch-file=swift-confi
8987----
9088
9189. Create a `OpenStackDataPlaneService` CR to remove remaining
92- {OpenStackPreviousInstaller} artifacts, such as containers, `systemd` units, and
93- configuration, from the node:
90+ {OpenStackPreviousInstaller} artifacts and deploy the {object_storage} services
91+ on the node:
9492+
9593----
9694$ oc apply -f - <<EOF
9795apiVersion: dataplane.openstack.org/v1beta1
9896kind: OpenStackDataPlaneService
9997metadata:
100- name: tripleo-cleanup
98+ name: swift-conversion
10199 namespace: openstack
102100spec:
103- playbook: osp.edpm.tripleo_cleanup
101+ addCertMounts: false
102+ caCerts: combined-ca-bundle
103+ edpmServiceType: swift
104+ dataSources:
105+ - secretRef:
106+ name: swift-conf
107+ - configMapRef:
108+ name: swift-storage-config-data
109+ - configMapRef:
110+ name: swift-ring-files
111+ playbookContents: |
112+ - name: Cleanup and deploy Swift
113+ hosts: "{{ edpm_override_hosts | default('all', true) }}"
114+ serial: 1
115+ strategy: linear
116+ gather_facts: "{{ gather_facts | default(false) }}"
117+ any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
118+ max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
119+ environment: "{{ edpm_playbook_environment | default({}) }}"
120+ tasks:
121+ - ansible.builtin.import_role:
122+ name: osp.edpm.edpm_tripleo_cleanup
123+ - ansible.builtin.import_role:
124+ name: osp.edpm.edpm_swift
104125EOF
105126----
106127
@@ -225,8 +246,7 @@ endif::[]
225246 - run-os
226247 - reboot-os
227248 - install-certs
228- - tripleo-cleanup
229- - swift
249+ - swift-conversion
230250 tlsEnabled: true
231251----
232252
0 commit comments