[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Unable to dynamically provision cinder volumes



Got some help on the #sig-openstack channel in kubernetes from @fengyunpan

Turns out I needed to add

[BlockStorage]
bs-version=v2

to /etc/origin/cloudprovider/openstack.conf

It looks like better autodetection exists in Kubernetes 1.7

https://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/cloudprovider/providers/openstack/openstack.go

vs https://github.com/kubernetes/kubernetes/blob/release-1.6/pkg/cloudprovider/providers/openstack/openstack.go

You'll notice there is only 1 reference to "auto" in the 1.6 version.

I'm not sure how it works for other people running Openshift 3.6 on OpenStack without that setting.

Thanks,

Joel

On Sat, Oct 14, 2017 at 1:49 PM Joel Pearson <japearson agiledigital com au> wrote:
Hi,

I'm having no luck getting dynamic provisioning of cinder volumes working.


And used:

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: gold
parameters:
  type: fast  
  availability: nova 
  fsType: ext4 

But whenever I try it, it fails with:

Failed to provision volume with StorageClass "gold": invalid option "fsType" for volume plugin kubernetes.io/cinder

I tried removing the fsType in the storage class but it hasn't helped.

My /etc/origin/cloudprovider/openstack.conf looks correct, but I cannot figure out what is going on.

There is nothing useful in journalctl -xe on the master

How else can I diagnose?

Thanks,

Joel
--
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 | w: agiledigital.com.au
--
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 | w: agiledigital.com.au

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]