Skip to content

Commit 41894c8

Browse files
Merge pull request #943 from pinikomarov/NS_residues_removal
NS residues removal
2 parents 3a81a74 + 085996b commit 41894c8

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

docs_user/modules/proc_adopting-the-compute-service.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ spec:
121121
disable_compute_service_check_for_ffu=true
122122
EOF
123123
cat celltemplates >> oscp-patch.yaml
124-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch-file=oscp-patch.yaml
124+
oc patch openstackcontrolplane openstack --type=merge --patch-file=oscp-patch.yaml
125125
----
126126
+
127127
<1> The `cellDatabaseInstance` is the database instance that is used by the cell. The database instance names must match the names defined for OpenStackControlPlane created earlier in xref:deploying-backend-services_{context}[Deploying back-end services].

docs_user/modules/proc_ospdo-scale-down-pre-database-adoption.adoc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ $ oc delete openstackclients.client.openstack.org --all
9696
. Delete the OSPdO `OpenStackControlPlane` custom resource (CR):
9797
+
9898
----
99-
$ oc delete openstackcontrolplanes.osp-director.openstack.org -n openstack --all
99+
$ oc delete openstackcontrolplanes.osp-director.openstack.org -n "${OSPDO_NAMESPACE}" --all
100100
----
101101
. Delete the OSPdO `OpenStackNetConfig` CR to remove the associated node network configuration policies:
102102
+
103103
----
104-
$ oc delete osnetconfig -n openstack --all
104+
$ oc delete osnetconfig -n "${OSPDO_NAMESPACE}" --all
105105
----
106106
. Label the {OpenShiftShort} node that contains the OSPdO virtual machine (VM):
107107
+
@@ -239,33 +239,33 @@ $ oc apply -f /tmp/node3_nncp.yaml
239239
. Delete the remaining OSPdO resources. Do not delete the `OpenStackBaremetalSets` and `OpenStackProvisionServer` resources:
240240
+
241241
----
242-
$ for i in $(oc get crd | grep osp-director | grep -v baremetalset | grep -v provisionserver | awk {'print $1'}); do echo Deleting $i...; oc delete $i -n openstack --all; done
242+
$ for i in $(oc get crd | grep osp-director | grep -v baremetalset | grep -v provisionserver | awk {'print $1'}); do echo Deleting $i...; oc delete $i -n "${OSPDO_NAMESPACE}" --all; done
243243
----
244244

245245
. Scale down OSPdO to 0 replicas:
246246
+
247247
----
248-
$ ospdo_csv_ver=$(oc get csv -n openstack -l operators.coreos.com/osp-director-operator.openstack -o json | jq -r '.items[0].metadata.name')
249-
$ oc patch csv -n openstack $ospdo_csv_ver --type json -p="[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": "0"}]"
248+
$ ospdo_csv_ver=$(oc get csv -n "${OSPDO_NAMESPACE}" -l operators.coreos.com/osp-director-operator.openstack -o json | jq -r '.items[0].metadata.name')
249+
$ oc patch csv -n "${OSPDO_NAMESPACE}" $ospdo_csv_ver --type json -p="[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": "0"}]"
250250
----
251251

252252
. Remove the webhooks from OSPdO:
253253
+
254254
----
255-
$ oc patch csv $ospdo_csv_ver -n openstack --type json -p="[{"op": "remove", "path": "/spec/webhookdefinitions"}]"
255+
$ oc patch csv $ospdo_csv_ver -n "${OSPDO_NAMESPACE}" --type json -p="[{"op": "remove", "path": "/spec/webhookdefinitions"}]"
256256
----
257257

258258
. Remove the finalizer from the OSPdO `OpenStackBaremetalSet` resource:
259259
+
260260
----
261-
$ oc patch openstackbaremetalsets.osp-director.openstack.org -n openstack compute --type json -p="[{"op": "remove", "path": "/metadata/finalizers"}]"
261+
$ oc patch openstackbaremetalsets.osp-director.openstack.org -n "${OSPDO_NAMESPACE}" compute --type json -p="[{"op": "remove", "path": "/metadata/finalizers"}]"
262262
----
263263

264264
. Delete the `OpenStackBaremetalSet` and `OpenStackProvisionServer` resources:
265265
+
266266
----
267-
$ oc delete openstackbaremetalsets.osp-director.openstack.org -n openstack --all
268-
$ oc delete openstackprovisionservers.osp-director.openstack.org -n openstack --all
267+
$ oc delete openstackbaremetalsets.osp-director.openstack.org -n "${OSPDO_NAMESPACE}" --all
268+
$ oc delete openstackprovisionservers.osp-director.openstack.org -n "${OSPDO_NAMESPACE}" --all
269269
----
270270

271271
. Annotate each {OpenStackShort} Compute `BareMetalHost` resource so that Metal3 does not start the node:
@@ -290,14 +290,14 @@ done
290290
. Delete the OSPdO Operator Lifecycle Manager resources to remove OSPdO:
291291
+
292292
----
293-
$ oc delete subscription osp-director-operator -n openstack
294-
$ oc delete operatorgroup osp-director-operator -n openstack
295-
$ oc delete catalogsource osp-director-operator-index -n openstack
296-
$ oc delete csv $ospdo_csv_ver -n openstack
293+
$ oc delete subscription osp-director-operator -n "${OSPDO_NAMESPACE}"
294+
$ oc delete operatorgroup osp-director-operator -n "${OSPDO_NAMESPACE}"
295+
$ oc delete catalogsource osp-director-operator-index -n "${OSPDO_NAMESPACE}"
296+
$ oc delete csv $ospdo_csv_ver -n "${OSPDO_NAMESPACE}"
297297
----
298298

299299
. Scale up the {rhos_acro} OpenStack Operator `controller-manager` to 1 replica so that the associated `OpenStackControlPlane` CR is reconciled and its `OpenStackClient` pod is recreated:
300300
+
301301
----
302-
$ oc patch csv -n openstack-operators openstack-operator.v0.0.1 --type json -p="[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": "1"}]"
302+
$ oc patch csv -n "${OSPDO_NAMESPACE}"-operators openstack-operator.v0.0.1 --type json -p="[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": "1"}]"
303303
----

docs_user/modules/proc_performing-a-fast-forward-upgrade-on-compute-services.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $ cat celltemplates >> oscp-patch.yaml
106106
. Apply the patch file
107107
+
108108
----
109-
$ oc patch openstackcontrolplane openstack -n openstack --type=merge --patch-file=oscp-patch.yaml
109+
$ oc patch openstackcontrolplane openstack --type=merge --patch-file=oscp-patch.yaml
110110
----
111111

112112
. Wait until the Compute control plane services CRs are ready:

docs_user/modules/proc_preparing-controller-nodes-for-director-operator-adoption.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ You might need to wait a few minutes for the control plane to get operational. T
9393
.. When Pacemaker is only managing one of the Controllers, delete 2 of the Controller VMs. The following example specifies Controller-1 and Controller-2 VMs for deletion:
9494
+
9595
----
96-
$ oc -n openstack annotate vm controller-1 osp-director.openstack.org/delete-host=true
97-
$ oc -n openstack annotate vm controller-2 osp-director.openstack.org/delete-host=true
96+
$ oc -n "${OSPDO_NAMESPACE}"annotate vm controller-1 osp-director.openstack.org/delete-host=true
97+
$ oc -n "${OSPDO_NAMESPACE}"annotate vm controller-2 osp-director.openstack.org/delete-host=true
9898
----
9999
.. Reduce the `roleCount` for the Controller role in the `OpenStackControlPlane` CR to `1`:
100100
+
101101
----
102-
$ oc -n openstack patch OpenStackControlPlane overcloud --type json -p '[{"op": "replace", "path":"/spec/virtualMachineRoles/controller/roleCount", "value": 1}]'
102+
$ oc -n "${OSPDO_NAMESPACE}"patch OpenStackControlPlane overcloud --type json -p '[{"op": "replace", "path":"/spec/virtualMachineRoles/controller/roleCount", "value": 1}]'
103103
----
104104
.. Ensure that the `OpenStackClient` pod is running on the same {OpenShiftShort} nodes as the remaining Controller VM. If the `OpenStackClient` pod is not on the same node, then move it by cordoning off the two nodes that have been freed up for {rhos_acro}. Then you delete the `OpenStackClient` pod so that it gets rescheduled on the {OpenShiftShort} node that has the remaining Controller VM. After the pod is moved to the correct node, uncordon all the nodes:
105105
+

tests/roles/dataplane_adoption/tasks/nova_ffu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
ansible.builtin.shell: |
6161
{{ shell_header }}
6262
{{ oc_header }}
63-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch-file=oscp-patch.yaml
63+
oc patch openstackcontrolplane openstack --type=merge --patch-file=oscp-patch.yaml
6464
6565
- name: wait until the Compute control plane services CRs are ready
6666
ansible.builtin.include_role:

tests/roles/ironic_adoption/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{{ shell_header }}
4343
{{ oc_header }}
4444
45-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch '{{ ironic_disable_rbac_patch }}'
45+
oc patch openstackcontrolplane openstack --type=merge --patch '{{ ironic_disable_rbac_patch }}'
4646
4747
- name: Wait for Ironic control plane services' CRs to become ready
4848
ansible.builtin.include_tasks:
@@ -77,7 +77,7 @@
7777
{{ shell_header }}
7878
{{ oc_header }}
7979
80-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch '{{ ironic_enable_rbac_patch }}'
80+
oc patch openstackcontrolplane openstack --type=merge --patch '{{ ironic_enable_rbac_patch }}'
8181
8282
- name: Wait for Ironic control plane services' CRs to become ready
8383
ansible.builtin.include_tasks:

tests/roles/nova_adoption/tasks/nova_ironic.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ansible.builtin.shell: |
33
{{ shell_header }}
44
{{ oc_header }}
5-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch '{{ nova_ironic_patch }}'
5+
oc patch openstackcontrolplane openstack --type=merge --patch '{{ nova_ironic_patch }}'
66
77
- name: wait until the Compute control plane services CRs are ready
88
ansible.builtin.include_tasks:
@@ -13,7 +13,7 @@
1313
ansible.builtin.shell: |
1414
{{ shell_header }}
1515
{{ oc_header }}
16-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch '{{ remove_ffu_workaround_patch }}'
16+
oc patch openstackcontrolplane openstack --type=merge --patch '{{ remove_ffu_workaround_patch }}'
1717
1818
- name: wait until the Compute control plane services CRs are ready
1919
ansible.builtin.include_tasks:

tests/roles/nova_adoption/tasks/nova_libvirt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ shell_header }}
44
{{ oc_header }}
55
{{ nova_libvirt_patch }}
6-
oc patch openstackcontrolplane openstack -n openstack --type=merge --patch-file=oscp-patch.yaml
6+
oc patch openstackcontrolplane openstack --type=merge --patch-file=oscp-patch.yaml
77
88
- name: wait until the Compute control plane services CRs are ready
99
ansible.builtin.include_tasks:

tests/roles/octavia_adoption/tasks/octavia_cr_config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
{{ shell_header }}
44
{{ oc_header }}
55
6-
oc get -n openstack --no-headers nncp | cut -f 1 -d ' ' | grep -v nncp-dns | while read; do
6+
oc get --no-headers nncp | cut -f 1 -d ' ' | grep -v nncp-dns | while read; do
77
88
interfaces=$(oc get nncp $REPLY -o jsonpath="{.spec.desiredState.interfaces[*].name}")
99
1010
(echo $interfaces | grep -w -q "octbr\|enp6s0.24") || \
11-
oc patch -n openstack nncp $REPLY --type json --patch '
11+
oc patch nncp $REPLY --type json --patch '
1212
[{
1313
"op": "add",
1414
"path": "/spec/desiredState/interfaces/-",
@@ -74,7 +74,7 @@
7474
}
7575
}
7676
EOF_CAT
77-
oc apply -n openstack -f octavia-nad.yaml
77+
oc apply -f octavia-nad.yaml
7878
7979
- name: Enable the octavia service in OpenShift
8080
ansible.builtin.shell: |
@@ -84,7 +84,7 @@
8484
# FIXME: debug only. remove.
8585
oc project
8686
87-
oc patch -n openstack openstackcontrolplane openstack --type=merge --patch '
87+
oc patch openstackcontrolplane openstack --type=merge --patch '
8888
spec:
8989
ovn:
9090
template:

0 commit comments

Comments
 (0)