'NoneType' object has no attribute 'availability'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder CSI |
Fix Committed
|
Undecided
|
Adam Dyess |
Bug Description
Hello
[problem]
When setting availabilty-zone on the cinder-csi charm - I hit the following error:
AttributeError: 'NoneType' object has no attribute 'availability'
Full trace:
unit-cinder-csi-1: 16:50:27 ERROR unit.cinder-
Traceback (most recent call last):
File "/var/lib/
main(
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "/var/lib/
if self._install_
File "/var/lib/
controller.
File "/var/lib/
self.
File "/var/lib/
additions: List[AnyResource] = list(
File "/var/lib/
manipulate()
File "/var/lib/
sc.
AttributeError: 'NoneType' object has no attribute 'availability'
[workaround]
Create the storage class manually with appropriate availability zone
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-sc-cinderplugin
provisioner: cinder.
parameters:
availability: "nova"
Thanks,
Peter
description: | updated |
description: | updated |
description: | updated |
Changed in charm-cinder-csi: | |
status: | In Progress → Fix Committed |
assignee: | nobody → Adam Dyess (addyess) |
hitting this in a customer deployment, marking field high