Skip to content

Commit 832b9da

Browse files
committed
CSM 1.11.1 related changes
1 parent 95bbc3f commit 832b9da

File tree

8 files changed

+39
-32
lines changed

8 files changed

+39
-32
lines changed

Dockerfile.podman

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ LABEL vendor="Dell Inc." \
2828
name="csi-unity" \
2929
summary="CSI Driver for Dell Unity XT" \
3030
description="CSI Driver for provisioning persistent storage from Dell Unity XT" \
31-
version="2.11.0" \
31+
version="2.11.1" \
3232
license="Apache-2.0"
3333
COPY csi-unity/licenses /licenses

dell-csi-helm-installer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This project provides the following capabilitites, each one is discussed in deta
4949

5050

5151
Most of these usages require the creation/specification of a values file. These files specify configuration settings that are passed into the driver and configure it for use. To create one of these files, the following steps should be followed:
52-
1. Download a template file for the driver to a new location, naming this new file is at the users discretion. The template files are always found at `https://github.com/dell/helm-charts/raw/csi-unity-2.11.0/charts/csi-unity/values.yaml`
52+
1. Download a template file for the driver to a new location, naming this new file is at the users discretion. The template files are always found at `https://github.com/dell/helm-charts/raw/csi-unity-2.11.1/charts/csi-unity/values.yaml`
5353
2. Edit the file such that it contains the proper configuration settings for the specific environment. These files are yaml formatted so maintaining the file structure is important.
5454

5555
For example, to create a values file for the Unity XT driver the following steps can be executed
@@ -58,7 +58,7 @@ For example, to create a values file for the Unity XT driver the following steps
5858
cd dell-csi-helm-installer
5959
6060
# download the template file
61-
wget -O my-unity-settings.yaml https://github.com/dell/helm-charts/raw/csi-unity-2.11.0/charts/csi-unity/values.yaml
61+
wget -O my-unity-settings.yaml https://github.com/dell/helm-charts/raw/csi-unity-2.11.1/charts/csi-unity/values.yaml
6262
6363
# edit the newly created values file
6464
vi my-unity-settings.yaml

dell-csi-helm-installer/csi-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ PROG="${0}"
1616
NODE_VERIFY=1
1717
VERIFY=1
1818
MODE="install"
19-
DEFAULT_DRIVER_VERSION="v2.11.0"
19+
DEFAULT_DRIVER_VERSION="v2.11.1"
2020
WATCHLIST=""
2121

22-
DRIVERVERSION="csi-unity-2.11.0"
22+
DRIVERVERSION="csi-unity-2.11.1"
2323

2424
# usage will print command execution help and then exit
2525
function usage() {

dell-csi-helm-installer/csi-offline-bundle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ For example, here is the output of a request to build an offline bundle for the
9595
dellemc/csi-metadata-retriever:v1.6.0
9696
dellemc/csipowermax-reverseproxy:v2.6.0
9797
dellemc/csi-powermax:v2.11.0
98-
dellemc/csi-powerstore:v2.11.0
99-
dellemc/csi-unity:v2.11.0
100-
dellemc/csi-vxflexos:v2.11.0
98+
dellemc/csi-powerstore:v2.11.1
99+
dellemc/csi-unity:v2.11.1
100+
dellemc/csi-vxflexos:v2.11.1
101101
dellemc/csm-authorization-sidecar:v1.9.0
102102
dellemc/csm-metrics-powerflex:v1.5.0
103103
dellemc/csm-metrics-powerscale:v1.2.0
@@ -189,7 +189,7 @@ Preparing a offline bundle for installation
189189
*
190190
* Loading docker images
191191
192-
Loaded image: docker.io/dellemc/csi-powerstore:v2.11.0
192+
Loaded image: docker.io/dellemc/csi-powerstore:v2.11.1
193193
Loaded image: docker.io/dellemc/csi-isilon:v2.11.0
194194
...
195195
...

dell-csi-helm-installer/csi-offline-bundle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ DRIVER="csi-unity"
231231
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
232232
REPODIR="$( dirname "${SCRIPTDIR}" )"
233233

234-
DRIVERVERSION="csi-unity-2.11.0"
234+
DRIVERVERSION="csi-unity-2.11.1"
235235

236236
while getopts "cprv:h" opt; do
237237
case $opt in

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/dell/gocsi v1.11.0
1111
github.com/dell/gofsutil v1.16.1
1212
github.com/dell/goiscsi v1.9.0
13-
github.com/dell/gounity v1.18.0
13+
github.com/dell/gounity v1.18.1
1414
github.com/fsnotify/fsnotify v1.4.9
1515
github.com/kubernetes-csi/csi-lib-utils v0.7.0
1616
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ github.com/dell/goiscsi v1.9.0 h1:VvMHbAO4vk80oc/TAbQPYlxysscCqVBW78GyPoUxgik=
101101
github.com/dell/goiscsi v1.9.0/go.mod h1:NI/W/0O1UrMW2zVdMxy4z395Jn0r7utH6RQDFSZiFyQ=
102102
github.com/dell/gonvme v1.8.1 h1:46M5lPqj7+Xjen+qxooRN9cx/+uJG4xtK9TpwduWDgE=
103103
github.com/dell/gonvme v1.8.1/go.mod h1:ajbuF+fswq+ty2tRTG5FN4ecIMJsG7aDu/bkMynTKAs=
104-
github.com/dell/gounity v1.18.0 h1:vE8nS2bMt6SEN5KLFlUysoxbtt4bQtOGnwFOBFAMEq8=
105-
github.com/dell/gounity v1.18.0/go.mod h1:pf6iJHk4mVPqb6/O+fJNUaRek65mzyCaiwlyULViBPc=
104+
github.com/dell/gounity v1.18.1 h1:ivE3qu8jUe3KOaeZoVuoVyNzg2c2K2b81RQzq7WIqOM=
105+
github.com/dell/gounity v1.18.1/go.mod h1:pf6iJHk4mVPqb6/O+fJNUaRek65mzyCaiwlyULViBPc=
106106
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
107107
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
108108
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=

service/service.go

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,15 @@ func (s *service) syncDriverSecret(ctx context.Context) error {
544544
if err != nil {
545545
return fmt.Errorf("unable to initialize the Unity client [%v]", err)
546546
}
547+
err = unityClient.Authenticate(ctx, &gounity.ConfigConnect{
548+
Endpoint: endpoint,
549+
Username: secret.Username,
550+
Password: secret.Password,
551+
Insecure: insecure,
552+
})
553+
if err != nil {
554+
log.Errorf("unable to authenticate [%v]", err)
555+
}
547556
secret.UnityClient = unityClient
548557

549558
copyStorage := StorageArrayConfig{}
@@ -794,28 +803,26 @@ func (s *service) requireProbe(ctx context.Context, arrayID string) error {
794803
func singleArrayProbe(ctx context.Context, probeType string, array *StorageArrayConfig) error {
795804
rid, log := utils.GetRunidAndLogger(ctx)
796805
ctx, log = setArrayIDContext(ctx, array.ArrayID)
797-
if array.UnityClient.GetToken() == "" {
798-
err := array.UnityClient.Authenticate(ctx, &gounity.ConfigConnect{
799-
Endpoint: array.Endpoint,
800-
Username: array.Username,
801-
Password: array.Password,
802-
Insecure: *array.SkipCertificateValidation,
803-
})
804-
if err != nil {
805-
log.Errorf("Unity authentication failed for array %s error: %v", array.ArrayID, err)
806-
if e, ok := status.FromError(err); ok {
807-
if e.Code() == codes.Unauthenticated {
808-
array.IsProbeSuccess = false
809-
return status.Error(codes.FailedPrecondition, utils.GetMessageWithRunID(rid, "Unable to login to Unity. Error: %s", err.Error()))
810-
}
806+
807+
err := array.UnityClient.BasicSystemInfo(ctx, &gounity.ConfigConnect{
808+
Endpoint: array.Endpoint,
809+
Username: array.Username,
810+
Password: array.Password,
811+
Insecure: *array.SkipCertificateValidation,
812+
})
813+
if err != nil {
814+
log.Errorf("Unity probe failed for array %s error: %v", array.ArrayID, err)
815+
if e, ok := status.FromError(err); ok {
816+
if e.Code() == codes.Unauthenticated {
817+
array.IsProbeSuccess = false
818+
return status.Error(codes.FailedPrecondition, utils.GetMessageWithRunID(rid, "Unable Get basic system info from Unity. Error: %s", err.Error()))
811819
}
812-
array.IsProbeSuccess = false
813-
return status.Error(codes.FailedPrecondition, utils.GetMessageWithRunID(rid, "Unable to login to Unity. Verify hostname/IP Address of unity. Error: %s", err.Error()))
814820
}
815-
array.IsProbeSuccess = true
816-
log.Debugf("%s Probe Success", probeType)
817-
return nil
821+
array.IsProbeSuccess = false
822+
return status.Error(codes.FailedPrecondition, utils.GetMessageWithRunID(rid, "Unable Get basic system info from Unity. Verify hostname/IP Address of unity. Error: %s", err.Error()))
818823
}
824+
array.IsProbeSuccess = true
825+
log.Debugf("%s Probe Success", probeType)
819826
return nil
820827
}
821828

0 commit comments

Comments
 (0)