Skip to content

Commit

Permalink
[stable/2023.1] Add fixes for Portworx (#1434)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #1427
/assign mnaser
  • Loading branch information
vexxhost-bot authored Jun 22, 2024
1 parent 81fd28b commit 19ad2c8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion doc/source/deploy/csi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ To configure the Portworx CSI driver, update your Ansible inventory as follows:
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>
Expand Down
8 changes: 2 additions & 6 deletions roles/multipathd/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions roles/multipathd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
name: multipath-tools
state: latest
notify:
- Reload "multipathd"
- Reconfigure "multipathd"
- Restart "multipathd"

- name: Install the configuration file
ansible.builtin.template:
Expand All @@ -32,5 +31,4 @@
group: root
mode: "0644"
notify:
- Reload "multipathd"
- Reconfigure "multipathd"
- Restart "multipathd"
9 changes: 9 additions & 0 deletions roles/portworx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions roles/portworx/templates/storage_cluster.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: portworx
---
kind: StorageCluster
apiVersion: core.libopenstorage.org/v1
metadata:
Expand Down

0 comments on commit 19ad2c8

Please sign in to comment.