PowerFlex: Errores de implementación del controlador de CSI de Kubernetes
Summary: En esta base de conocimientos, se presentan los principales problemas que se pueden observar cuando se intenta implementar el controlador de CSI de PowerFlex para Kubernetes (K8s).
Symptoms
URL de gateway incorrecta
# kubectl logs -n vxflexos vxflexos-node-28gh2 driver
time="2021-10-06T10:31:16Z" level=debug msg="enabled context injector"
time="2021-10-06T10:31:16Z" level=debug msg="init req & rep validation" withSpec=false
time="2021-10-06T10:31:16Z" level=debug msg="init implicit req validation" withSpecReq=false
time="2021-10-06T10:31:16Z" level=debug msg="init req validation" withSpecReq=true
time="2021-10-06T10:31:16Z" level=debug msg="enabled request ID injector"
time="2021-10-06T10:31:16Z" level=debug msg="enabled request logging"
time="2021-10-06T10:31:16Z" level=debug msg="enabled response logging"
time="2021-10-06T10:31:16Z" level=debug msg="enabled spec validator opt: request validation"
time="2021-10-06T10:31:16Z" level=debug msg="enabled serial volume access"
time="2021-10-06T10:31:16Z" level=info msg="configured 55b832655862adb7" allSystemNames= endpoint="http://10.10.10.19:28443" isDefault=true password="********" skipCertificateValidation=true systemID=55b832655862adb7 user=K8S_user
time="2021-10-06T10:31:16Z" level=info msg="driver configuration file " file=/vxflexos-config-params/driver-config-params.yaml
time="2021-10-06T10:31:16Z" level=info msg="Read CSI_LOG_FORMAT from log configuration file" format=text
time="2021-10-06T10:31:16Z" level=info msg="Read CSI_LOG_LEVEL from log configuration file" fields.level=debug
time="2021-10-06T10:31:16Z" level=info msg="array configuration file" file=/vxflexos-config/config
time="2021-10-06T10:31:16Z" level=info msg="Probing all arrays. Number of arrays: 1"
time="2021-10-06T10:31:16Z" level=error msg="array 55b832655862adb7 probe failed: rpc error: code = FailedPrecondition desc = unable to login to VxFlexOS Gateway: invalid character 'B' looking for beginning of value"
time="2021-10-06T10:31:16Z" level=info msg="configured csi-vxflexos.dellemc.com" allowRWOMultiPodAccess=false autoprobe=true mode=node privatedir=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/disks sdcGUID= thickprovision=false
time="2021-10-06T10:31:16Z" level=info msg="removed sock file" path=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/csi_sock
time="2021-10-06T10:31:16Z" level=fatal msg="grpc failed" error="rpc error: code = FailedPrecondition desc = All arrays are not working. Could not proceed further: map[55b832655862adb7:rpc error: code = FailedPrecondition desc = unable to login to VxFlexOS Gateway: invalid character 'B' looking for beginning of value]"
El siguiente problema es con el archivo config.yaml: el terminal debe apuntar a la gateway de mensajería instantánea a través de "https:", no de "http":
config.yaml:
username: "K8S_user"
password: "password"
systemID: "55b832655862adb7"
endpoint: "http://10.10.10.19:28443" <<<
skipCertificateValidation: true
isDefault: true
mdm: "10.10.10.20,10.10.10.21,10.10.10.22"
Se debe cambiar la contraseña del usuario.
# kubectl logs -n vxflexos vxflexos-node-xkhmv driver
time="2021-10-06T13:24:00Z" level=debug msg="enabled context injector"
time="2021-10-06T13:24:00Z" level=debug msg="init req & rep validation" withSpec=false
time="2021-10-06T13:24:00Z" level=debug msg="init implicit req validation" withSpecReq=false
time="2021-10-06T13:24:00Z" level=debug msg="init req validation" withSpecReq=true
time="2021-10-06T13:24:00Z" level=debug msg="enabled request ID injector"
time="2021-10-06T13:24:00Z" level=debug msg="enabled request logging"
time="2021-10-06T13:24:00Z" level=debug msg="enabled response logging"
time="2021-10-06T13:24:00Z" level=debug msg="enabled spec validator opt: request validation"
time="2021-10-06T13:24:00Z" level=debug msg="enabled serial volume access"
time="2021-10-06T13:24:00Z" level=info msg="configured 55b832655862adb7" allSystemNames= endpoint="https://10.10.10.19:28443" isDefault=true password="********" skipCertificateValidation=true systemID=55b832655862adb7 user=K8S_user
time="2021-10-06T13:24:00Z" level=info msg="driver configuration file " file=/vxflexos-config-params/driver-config-params.yaml
time="2021-10-06T13:24:00Z" level=info msg="Read CSI_LOG_FORMAT from log configuration file" format=text
time="2021-10-06T13:24:00Z" level=info msg="Read CSI_LOG_LEVEL from log configuration file" fields.level=debug
time="2021-10-06T13:24:00Z" level=info msg="array configuration file" file=/vxflexos-config/config
time="2021-10-06T13:24:00Z" level=info msg="Probing all arrays. Number of arrays: 1"
time="2021-10-06T13:24:00Z" level=error msg="array 55b832655862adb7 probe failed: rpc error: code = FailedPrecondition desc = unable to find matching VxFlexOS system name: err: problem getting instances: Password change required. Please change your password."
time="2021-10-06T13:24:00Z" level=info msg="configured csi-vxflexos.dellemc.com" allowRWOMultiPodAccess=false autoprobe=true mode=node privatedir=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/disks sdcGUID= thickprovision=false
time="2021-10-06T13:24:00Z" level=info msg="removed sock file" path=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/csi_sock
time="2021-10-06T13:24:00Z" level=fatal msg="grpc failed" error="rpc error: code = FailedPrecondition desc = All arrays are not working. Could not proceed further: map[55b832655862adb7:rpc error: code = FailedPrecondition desc = unable to find matching VxFlexOS system name: err: problem getting instances: Password change required. Please change your password.]"
Después de iniciar sesión a través de SCLI y cambiar la contraseña, la implementación continuará:
# scli --login --username K8S_user --password password
Logged in. User role is Administrator. System ID is 55b832655862adb7
Current password must be changed. Please use --set_password command
# scli --set_password --old_password password --new_password newpassword
# scli --login --username K8S_user --password newpassword
Logged in. User role is Administrator. System ID is 55b832655862adb7
ID de sistema incorrectos en la configuración de SDC
# kubectl logs -n vxflexos vxflexos-node-7r8df driver
time="2021-10-06T14:17:05Z" level=debug msg="enabled context injector"
time="2021-10-06T14:17:05Z" level=debug msg="init req & rep validation" withSpec=false
time="2021-10-06T14:17:05Z" level=debug msg="init implicit req validation" withSpecReq=false
time="2021-10-06T14:17:05Z" level=debug msg="init req validation" withSpecReq=true
time="2021-10-06T14:17:05Z" level=debug msg="enabled request ID injector"
time="2021-10-06T14:17:05Z" level=debug msg="enabled request logging"
time="2021-10-06T14:17:05Z" level=debug msg="enabled response logging"
time="2021-10-06T14:17:05Z" level=debug msg="enabled spec validator opt: request validation"
time="2021-10-06T14:17:05Z" level=debug msg="enabled serial volume access"
time="2021-10-06T14:17:05Z" level=info msg="configured 55b832655862adb7" allSystemNames= endpoint="https://10.10.10.19:28443" isDefault=true password="********" skipCertificateValidation=true systemID=55b832655862adb7 user=K8S_user
time="2021-10-06T14:17:05Z" level=info msg="driver configuration file " file=/vxflexos-config-params/driver-config-params.yaml
time="2021-10-06T14:17:05Z" level=info msg="Read CSI_LOG_FORMAT from log configuration file" format=text
time="2021-10-06T14:17:05Z" level=info msg="Read CSI_LOG_LEVEL from log configuration file" fields.level=debug
time="2021-10-06T14:17:05Z" level=info msg="array configuration file" file=/vxflexos-config/config
time="2021-10-06T14:17:05Z" level=info msg="Probing all arrays. Number of arrays: 1"
time="2021-10-06T14:17:05Z" level=info msg="default array is set to array ID: 55b832655862adb7"
time="2021-10-06T14:17:05Z" level=info msg="55b832655862adb7 is the default array, skipping VolumePrefixToSystems map update. \n"
time="2021-10-06T14:17:05Z" level=info msg="array 55b832655862adb7 probed successfully"
time="2021-10-06T14:17:05Z" level=info msg="set SDC GUID" guid=3F3C5F0A-9307-42ED-91FC-67CCE89770FA
time="2021-10-06T14:17:05Z" level=info msg="Found connected system" ID=0000000000000000
time="2021-10-06T14:17:05Z" level=info msg="configured csi-vxflexos.dellemc.com" allowRWOMultiPodAccess=false autoprobe=true mode=node privatedir=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/disks sdcGUID=3F3C5F0A-9307-42ED-91FC-67CCE89770FA thickprovision=false
time="2021-10-06T14:17:05Z" level=info msg="removed sock file" path=/var/lib/kubelet/plugins/vxflexos.emc.dell.com/csi_sock
time="2021-10-06T14:17:05Z" level=fatal msg="grpc failed" error="rpc error: code = FailedPrecondition desc = duplicate systems found that are known to SDC: 0000000000000000"
La configuración de SDC (/etc/emc/scaleio/drv_cfg.txt) contiene varias entradas incorrectas del sistema (MDM-ID) - "0000000000000000”. Eliminación de ID de sistema incorrectos con "drv_cfg" corrige el problema.
Impacto
No se puede instalar el controlador de CSI de PowerFlex.
Cause
Configuraciones erróneas del usuario
Resolution
Consulte los pasos para resolver cada problema en la sección Síntomas anterior.
Versiones afectadas
No es un problema de PowerFlex