Skip to content

Commit 73913c2

Browse files
Merge pull request #157 from shiftstack/merge-bot-master
Merge https://github.com/kubernetes/cloud-provider-openstack:master into master
2 parents e3fb962 + 4cc2e9c commit 73913c2

File tree

13 files changed

+151
-1334
lines changed

13 files changed

+151
-1334
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This Repository hosts various plugins relevant to OpenStack and Kubernetes Integ
1717

1818
* Cinder Standalone Provisioner, Manila Provisioner and Cinder FlexVolume Driver were removed since release v1.18.0.
1919
* Version 1.17 was the last release of Manila Provisioner, which is unmaintained from now on. Due to dependency issues, we removed the code from master but it is still accessible in the [release-1.17](https://github.com/kubernetes/cloud-provider-openstack/tree/release-1.17) branch. Please consider migrating to Manila CSI Plugin.
20+
* Start from release v1.26.0, neutron lbaasv1 support is removed and only Octavia is supported.
2021

2122
## Developing
2223

charts/cinder-csi-plugin/templates/controllerplugin-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ spec:
3232
- "--csi-address=$(ADDRESS)"
3333
- "--timeout={{ .Values.timeout }}"
3434
- "--leader-election=true"
35+
- "--default-fstype=ext4"
3536
env:
3637
- name: ADDRESS
3738
value: /var/lib/csi/sockets/pluginproxy/csi.sock

charts/cinder-csi-plugin/values.yaml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ csi:
88
attacher:
99
image:
1010
repository: k8s.gcr.io/sig-storage/csi-attacher
11-
tag: v3.4.0
11+
tag: v4.0.0
1212
pullPolicy: IfNotPresent
1313
resources: {}
1414
provisioner:
1515
topology: "true"
1616
image:
1717
repository: k8s.gcr.io/sig-storage/csi-provisioner
18-
tag: v3.1.0
18+
tag: v3.4.0
1919
pullPolicy: IfNotPresent
2020
resources: {}
2121
snapshotter:
2222
image:
2323
repository: k8s.gcr.io/sig-storage/csi-snapshotter
24-
tag: v5.0.1
24+
tag: v6.1.0
2525
pullPolicy: IfNotPresent
2626
resources: {}
2727
resizer:
2828
image:
2929
repository: k8s.gcr.io/sig-storage/csi-resizer
30-
tag: v1.4.0
30+
tag: v1.6.0
3131
pullPolicy: IfNotPresent
3232
resources: {}
3333
livenessprobe:
3434
image:
3535
repository: k8s.gcr.io/sig-storage/livenessprobe
36-
tag: v2.6.0
36+
tag: v2.8.0
3737
pullPolicy: IfNotPresent
3838
failureThreshold: 5
3939
initialDelaySeconds: 10
@@ -43,7 +43,7 @@ csi:
4343
nodeDriverRegistrar:
4444
image:
4545
repository: k8s.gcr.io/sig-storage/csi-node-driver-registrar
46-
tag: v2.5.0
46+
tag: v2.6.2
4747
pullPolicy: IfNotPresent
4848
resources: {}
4949
plugin:
@@ -85,15 +85,6 @@ csi:
8585
nodeSelector: {}
8686
tolerations: []
8787
resources: {}
88-
snapshotController:
89-
enabled: false
90-
image:
91-
repository: k8s.gcr.io/sig-storage/snapshot-controller
92-
tag: v5.0.1
93-
resources: {}
94-
affinity: {}
95-
nodeSelector: {}
96-
tolerations: []
9788

9889
# Log verbosity level.
9990
# See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md
@@ -136,7 +127,7 @@ storageClass:
136127
# parameters:
137128
# type: SAS
138129
# ---
139-
# apiVersion: snapshot.storage.k8s.io/v1beta1
130+
# apiVersion: snapshot.storage.k8s.io/v1
140131
# kind: VolumeSnapshotClass
141132
# metadata:
142133
# name: csi-cinder-snapclass

docs/openstack-cloud-controller-manager/expose-applications-using-loadbalancer-type-service.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ username="myuser"
244244
password="mypassword"
245245

246246
[LoadBalancer]
247-
use-octavia=true
248247
floating-network-id="a57af0a0-da92-49be-a98a-345ceca004b3"
249248
floating-subnet-id="a02eb6c3-fc69-46ae-a3fe-fb43c1563cbc"
250249
subnet-id="fa6a4e6c-6ae4-4dde-ae86-3e2f452c1f03"

docs/openstack-cloud-controller-manager/using-openstack-cloud-controller-manager.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ Although the openstack-cloud-controller-manager was initially implemented with N
182182
Whether or not to enable the LoadBalancer type of Services integration at all.
183183
Default: true
184184
185-
* `use-octavia`
186-
Whether or not to use Octavia for LoadBalancer type of Service implementation instead of using Neutron-LBaaS. Default: true
187-
188185
* `floating-network-id`
189186
Optional. The external network used to create floating IP for the load balancer VIP. If there are multiple external networks in the cloud, either this option must be set or user must specify `loadbalancer.openstack.org/floating-network-id` in the Service annotation.
190187
@@ -240,7 +237,7 @@ Although the openstack-cloud-controller-manager was initially implemented with N
240237
The id of the loadbalancer flavor to use. Uses octavia default if not set.
241238
242239
* `availability-zone`
243-
The name of the loadbalancer availability zone to use. It is applicable if use-octavia is set to True and requires Octavia API version 2.14 or later (Ussuri release). The Octavia availability zone capabilities will not be used if it is not set. The parameter will be ignored if the Octavia version doesn't support availability zones yet.
240+
The name of the loadbalancer availability zone to use. The Octavia availability zone capabilities will not be used if it is not set. The parameter will be ignored if the Octavia version doesn't support availability zones yet.
244241
245242
* `LoadBalancerClass "ClassName"`
246243
This is a config section including a set of config options. User can choose the `ClassName` by specifying the Service annotation `loadbalancer.openstack.org/class`. The following options are supported:

manifests/cinder-csi-plugin/cinder-csi-controllerplugin.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ spec:
2525
serviceAccount: csi-cinder-controller-sa
2626
containers:
2727
- name: csi-attacher
28-
image: k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
28+
image: k8s.gcr.io/sig-storage/csi-attacher:v4.0.0
2929
args:
3030
- "--csi-address=$(ADDRESS)"
3131
- "--timeout=3m"
3232
- "--leader-election=true"
33+
- "--default-fstype=ext4"
3334
env:
3435
- name: ADDRESS
3536
value: /var/lib/csi/sockets/pluginproxy/csi.sock
@@ -38,7 +39,7 @@ spec:
3839
- name: socket-dir
3940
mountPath: /var/lib/csi/sockets/pluginproxy/
4041
- name: csi-provisioner
41-
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
42+
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.3.0
4243
args:
4344
- "--csi-address=$(ADDRESS)"
4445
- "--timeout=3m"
@@ -54,7 +55,7 @@ spec:
5455
- name: socket-dir
5556
mountPath: /var/lib/csi/sockets/pluginproxy/
5657
- name: csi-snapshotter
57-
image: k8s.gcr.io/sig-storage/csi-snapshotter:v6.0.1
58+
image: k8s.gcr.io/sig-storage/csi-snapshotter:v6.1.0
5859
args:
5960
- "--csi-address=$(ADDRESS)"
6061
- "--timeout=3m"
@@ -82,7 +83,7 @@ spec:
8283
- name: socket-dir
8384
mountPath: /var/lib/csi/sockets/pluginproxy/
8485
- name: liveness-probe
85-
image: k8s.gcr.io/sig-storage/livenessprobe:v2.7.0
86+
image: k8s.gcr.io/sig-storage/livenessprobe:v2.8.0
8687
args:
8788
- "--csi-address=$(ADDRESS)"
8889
env:
@@ -98,6 +99,7 @@ spec:
9899
- "--endpoint=$(CSI_ENDPOINT)"
99100
- "--cloud-config=$(CLOUD_CONFIG)"
100101
- "--cluster=$(CLUSTER_NAME)"
102+
- "--v=1"
101103
env:
102104
- name: CSI_ENDPOINT
103105
value: unix://csi/csi.sock

manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
hostNetwork: true
2222
containers:
2323
- name: node-driver-registrar
24-
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1
24+
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.6.2
2525
args:
2626
- "--csi-address=$(ADDRESS)"
2727
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
@@ -41,7 +41,7 @@ spec:
4141
- name: registration-dir
4242
mountPath: /registration
4343
- name: liveness-probe
44-
image: k8s.gcr.io/sig-storage/livenessprobe:v2.7.0
44+
image: k8s.gcr.io/sig-storage/livenessprobe:v2.8.0
4545
args:
4646
- --csi-address=/csi/csi.sock
4747
volumeMounts:
@@ -58,6 +58,7 @@ spec:
5858
- /bin/cinder-csi-plugin
5959
- "--endpoint=$(CSI_ENDPOINT)"
6060
- "--cloud-config=$(CLOUD_CONFIG)"
61+
- "--v=1"
6162
env:
6263
- name: CSI_ENDPOINT
6364
value: unix://csi/csi.sock

manifests/controller-manager/cloud-config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ tenant-id=
1111
domain-id=
1212

1313
[LoadBalancer]
14-
use-octavia=true
1514
subnet-id=9c018814-f2a8-45dd-9679-5400d49b333a
16-
floating-network-id=80c9fc78-a2be-45d5-a85b-f17a6c98df92
15+
floating-network-id=80c9fc78-a2be-45d5-a85b-f17a6c98df92

pkg/client/service.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@ func NewBlockStorageV3(provider *gophercloud.ProviderClient, eo *gophercloud.End
5151
}
5252

5353
// NewLoadBalancerV2 creates a ServiceClient that may be used with the Neutron LBaaS v2 API
54-
func NewLoadBalancerV2(provider *gophercloud.ProviderClient, eo *gophercloud.EndpointOpts, useOctavia bool) (*gophercloud.ServiceClient, error) {
54+
func NewLoadBalancerV2(provider *gophercloud.ProviderClient, eo *gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error) {
5555
var lb *gophercloud.ServiceClient
5656
var err error
57-
if useOctavia {
58-
lb, err = openstack.NewLoadBalancerV2(provider, *eo)
59-
} else {
60-
lb, err = openstack.NewNetworkV2(provider, *eo)
61-
}
57+
lb, err = openstack.NewLoadBalancerV2(provider, *eo)
6258
if err != nil {
6359
return nil, fmt.Errorf("failed to find load-balancer v2 %s endpoint for region %s: %v", eo.Availability, eo.Region, err)
6460
}

0 commit comments

Comments
 (0)