-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to mount volumes for pod mysql #4085
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
@QxiaoQ could you please tell us a bit more about your installation - which config have you used for installing with kfctl? |
The following command is optional, to make kfctl binary easier to use.export PATH=$PATH: export KFAPP= Default uses IAP.kfctl init ${KFAPP} |
@QxiaoQ What type PV used? if NFS, could you please try to restart the NFS service? |
@jinchihe ,we prefer to use the private local NFS, but it still used its predefine the PV:
Maybe we miss something here? |
Seems we should not create the PV, since if we install kubeflow on premise cluster, will failed to mount PV/PVC. Better solution is to check the platform, only create the PVs for GCP, othwise do not generate the PV file or just do not create PV for all platforms for simplying?
|
/assign @QxiaoQ |
Hi @QxiaoQ! The kfctl_existing_arrikto installation uses PVCs and only depends on having a default StorageClass. |
@yanniszark , I fond we hard code here:
and its PVC is defined: https://github.com/kubeflow/manifests/blob/master/metadata/base/metadata-db-pvc.yaml What is your suggestion for better deal with this ? |
@kkasravi I noticed the below two file is added by you in the PR kubeflow/manifests#42. That will cause some problems for Kubeflow install for on-prem cluster since the PV type is hardcode for
We suggest to remove the two files, if the volumne dynamic is not enabled, user can create PV manually. Agree? or better solution. Thanks. |
@jinchihe I think one alternative is to create PVs manually using default storage class. For that you need to set a default storage class in the Kubernetes cluster even before the PVCs are created through deployment. Right now the 'storageclass' parameter in base directories for PVCs are left empty signifying that they will be populated by Kubernetes with the default storage class. So as soon as you create a PV in the default storage class they should be able to be assigned to the waiting PVCs. |
Right now, I believe, we are following Kubernetes best practice by leaving the storage classes empty: You could read this issue for further clarification: |
@krishnadurai , The above description info are so clear. From my points, it is not easy to debug this default |
@xauthulei just correct me if I'm wrong here. kubeflow/bootstrap/config/kfctl_gcp_iap.yaml Line 240 in 64f4f79
If you use any of the methods mentioned here for deployment, it shouldn't be creating those PVs: |
@krishnadurai, you are right. Maybe I am wrong to deploy the kubeflow in my local cluster, please correct me : In my local ${KFAPP}, it will generate the
Now even if I the above mysql sections from the the configure, It will still create the PV. Based on you latest comments, if we create a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/kind bug
What steps did you take and what happened:
When I start the mysql POD , met this error : Unable to mount volumes for pod “mysql-7559c6b79b-rffqd_kubeflow(95a1aee5-cfef-11e9-870d-0020091e6d26)“: timeout expired waiting for volumes to attach or mount for pod “kubeflow”/“mysql-7559c6b79b-rffqd”. list of unmounted volumes=[mysql-persistent-storage default-token-q4lzm]. list of unattached volumes=[mysql-persistent-storage default-token-q4lzm]
Anything else you would like to add:
The current PVC mysql-pv-claim is using a google PV instead of local one
Environment:
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1+icp", GitCommit:"90febef3a98de5efb2e1248525e24a57e01ad386", GitTreeState:"clean", BuildDate:"2018-09-04T08:03:44Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/ppc64le"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1+icp", GitCommit:"90febef3a98de5efb2e1248525e24a57e01ad386", GitTreeState:"clean", BuildDate:"2018-09-04T08:03:44Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/ppc64le"}
The text was updated successfully, but these errors were encountered: