ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
49 stars 86 forks source link

Only one AWS EFS file system mount target created #808

Open JedrekWie opened 1 year ago

JedrekWie commented 1 year ago

As a part of ocp_efs role EFS gets setup. One of the steps is to create mount target with reference to the appropriate security group - see ref. below: https://github.com/ibm-mas/ansible-devops/blob/99d394389ed59f9201c0f5e4318dacea8597c113/ibm/mas_devops/roles/ocp_efs/tasks/efs-setup.yml#L110

As it's working today only one mount target gets created for given combination of [file-system-id, subnet-id, security-groups]. I'm not sure how exactly networking layout looks like for AWS ROSA but this is insufficient for multi-worker node OCP cluster provisioned using ibm.mas_devops.ocp_aws_provision playbook, when you've specified IPI_COMPUTE_REPLICAS variables of value grater than 1. In that case OpenShift installer creates worker nodes in different availability zones and therefore different private subnets. This creates a need to setup mount targets for all private subnets where worker nodes exist in.

Having said perhaps ocp_efs could be slightly extended to respect IPI_COMPUTE_REPLICAS and create mount targets for as many subnets as worker nodes?

andrercm commented 1 year ago

@prasanthgelli1 it appear you are the one who created this role, can you help assess the issue, please?