Storage example in README incorrect

Bug #1848015 reported by Sahid Orentino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openstack Integrator Charm
Fix Released
Undecided
Cory Johns

Bug Description

On a fresh install of cdk I exactly followed what is indicated here:

  https://ubuntu.com/kubernetes/docs/openstack-integration

But for some reason the credentials are not well initialized:

LAST SEEN TYPE REASON OBJECT MESSAGE
52s Warning ProvisioningFailed persistentvolumeclaim/jenkinsclaim Failed to provision volume with StorageClass "openstack-standard": OpenStack cloud provider was not initialized properly : stat /etc/kubernetes/cloud-config: no such file or directory
13s Warning ProvisioningFailed persistentvolumeclaim/jenkinsclaim Failed to provision volume with StorageClass "openstack-standard": OpenStack cloud provider was not initialized properly : stat /etc/kubernetes/cloud-config: no such file or directory

Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :
Revision history for this message
Cory Johns (johnsca) wrote :

New versions of Charmed Kubernetes use the external OpenStack cloud provider and create a "cdk-cinder"[1] (I think that was supposed to have been changed to just "cinder", as per what the docs say it is called) which uses the Cinder CSI plugin. From your error message, you are using an "openstack-standard" storage class which seems like it's trying to use the config for the deprecated in-tree OpenStack cloud provider, which is no longer configured.

Can you try changing the storage class for your PVC to "cdk-cinder" and see if that resolves your error?

[1]: https://github.com/charmed-kubernetes/cdk-addons/blob/master/bundled-templates/storageclass-openstack.yaml#L4

Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :

Thanks Cory. That fixed the problem.

Changed in charm-openstack-integrator:
status: New → Invalid
Revision history for this message
Erlon R. Cruz (sombrafam) wrote :

Shouldn't this keep open as the documentation is misleading and points to the old mechanism? Or should we create another bug for the documentation?

Revision history for this message
George Kraft (cynerva) wrote :

Hey Erlon,

It's not obvious to me which part of the docs is misleading or incorrect. I don't see any references to an openstack-standard StorageClass in the docs. From what I can see, the docs are currently based around the cdk-cinder StorageClass, which is what I would expect.

If there's still an issue with the docs, please open one here: https://github.com/charmed-kubernetes/kubernetes-docs/issues

Revision history for this message
Cory Johns (johnsca) wrote :

It seems that the openstack-standard reference came from the charm README. That will be phased out eventually with the content moved to the main set of docs, but until then, it should be fixed to be correct.

Changed in charm-openstack-integrator:
status: Invalid → In Progress
assignee: nobody → Cory Johns (johnsca)
Cory Johns (johnsca)
summary: - credentials not initialized properly
+ Storage example in README incorrect
Revision history for this message
Cory Johns (johnsca) wrote :
Cory Johns (johnsca)
tags: added: review-needed
Changed in charm-openstack-integrator:
status: In Progress → Fix Committed
tags: removed: review-needed
Changed in charm-openstack-integrator:
milestone: none → 1.18+ck1
Revision history for this message
George Kraft (cynerva) wrote :
Changed in charm-openstack-integrator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.