origin icon indicating copy to clipboard operation
origin copied to clipboard

Cannot create storage

Open romantomchak opened this issue 9 years ago • 27 comments

Hello,

after fresh installation, when I'm trying to create new storage from web console I'm always gets the error message: no persistent volumes available for this claim and no storage class is set, reason: Failed binding

Version

openshift v1.5.0+031cbe4 kubernetes v1.5.2+43a9be4 etcd 3.1.0

Steps To Reproduce
  1. Go to the web console Storage section
  2. Push on Create Storage button
  3. Create storage.

The generated YAML config is

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: storagename
  namespace: gitlab-infrastructure
  selfLink: /api/v1/namespaces/example/persistentvolumeclaims/storagename
  uid: 2827819d-389a-11e7-95f3-4e4829be6605
  resourceVersion: '6296'
  creationTimestamp: '2017-05-14T11:40:40Z'
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
status:
  phase: Pending
Current Result

This storage always has Pending status and in Monitoring->Events I receive error message no persistent volumes available for this claim and no storage class is set.

Please help me what am I doing wrong? I am a newcomer in Openshift.

romantomchak avatar May 14 '17 12:05 romantomchak

I am having same issue.

Anyone can help us?

ephillipe avatar Jul 28 '17 13:07 ephillipe

Same here...

Moep90 avatar Aug 02 '17 08:08 Moep90

Any update here? Facing same issue in a v3.6 cluster

tapas4java avatar Sep 16 '17 17:09 tapas4java

@romantomchak Did you get a chance to resolve this issue??

tapas4java avatar Sep 18 '17 15:09 tapas4java

Looks like cluster does not have any persistent volumes. You should create PVs first.

debianmaster avatar Sep 23 '17 16:09 debianmaster

Thanks @debianmaster

After adding openshift_cloudprovider_kind=gce in inventory/hosts file did the trick. Now Openshift is able to create PV dynamically on GCE without any extra config.

tapas4java avatar Sep 24 '17 09:09 tapas4java

Awesome. Good luck.

On Sun, Sep 24, 2017 at 2:04 AM Tapas Jena [email protected] wrote:

Thanks @debianmaster https://github.com/debianmaster

After adding openshift_cloudprovider_kind=gce in inventory/hosts file did the trick. Now Openshift is able to create PV dynamically on GCE without any extra config.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openshift/origin/issues/14184#issuecomment-331697149, or mute the thread https://github.com/notifications/unsubscribe-auth/ABX1wfN37dYRG29hFe8_WsiVaSotfUO6ks5slhsngaJpZM4NaW6M .

debianmaster avatar Sep 24 '17 15:09 debianmaster

Cannot create persistent volume claim "mysql". persistentvolumeclaims "mysql" is forbidden: exceeded quota: 6170702e726f6d616e79736f667440676d61696c2e636f6d-noncompute, requested: requests.storage=1Gi, used: requests.storage=0, limited: requests.storage=0.

lauer3912 avatar Oct 02 '17 00:10 lauer3912

@lauer3912 You have to increase your Quota limit by adding payment method to Google account

tapas4java avatar Oct 02 '17 01:10 tapas4java

@tapas4java Where to increase the quota? I can not find ah

lauer3912 avatar Oct 02 '17 01:10 lauer3912

Here

tapas4java avatar Oct 02 '17 02:10 tapas4java

@tapas4java where exactly can i set that config? I experience the same issue as @romantomchak , cannot create pvc's.

cars10 avatar Oct 11 '17 06:10 cars10

Hope you are following Jennings's Video ??

I have added openshift_cloudprovider_kind=gce to inventory/hosts file

tapas4java avatar Oct 11 '17 17:10 tapas4java

I am not on GCE. I wanted to create a PVC locally on my mashine.

cars10 avatar Oct 12 '17 06:10 cars10

any process on it.

xiaods avatar Nov 01 '17 07:11 xiaods

for developer purpose, we can use hostPath provisioner to resolve it.

https://github.com/kubernetes-incubator/external-storage/blob/master/docs/demo/hostpath-provisioner/README.md

xiaods avatar Nov 01 '17 07:11 xiaods

Hi Folks,

afaik you cannot use persistent volumes when you haven't configured an appropriate provider before.

ghost avatar Jan 26 '18 10:01 ghost

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Apr 26 '18 11:04 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar May 26 '18 12:05 openshift-bot

same here

japplewhite avatar Jun 19 '18 23:06 japplewhite