Giter VIP home page Giter VIP logo

Comments (6)

Linutux avatar Linutux commented on July 24, 2024

This config value has to be set: https://registry.terraform.io/providers/rancher/rke/latest/docs/resources/cluster#ignore_volume_az

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

Option added in v0.5.4 release, can you confirm it's working as desired ?

from terraform-openstack-rke.

Linutux avatar Linutux commented on July 24, 2024

Option added in v0.5.4 release, can you confirm it's working as desired ?

No, its not working:

Failed to provision volume with StorageClass "cinder": failed to create a 19 GB volume: Bad request with: [POST https://volume.api.ams.fuga.cloud:443/v3/922d27f06e9a42549509b420ff427fc0/volumes], error message: {"badRequest": {"message": "Availability zone 'ams-b' is invalid.", "code": 400}}

from terraform-openstack-rke.

Linutux avatar Linutux commented on July 24, 2024

Ok, I think I found out why it is not working:

According to https://kubernetes.io/docs/concepts/storage/storage-classes/#openstack-cinder you need to specify

parameters:
availability: nova

when creating the storage class for cinder, otherwise ...

availability: Availability Zone. If not specified, volumes are generally round-robin-ed across all active zones where Kubernetes cluster has a node.

So, in my case the node (Openstack compute) AZs are ams-a, ams-b, ams-c. But the storage AZ is ams. But instead of using ams, the storage class tries to create one in ams-a, -b or -c, unless the parameter "availabilty" is set.

unfortunately I don't see any option to control provider_rke to create this option when setting up the cluster.

Edit:
Yes, after creating a new cinder storage class manually, everything is working now.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: cinder
provisioner: kubernetes.io/cinder
parameters:
availability: ams

from terraform-openstack-rke.

remche avatar remche commented on July 24, 2024

@Linutux the storage classes are created here.
It should not be too difficult to add a variable for avaibility zone. I wonder if it should be set by storage_types or globally.

from terraform-openstack-rke.

Linutux avatar Linutux commented on July 24, 2024

I think it should be set by storage_types. Maybe you have SSDs in DC1 and DC2, but only HDDs in DC3 and DC4

from terraform-openstack-rke.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.