Skip to content

Commit 8b8fae4

Browse files
ntap-rippyAndrew Kerr
authored andcommitted
Rancher updates for latest nDVP version.
(cherry picked from commit ef0156e)
1 parent f12ae12 commit 8b8fae4

File tree

23 files changed

+683
-12
lines changed

23 files changed

+683
-12
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BUILD_FLAGS="-X \"main.GitHash=$(GITHASH)\" -X \"main.BuildType=$(BUILD_TYPE)\"
1515
# on the same machine.
1616
GO_PATH_VOLUME="netappdvp_go_path_$(BUILD_TAG)"
1717
GO=docker run --rm \
18+
--net=host \
1819
-e GOOS=$(GOOS) \
1920
-e GOARCH=$(GOARCH) \
2021
-e GOGC=$(GOGC) \
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Volume plugin for E-Series
2+
3+
Connect your NetApp E-Series systems to Cattle in Rancher!
4+
5+
This plugin enables both provisioning and management of storage resources. Deploying this service will maintain an instance of the plugin on each of the hosts in the environment.
6+
7+
For more information about the plugin, see the [GitHub repository](https://github.com/NetApp/netappdvp).
8+
9+
### Supported storage platforms
10+
Any NetApp E-Series system with a web proxy, appropriate volume groups, and iSCSI enabled. See the nDVP's [E-Series array setup notes](https://github.com/NetApp/netappdvp#e-series-array-setup-notes) for more details.
11+
12+
### Supported hosts
13+
* RHEL / CentOS
14+
* Ubuntu / Debian
15+
16+
### Configuring hosts
17+
Each host requires an iSCSI initiator and a multipathing daemon. See the plugin's [iSCSI installation guide](https://github.com/NetApp/netappdvp#iscsi) for more details.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
netapp-eseries:
2+
image: netapp/ndvp:17.07
3+
privileged: true
4+
ipc: host
5+
net: host
6+
tty: true
7+
cap_add:
8+
- SYS_ADMIN
9+
volumes:
10+
- /:/host:shared
11+
- /run:/run:shared
12+
labels:
13+
io.rancher.scheduler.global: 'true'
14+
io.rancher.container.dns: 'true'
15+
io.rancher.container.hostname_override: container_name
16+
command: /netapp/container-launch.sh --config=http://169.254.169.250/latest/services/netapp-eseries/metadata
17+
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
.catalog:
2+
name: "nDVP"
3+
version: "17.07"
4+
description: "NetApp Docker Volume Plugin (nDVP)"
5+
questions:
6+
# Common settings
7+
- variable: "STORAGE_PREFIX"
8+
description: "Prefix for created storage objects"
9+
label: "Storage Prefix"
10+
required: false
11+
default: "netappdvp_"
12+
type: "string"
13+
14+
- variable: "DEBUG_ENABLED"
15+
description: "Enable debugging output in logs"
16+
label: "Debug Logging"
17+
required: false
18+
default: false
19+
type: "boolean"
20+
21+
# E-Series settings
22+
- variable: "WEB_PROXY_HOSTNAME"
23+
description: "Hostname or IP address of Web Services Proxy"
24+
label: "Web Proxy Hostname"
25+
required: true
26+
default: ""
27+
type: "string"
28+
29+
- variable: "WEB_PROXY_PORT"
30+
description: "Port number of the Web Services Proxy (optional)"
31+
label: "Web Proxy Port"
32+
required: true
33+
default: "8443"
34+
type: "string"
35+
36+
- variable: "WEB_PROXY_USE_HTTP"
37+
description: "Use HTTP instead of HTTPS for Web Services Proxy (default = false)?"
38+
label: "Web Proxy Use HTTP?"
39+
required: true
40+
default: false
41+
type: "boolean"
42+
43+
- variable: "WEB_PROXY_VERIFY_TLS"
44+
description: "Verify server's certificate chain and hostname (default = false)?"
45+
label: "Web Proxy verify TLS?"
46+
required: true
47+
default: false
48+
type: "boolean"
49+
50+
- variable: "USER_NAME"
51+
description: "Username for Web Services Proxy"
52+
label: "User Name"
53+
required: true
54+
default: "rw"
55+
type: "string"
56+
- variable: "USER_PASSWORD"
57+
description: "Password for Web Services Proxy"
58+
label: "Password"
59+
required: true
60+
default: "rw"
61+
type: "password"
62+
63+
- variable: "CONTROLLER_A"
64+
description: "IP address of controller A"
65+
label: "Controller A IP"
66+
required: true
67+
default: ""
68+
type: "string"
69+
70+
- variable: "CONTROLLER_B"
71+
description: "IP address of controller B"
72+
label: "Controller B IP"
73+
required: true
74+
default: ""
75+
type: "string"
76+
77+
- variable: "PASSWORD_ARRAY"
78+
description: "Password for storage array (if set)"
79+
label: "Password for Array"
80+
required: false
81+
default: ""
82+
type: "password"
83+
84+
- variable: "HOSTDATA_IP"
85+
description: "Host iSCSI IP address (if multipathing just choose either one)"
86+
label: "Host iSCSI IP address"
87+
required: true
88+
default: ""
89+
type: "string"
90+
91+
- variable: "POOL_NAME_SEARCH_PATTERN"
92+
description: "Regular expression for matching storage pools available for nDVP volumes (default = .+)"
93+
label: "Pool Name Search Pattern"
94+
required: true
95+
default: ".+"
96+
type: "string"
97+
98+
- variable: "HOST_TYPE"
99+
description: "Type of E-series Host created by nDVP (default = linux_dm_mp)"
100+
label: "Host Type"
101+
required: true
102+
default: "linux_dm_mp"
103+
type: "string"
104+
105+
- variable: "ACCESS_GROUP_NAME"
106+
description: "Name of E-series Host Group to contain Hosts defined by nDVP (default = netappdvp)"
107+
label: "Access Group Name"
108+
required: true
109+
default: "netappdvp"
110+
type: "string"
111+
112+
# Common settings
113+
- variable: "SIZE"
114+
description: "Optional default size for new volumes. Default: '1G'"
115+
label: "Volume Size"
116+
required: false
117+
default: "1G"
118+
type: "string"
119+
120+
- variable: "VOLUME_DRIVER_NAME"
121+
description: "Name to use for this plugin instance with Docker: docker volume create -d <volume driver name>"
122+
label: "Volume Driver Name"
123+
required: true
124+
default: "netapp"
125+
type: "string"
126+
127+
netapp-eseries:
128+
labels:
129+
io.rancher.scheduler.global: 'true'
130+
metadata:
131+
version: 1
132+
storageDriverName: "eseries-iscsi"
133+
debug: true
134+
storagePrefix: "${STORAGE_PREFIX}"
135+
webProxyHostname: "${WEB_PROXY_HOSTNAME}"
136+
webProxyPort: "${WEB_PROXY_PORT}"
137+
webProxyUseHTTP: "${WEB_PROXY_USE_HTTP}"
138+
webProxyVerifyTLS: "${WEB_PROXY_VERIFY_TLS}"
139+
username: "${USER_NAME}"
140+
password: "${USER_PASSWORD}"
141+
controllerA: "${CONTROLLER_A}"
142+
controllerB: "${CONTROLLER_B}"
143+
passwordArray: "${PASSWORD_ARRAY}"
144+
hostData_IP: "${HOSTDATA_IP}"
145+
poolNameSearchPattern: "${POOL_NAME_SEARCH_PATTERN}"
146+
hostType: "${HOST_TYPE}"
147+
accessGroupName: "${ACCESS_GROUP_NAME}"
148+
defaults:
149+
size: "${SIZE}"
150+
volumeDriverName: "${VOLUME_DRIVER_NAME}"
151+
storage_driver:
152+
name: "${VOLUME_DRIVER_NAME}"
153+
scope: environment
154+
volume_access_mode: singleHostRW
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: NetApp E-Series
22
description: |
33
Volume plugin for E-Series
4-
version: 1.3.3
4+
version: 17.07
55
category: Storage
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Volume plugin for ONTAP
2+
3+
Connect your NetApp ONTAP systems to Cattle in Rancher!
4+
5+
This plugin enables both provisioning and management of storage resources. Deploying this service will maintain an instance of the plugin on each of the hosts in the environment.
6+
7+
For more information about the plugin, see the [GitHub repository](https://github.com/NetApp/netappdvp).
8+
9+
### Supported storage platforms
10+
Any NetApp ONTAP system with NFS enabled.
11+
12+
### Supported hosts
13+
* RHEL / CentOS
14+
* Ubuntu / Debian
15+
16+
### Configured hosts
17+
Each host requires an NFS client. See the plugin's [NFS installation guide](https://github.com/NetApp/netappdvp#nfs) for more details.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
netapp-ontap-nas:
2+
image: netapp/ndvp:17.07
3+
privileged: true
4+
ipc: host
5+
net: host
6+
tty: true
7+
cap_add:
8+
- SYS_ADMIN
9+
volumes:
10+
- /:/host:shared
11+
- /run:/run:shared
12+
labels:
13+
io.rancher.scheduler.global: 'true'
14+
io.rancher.container.dns: 'true'
15+
io.rancher.container.hostname_override: container_name
16+
command: /netapp/container-launch.sh --config=http://169.254.169.250/latest/services/netapp-ontap-nas/metadata
17+

0 commit comments

Comments
 (0)