Errors with Kubernetes, Zerigo DNS, and AWS EC2

未關閉
#2,076 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
15/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
aws, kubernetes, python

研究方向

先將 libcloud/common/kubernetes.py:237 的 Kubernetes 警告與 Zerigo DNS 和 AWS EC2 憑證報告分開,然後執行所引用的單元測試和 AndroidSDK 測試,以判定哪些失敗可在 Libcloud 中重現。當每個已確認的 Libcloud 失敗都有明確的範圍、重現步驟,以及適當的回歸測試或已記錄的外部原因時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Summary

DNS resolution failures, credential validation errors, and a user warning about SSL verification. This suggests potential issues with how Libcloud handles connections and credentials across various drivers.

Detailed Information

Apache Libcloud is having issues with multiple cloud APIs due to a combination of network connectivity problems and incorrect credential handling.

  1. Kubernetes Connection Warning
    When attempting to connect to a Kubernetes cluster, a UserWarning is raised:
/usr/lib/python3/dist-packages/libcloud/common/kubernetes.py:237: UserWarning: Kubernetes has its own CA, since you didn't supply a CA certificate be aware that SSL verification will be disabled for this session

...

This warning indicates that SSL certificate verification is being disabled because no CA certificate was provided. This isn't a fatal error, but it's a security concern that should be addressed. The process hangs and requires manual termination.

  1. Zerigo DNS Connection Error

A requests.exceptions.ConnectionError is raised when trying to connect to Zerigo DNS (ns.zerigo.com). The root cause is identified as a socket.gaierror: [Errno -2] Name or service not known, which means the system couldn't resolve the hostname ns.zerigo.com.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='ns.zerigo.com', port=443): Max retries exceeded with url: /api/1.1/zones.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f45ff3b2b90>: Failed to establish a new connection: [Errno -2] Name or service not known'))

This error indicates a DNS-related issue, preventing the application from establishing a connection to the Zerigo API endpoint.

  1. AWS EC2 Credential Error
    An InvalidCredsError is thrown when using the EC2 driver. The error message AuthFailure: AWS was not able to validate the provided access credentials explicitly states that the credentials used for the AWS API call are invalid.
libcloud.common.types.InvalidCredsError: 'AuthFailure: AWS was not able to validate the provided access credentials'

This points to an issue with the AWS access key or secret key, or an incorrect region configuration.

  1. Android APK Analysis Failure
    Android log (logcat) shows an ApkAnalysisException with the message DOWNLOAD_FILE_NOT_FOUND_EXCEPTION. Suggests that com.example.apache_redcache fails to recognize the APK Android Application itself. Although seemingly unrelated, Libcloud attempts to connect to the server, regardless if it is from a different application.

The VerityUtils errors about failing to measure fs-verity (with errno 1) reinforce that when the APK test is ran the client attempts to connect to the server.

The primary issues are:

DNS Resolution Failure: Libcloud fails to resolve ns.zerigo.com, leading to a ConnectionError. This could be a configuration issue on the client's network or a bug in how Libcloud handles network calls.

Authentication Failure: Libcloud fails to authenticate with AWS EC2 due to invalid credentials, raising an InvalidCredsError.

SSL Security Warning: The Kubernetes driver warns that SSL verification is disabled due to a missing CA certificate.

LibCloud Version: 3.4.1
Python Version: Python 3.11.2
OSxDistro: Linux penguin 6.6.76-08096-g300882a0a131 #1 SMP PREEMPT_DYNAMIC Sat, 24 May 2025 01:23:41 -0700 x86_64 GNU/Linux

Steps to reproduce:

  1. Run UnitTests in Codespace to get venv error
  2. Run AndroidSDK tests in Android Studio to get Finsky_Verity error
  3. Debug .py files with Python modules installed
Image
主要語言
Python
星號
2.1k
分支
935
平均合併
5 天 3 小時
30 天內合併 PR
15

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/libcloud 的其他 Issue

查看 apache/libcloud 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。