Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to connect to openstack server from a new server be created?

I installed an openstack client on a new server.

pip install python-openstackclient

When ran its command got 400 error.

# openstack service list
Failed to discover available identity versions when contacting https://[OPENSTACK_SERVER_IP]:5000/v3. Attempting to parse version from URL.
Bad Request (HTTP 400)

Even I used --insecure doesn't work

# openstack service list --insecure
Failed to discover available identity versions when contacting https://[OPENSTACK_SERVER_IP]:5000/v3. Attempting to parse version from URL.
Bad Request (HTTP 400)

The configuration is

export OS_CLOUD=[CLOUD_NAME]
export OS_USERNAME=[USER_NAME]
export OS_PASSWORD=[PASSWORD]
export OS_PROJECT_NAME=[PROJECT]
export OS_AUTH_URL=https://[OPENSTACK_SERVER_IP]:5000/v3
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=Default
export CURL_CA_BUNDLE=
export OS_VOLUME_API_VERSION=3

I can ping the OpenStack server's IP.