連線測試期間發生 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 位址: 

 - 單擊「測試 Webhook」按鈕時,彈出此錯誤:
 

Webhook 測試失敗!
執行調度程式時發生未知的異常。- 單擊「測試 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」已切換為開啟,且已填寫認證。
    即使 Webhook API 接收器不需要登入資料,PowerFlex Manager 4.x 也需要 Webhook 目的地的登入資料。在不需要憑據的情況下,可以使用虛假憑據。
     
  2. 使用 https (非純 http) Webhook 目的地時,會使用 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.