[stable/2023.2] Add fixes for Portworx (#1436)
This is an automated cherry-pick of #1427
/assign mnaser
diff --git a/doc/source/deploy/csi.rst b/doc/source/deploy/csi.rst
index f56fb5b..4eb8648 100644
--- a/doc/source/deploy/csi.rst
+++ b/doc/source/deploy/csi.rst
@@ -92,7 +92,7 @@
csi_driver: portworx
portworx_pure_flasharray_san_type: <FILL IN> # FC or ISCSI
portworx_pure_json:
- FlaskBlades: []
+ FlashBlades: []
FlashArrays:
- MgmtEndPoint: <FILL IN>
APIToken: <FILL IN>
diff --git a/roles/multipathd/handlers/main.yml b/roles/multipathd/handlers/main.yml
index e94180b..b9444b8 100644
--- a/roles/multipathd/handlers/main.yml
+++ b/roles/multipathd/handlers/main.yml
@@ -12,11 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-- name: Reload "multipathd"
+- name: Restart "multipathd"
ansible.builtin.service:
name: multipathd
- state: reloaded
-
-- name: Reconfigure "multipathd"
- ansible.builtin.shell:
- cmd: multipathd -k'reconfigure'
+ state: restarted
diff --git a/roles/multipathd/tasks/main.yml b/roles/multipathd/tasks/main.yml
index 2f17bc4..668da65 100644
--- a/roles/multipathd/tasks/main.yml
+++ b/roles/multipathd/tasks/main.yml
@@ -21,8 +21,7 @@
name: multipath-tools
state: latest
notify:
- - Reload "multipathd"
- - Reconfigure "multipathd"
+ - Restart "multipathd"
- name: Install the configuration file
ansible.builtin.template:
@@ -32,5 +31,4 @@
group: root
mode: "0644"
notify:
- - Reload "multipathd"
- - Reconfigure "multipathd"
+ - Restart "multipathd"
diff --git a/roles/portworx/tasks/main.yml b/roles/portworx/tasks/main.yml
index 3b3138a..9c7b34e 100644
--- a/roles/portworx/tasks/main.yml
+++ b/roles/portworx/tasks/main.yml
@@ -33,6 +33,15 @@
group: root
mode: "0644"
+- name: Create namespace
+ kubernetes.core.k8s:
+ state: present
+ definition:
+ apiVersion: v1
+ kind: Namespace
+ metadata:
+ name: portworx
+
- name: Install Portworx
run_once: true
kubernetes.core.k8s:
diff --git a/roles/portworx/templates/storage_cluster.yml b/roles/portworx/templates/storage_cluster.yml
index ae3f5a5..8eb19d0 100644
--- a/roles/portworx/templates/storage_cluster.yml
+++ b/roles/portworx/templates/storage_cluster.yml
@@ -1,9 +1,4 @@
---
-apiVersion: v1
-kind: Namespace
-metadata:
- name: portworx
----
kind: StorageCluster
apiVersion: core.libopenstorage.org/v1
metadata: