Skip to content

Commit 9fd3803

Browse files
committed
[ci] Add explicit namespace to patch_observabilityclient
The tests don't explicitly log into a specific namespace. When running the task that update the observabilityclient, the namespace is omitted, so whatever namespace was last activated in openshift will be used. This commit updates the commands to explicitly state the namespace, preventing errors when trying to connect to a non-existant pod.
1 parent ac5c3d5 commit 9fd3803

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ci/run_autoscaling_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
- name: Patch observabilityclient into openstackclient
5353
ansible.builtin.shell:
5454
cmd: |
55-
oc exec openstackclient -- python3 -m ensurepip --upgrade
56-
oc exec openstackclient -- python3 -m pip install --upgrade aodhclient
57-
oc exec openstackclient -- python3 -m pip install --upgrade python-observabilityclient
55+
oc exec -n openstack openstackclient -- python3 -m ensurepip --upgrade
56+
oc exec -n openstack openstackclient -- python3 -m pip install --upgrade aodhclient
57+
oc exec -n openstack openstackclient -- python3 -m pip install --upgrade python-observabilityclient
5858
when: patch_observabilityclient | default(false) | bool
5959
tags:
6060
- setup

ci/run_verify_metrics_osp18.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
- name: Patch observabilityclient into openstackclient
1717
ansible.builtin.shell:
1818
cmd: |
19-
oc exec openstackclient -- python3 -m ensurepip --upgrade
20-
oc exec openstackclient -- python3 -m pip install --upgrade aodhclient
21-
oc exec openstackclient -- python3 -m pip install --upgrade python-observabilityclient
19+
oc exec -n openstack openstackclient -- python3 -m ensurepip --upgrade
20+
oc exec -n openstack openstackclient -- python3 -m pip install --upgrade aodhclient
21+
oc exec -n openstack openstackclient -- python3 -m pip install --upgrade python-observabilityclient
2222
when: patch_observabilityclient | default(false) | bool
2323
tags:
2424
- setup

0 commit comments

Comments
 (0)