我要评分
获取效率
正确性
完整性
易理解

"Gateway Timeout (HTTP 504)" Reported During OpenStack Command Execution

Symptom

The following error message is displayed when the OpenStack commands are executed:

1
2
Failed to discover available identity versions when contacting http://controller:5000/v3. Attempting to parse version from URL.
Gateway Timeout (HTTP 504)

Key Process and Cause Analysis

A proxy that affects HTTP requests exists in the environment.

Run the following command to check environment variables:

env

If there are https_proxy and http_proxy in the environment variables, a proxy exists in the environment, which affects OpenStack HTTP API requests.

Conclusion and Solution

Remove the proxy in the environment based on the actual configuration.

  1. Run the following command to temporarily remove https_proxy and http_proxy from the environment:
    unset https_proxy http_proxy