k3s/pkg/cloudprovider/providers/openstack
Kubernetes Submit Queue cb91e2d9b1
Merge pull request #55313 from petrutlucian94/openstack_hv_pv
Automatic merge from submit-queue (batch tested with PRs 55642, 55897, 55835, 55496, 55313). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

OpenStack: fetch volume path from metadata service

**What this PR does / why we need it**:
Updates the OpenStack cloud provider to use the Nova metadata service as a fallback when retrieving mounted PV disk paths. Note that the Nova instance device metadata will contain the disk address and bus, which allows finding its path. 

This is needed as the *standard* mechanism of retrieving disk paths is not available when running k8s under OpenStack Hyper-V hosts.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #55312

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-11-18 10:46:41 -08:00
..
BUILD Update generated files 2017-11-09 12:14:08 +01:00
MAINTAINERS.md create cloudprovider "providers" package 2015-08-11 22:36:51 -07:00
OWNERS Volunteer to help with sig/openstack 2017-10-13 16:49:59 +08:00
metadata.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00
metadata_test.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00
openstack.go Allow use of Octavia endpoint 2017-11-16 10:55:59 +01:00
openstack_client.go Allow use of Octavia endpoint 2017-11-16 10:55:59 +01:00
openstack_instances.go Implement InstanceExistsByProviderID() for cloud providers 2017-10-20 14:59:28 +08:00
openstack_loadbalancer.go Allow use of Octavia endpoint 2017-11-16 10:55:59 +01:00
openstack_metrics.go Recording openstack metrics 2017-05-22 10:47:08 +08:00
openstack_routes.go Changes in OpenStack cloud provider for latest gophercloud 2017-09-01 20:56:13 -04:00
openstack_routes_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
openstack_test.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00
openstack_volumes.go openstack: fetch volume path from metadata service 2017-11-09 12:36:18 +02:00