Comments (6)
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.
Option added in v0.5.4 release, can you confirm it's working as desired ?
from terraform-openstack-rke.
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.
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.
@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.
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)
- Octavia support HOT 2
- Cant downscale HOT 1
- On new installation get version conflict ..? HOT 1
- fails when not using ssh-agent HOT 4
- conditional cloud provider
- Disable kubeconfig file write
- Worker nodes array HOT 3
- Use terraform-docs
- add taint
- use_ssh_agent HOT 3
- Receiving errors HOT 6
- Code quality checks fail
- Terraform 0.13
- Install fails because no docker engine is installed HOT 5
- failed to run Kubelet: could not init cloud provider "openstack": Authentication failed HOT 1
- openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack HOT 1
- Adding a worker doesn't add a node in RKE cluster HOT 6
- [bug] Error when enabling loadbalancer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-openstack-rke.