[kolla-ansible][yoga][Magnum] Cannot attach cinder volume to pod
Jake Yip
jake.yip at ardc.edu.au
Mon Mar 20 10:33:58 UTC 2023
Hi,
I had a feeling the below two issues are due to a missing backport[1] to
Yoga.
I tried to backport it locally but it failed devstack, so it might take
a while before we have something.
Regards,
Jake
[1] https://review.opendev.org/c/openstack/magnum/+/833354
On 20/3/2023 4:36 am, wodel youchi wrote:
> Hi,
>
> I am trying to attach a cinder volume to my pod, but it does not work.
>
> The long story, the default version of kubernetes used in Yoga is 1.23.3
> fcore35. When creating a default kubernetes cluster we got :
>
> Image: quay.io/k8scsi/csi-attacher:v2.0.0
> <http://quay.io/k8scsi/csi-attacher:v2.0.0>
> ...
>
> Which
> 1 - Does not correspond to the documentation of Magnum, the
> documentation states these defaults for yoga :
>
> Image: 10.0.0.165:4000/csi-attacher:v3.3.0
> <http://10.0.0.165:4000/csi-attacher:v3.3.0>
> ...
>
>
>
> I tried to use the updates images (using a local registry), but I
> couldn't attach the cinder-volume, I got :
>
> ...
> *I0319 12:36:58.348467 1 csi_handler.go:234] Error processing
> "csi-9f81405424dc2cf210b6465f8b649ef20f85024f169b660fab235c03f64753b7":
> failed to mark as attached: volumeattachments.storage.k8s.io
> <http://volumeattachments.storage.k8s.io>
> "csi-9f81405424dc2cf210b6465f8b649ef20f85024f169b660fab235c03f64753b7"
> is forbidden: User
> "system:serviceaccount:kube-system:csi-cinder-controller-sa" cannot
> patch resource "volumeattachments/status" in API group "storage.k8s.io
> <http://storage.k8s.io>" at the cluster scope*
More information about the openstack-discuss
mailing list