Fix config drive mount and add flag to control the search order in which the driver retrieves instance metadata#3141
Conversation
|
|
|
Welcome @dgaponcic! |
|
Hi @dgaponcic. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test @dgaponcic - have you signed the CLA? |
7d8c229 to
14b133e
Compare
14b133e to
70595de
Compare
| mountPath: /var/lib/kubelet/plugins/manila.csi.openstack.org | ||
| - name: fwd-plugin-dir | ||
| mountPath: /var/lib/kubelet/plugins/FWD-NODEPLUGIN | ||
| - name: configdrive-dev |
There was a problem hiding this comment.
can you also adjust a corresponding helm chart template?
|
|
||
| cmd.PersistentFlags().BoolVar(&provideControllerService, "provide-controller-service", true, "If set to true then the CSI driver does provide the controller service (default: true)") | ||
| cmd.PersistentFlags().BoolVar(&provideNodeService, "provide-node-service", true, "If set to true then the CSI driver does provide the node service (default: true)") | ||
| cmd.PersistentFlags().StringVar(&searchOrder, "search-order", "configDrive,metadataService", "The search order in which the driver retrieves metadata relating to the instance (s) in which it runs") |
There was a problem hiding this comment.
please adjust docs accordingly
|
thanks for the PR. Please set proper |
What this PR does / why we need it:
Currently the manila csi only uses metadata service to get instance metadata, which fails when using config drive.
--search-order(similar to cinder) to allow setting up the order in which the driver should try to retrieve the metadata. By default: configDrive,metadataServiceWhich issue this PR fixes(if applicable):
fixes #3118
Special notes for reviewers:
--search-order. It will use the default value of configDrive,metadataService. On a machine using metadata service, this is the output:It tried to mount the config drive, fails, and then tries the metadata service, which works.
It tried to use the matadata sevice, and when it didn't work, tried the config drive, which worked.
Release note: