连接测试期间的 PowerFlex 4.X Webhook 错误

Summary: 使用 PowerFlex 4.5 及更高版本为警报创建 Webhook 目标时,在测试 Webhook 连接时出错。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

 - 已创建使用 Webhook 的通知目标。

 - 尚未打开“启用凭据”。

 - 目标使用 https 和 IP 地址。

- 目标使用 https 和 IP 地址: 

 - 单击“Test Webhook”按钮时,会弹出以下错误:
 

Webhook 测试失败!
运行调度程序时发生未知异常。- 单击“Test Webhook”按钮时,会弹出以下错误: 



- 故障处理捆绑包中的 PowerFlex 通知程序 Pod 日志显示以下内容:

 2024-01-29T12:32:27.476013229-06:00 stdout F {"name": "notifier", "time": "2024-01-29 18:32:27", "level": "WARNING", "message": "Certificate did not match expected hostname: 13.13.13.131. Certificate: {'subject': ((('countryName', 'US'),), (('stateOrProvinceName', 'Texas'),), (('organizationName', 'Dell Technologies'),), (('commonName', 'webhook.pfxm.local'),))
..
2024-01-29T12:32:27.477045382-06:00 stdout F {"name": "events-topic-listener", "time": "2024-01-29 18:32:27", "level": "ERROR", "service_instance_id": "b00635f6ca835c02", "message": "Connection Error occurred during webhook forwarding."}
2024-01-29T12:32:27.477062648-06:00 stdout F Traceback (most recent call last):
2024-01-29T12:32:27.477068501-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 699, in urlopen
2024-01-29T12:32:27.477072836-06:00 stdout F     httplib_response = self._make_request(
2024-01-29T12:32:27.477077569-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 382, in _make_request
2024-01-29T12:32:27.477081821-06:00 stdout F     self._validate_conn(conn)
2024-01-29T12:32:27.477086049-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
2024-01-29T12:32:27.477090425-06:00 stdout F     conn.connect()
2024-01-29T12:32:27.477094406-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 464, in connect
2024-01-29T12:32:27.477098821-06:00 stdout F     _match_hostname(cert, self.assert_hostname or server_hostname)
2024-01-29T12:32:27.477102754-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/connection.py", line 512, in _match_hostname
2024-01-29T12:32:27.477106666-06:00 stdout F     match_hostname(cert, asserted_hostname)
2024-01-29T12:32:27.477110933-06:00 stdout F   File "/usr/lib/python3.10/site-packages/urllib3/packages/ssl_match_hostname/_implementation.py", line 151, in match_hostname
2024-01-29T12:32:27.4771152-06:00 stdout F     raise CertificateError(

 

Cause

影响

警报不会发送到 Webhook 目标。

根本原因

在这种情况下,失败有两个原因。

  1. Webhook 目标必须启用凭据。
  2. Webhook 目标上的 SSL 证书没有将 IP 地址作为主题备用名称之一,因此所有 SSL 连接尝试都会被拒绝。

 

Resolution

解决方法

为警报配置 Webhook 目标时:

  1. 确保“Enable Credentials”已开启,并且已填写凭据。
    PowerFlex Manager 4.x 需要具有 Webhook 目标的凭据,即使 Webhook API 接收器不需要凭据也是如此。在不需要凭据的情况下,可以使用伪造凭据。
     
  2. 使用 https(非纯 http)Webhook 目标时,将使用 SSL 证书。通常,这些证书在 SSL 证书的使用者备用名称中仅包含 DNS 或 FQDN。因此,当 IP 地址尝试连接时,SSL 连接尝试将被拒绝。使用与 SSL 证书在 Webhook 目标 API URL 中查找的内容匹配的 DNS 或 FQDN。 

受影响的版本

PowerFlex Manager 4.5 及更高版本

已修复问题的版本

设计使然

Affected Products

PowerFlex appliance connectivity

Products

PowerFlex rack, VxFlex Ready Nodes, PowerFlex custom node, PowerFlex appliance R650, PowerFlex appliance R6525, PowerFlex appliance R660, PowerFlex appliance R6625, Powerflex appliance R750, PowerFlex appliance R760, PowerFlex appliance R7625 , PowerFlex appliance R640, PowerFlex appliance R740XD, PowerFlex appliance R7525, PowerFlex appliance R840 ...
Article Properties
Article Number: 000221795
Article Type: Solution
Last Modified: 10 Feb 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.