openstack commands are failing with connection abort error

asked 2019-05-09 14:43:54 -0600

arslankhan gravatar image

Hello I am trying to run openstack command from outside of openstack cluster the commands were working before but now they are failing with following error ConnectFailure: Unable to establish connection to http://{HORIZON_IP}:8774/v2.1/servers/detail: ('Connection aborted.', error(104, 'Connection reset by peer'))

i am running following command openstack --os-auth-url=http://{HORIZON_IP}:5000/v2.0 --os-project-name={PROJ_NAME} --os-username={USERNAME} --os-password={PWD} server list

The same commands is working if i run it from one of the controller nodes

in httpd/gnocchi_wsgi_error.log i have following error message ConnectionError: ('Connection aborted.', ResponseNotReady())

Any idea what could be wrong Thanks in advance

edit retag flag offensive close merge delete


Are you sure that Keystone v2 is correct, and that you are using v2 when running the command on the controller? v2 has been deprecated for a while.

I would also check the values of environment variables OS_xxxx. They might be different on the controller than the remote system.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-09 15:21:43 -0600 )edit

The Gnocchi error is unlikely to be related to the server list command.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-09 15:23:34 -0600 )edit

the same command was working before. Also i am providing values in the command on both machines

arslankhan gravatar imagearslankhan ( 2019-05-09 15:48:00 -0600 )edit

Which OpenStack version is that, and how was the cloud deployed?

I would check connectivity to Nova (curl http://HORIZON-IP:8774) and also check the nova-api log for relevant messages.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-09 19:02:19 -0600 )edit

curl command succeeds. nova-api log only shows that requests are succeeding nova-conductor contains following message WARNING oslo.service.loopingcall [-] Function 'nova.servicegroup.drivers.db.DbDriver._report_state' run outlasted interval by 5.72 sec

arslankhan gravatar imagearslankhan ( 2019-05-10 10:17:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-05-15 11:11:08 -0600

arslankhan gravatar image

The problem was not with openstack but with remote machine. i had 4 remote machines and it appears problem is with all of them. running the commands from docker container seems to be working. Thanks @Bernd Baush for helping me out

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-05-09 14:43:54 -0600

Seen: 464 times

Last updated: May 15 '19