Ask Your Question
0

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

asked 2020-05-07 03:13:38 -0500

rawmain gravatar image

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.

edit retag flag offensive close merge delete

Comments

You can ping it, but what happens when you access port 5000?

curl -k https://SERVER-IP:5000

Don't forget to omit the v3 part. Normally, the response should be the list of available API versions.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-07 03:21:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-07 20:02:38 -0500

rawmain gravatar image

I ran curl -vkg https://[OPENSTACK_SERVER_IP]:5000 got

  • Establish HTTP proxy tunnel to OPENSTACK_SERVER_IP:5000
  • Connected to OPENSTACK_SERVER_IP (OPENSTACK_SERVER_IP) port 3128 (#0) HTTP/1.1 200 Connection established SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
edit flag offensive delete link more

Comments

No reply from Keystone?

This is output from your proxy server, I think.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-08 01:36:03 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2020-05-07 03:13:38 -0500

Seen: 82 times

Last updated: May 07 '20