Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/ocp_on_libvirt/templates/hosts.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ssh_extra_keys_paths={{ ssh_extra_keys_paths | to_json }}

{% if enable_lso | default(false) | bool %}
ocs_install_type=internal
local_storage_devices=["scsi0-0-0-1"]
local_storage_devices=["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1"]

[ocs_nodes:children]
workers
Expand Down
16 changes: 16 additions & 0 deletions roles/odf_setup/tasks/openshift-storage-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,20 @@
name: "{{ ocs_default_storage_class }}"
annotations:
"{{ default_storageclass_annotation }}"

- name: Wait up to 20 mins Storage Cluster to be ready
kubernetes.core.k8s_info:
api_version: ocs.openshift.io/v1
kind: StorageCluster
name: "{{ ocs_storagecluster_name }}"
namespace: "{{ ocs_storage_namespace }}"
register: _os_sc
retries: 40
delay: 30
until:
- _of_sc.resources is defined
- _of_sc.resources | length == 1
- _of_sc.resources[0].status is defined
- _of_sc.resources[0].status.phase is defined
- _of_sc.resources[0].status.phase == "Ready"
...