fix(localpv): handle case of BDC-BD taking longer time (#1262)
fix(localpv): handle case of BDC-BD taking longer time (#1262)

When a PVC with Local PV host device is triggered,
Local PV provisioner will create BDC and waits
for 60 seconds to get the BD attached. Post that
it returns the control back to K8s.

K8s will re-attempt to create a PV, and in
the second iteration - the Local PV provisioner
will check if the BDC was already created
and will try to re-use it instead of creating another one.

Creating another BDC, in the setup where BD/BDC takes
longer will never result in PV getting created. Also,
timing out and reporting the error to user will make the
process intuitive when BD/BDC process is taking longer.

Signed-off-by: kmova <6a28dfa88869c0f71365518480e309e6698873e0@mayadata.io>
AmitKumarDas/maya,AmitKumarDas/maya,openebs/maya,openebs/maya,prateekpandey14/maya,prateekpandey14/maya,openebs/maya